This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Stack usage

Hi,

I am using your C51 with a Triscend TE505 as the target. I cannot really figure out how exactly the C51 handles the stack for the TE505. How much stack space do I have and how the TE505's 256 bytes of scratch pad RAM is used.

Looking forward to some responses,
Dennis

Parents
  • In the TE505, the stack is EXACTLY the same as for any other 8051 type processor with 256 bytes of data/idata RAM.

    Keil C51 will place data/idata variables at the lowest possible addresses and whatever is left is available for stack.

    A quick way to find out how much stack space you have is to load your software into the simulator and run the start of main. Look in the registers tab, SP will have its start value.

Reply
  • In the TE505, the stack is EXACTLY the same as for any other 8051 type processor with 256 bytes of data/idata RAM.

    Keil C51 will place data/idata variables at the lowest possible addresses and whatever is left is available for stack.

    A quick way to find out how much stack space you have is to load your software into the simulator and run the start of main. Look in the registers tab, SP will have its start value.

Children