We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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.
Thanks a lot. That answers my question.