??? 07/10/09 10:28 Read: times |
#166986 - some confusion with your links Responding to: ???'s previous message |
Quote "The 80 bytes remaining of Internal RAM, from addresses 30h through 7Fh, may be used by user variables that need to be accessed frequently or at high-speed. This area is also utilized by the microcontroller as a storage area for the operating stack. This fact severely limits the 8051s stack since, as illustrated in the memory map, the area reserved for the stack is only 80 bytes--and usually it is less since this 80 bytes has to be shared between the stack and user variables."
"This area is also utilized by the microcontroller as a storage area for the operating stack." Question: If I am using 30H through 7FH as general purpose RAM and the stack gets extended does it extend into this general RAM area. Can my stored data get corrupted? I am using register bank zero for some basic data manipulation (ie: MOV A,@R0) but am not touching the rest of the register banks so can I use 08H through 2FH for general purpose RAM and write to them directly? Why does the information you provided in the links say that for "high speed" data manipulation 30H through 7FH should be used. What makes RB1 and up slower if reading and writing directly? |
Topic | Author | Date |
Stack Pointer and available RAM | 01/01/70 00:00 | |
"Internal" RAM - basics | 01/01/70 00:00 | |
some confusion with your links | 01/01/70 00:00 | |
Follow: can I use 08H through 2FH for general purpose RAM | 01/01/70 00:00 | |
08 thru 2F as additional RAM | 01/01/70 00:00 | |
use the indirect method for upper RAM, take care of Stack | 01/01/70 00:00 | |
the limits for simple storage | 01/01/70 00:00 | |
Direct method, Indirect Method or C compiler ? | 01/01/70 00:00 | |
READ "THE BIBLE" | 01/01/70 00:00 | |
Tell us which exact 80c51 you are using | 01/01/70 00:00 | |
Really?? | 01/01/70 00:00 | |
a long time ago | 01/01/70 00:00 | |
Another option for usage of Register Banks | 01/01/70 00:00 | |
instead of getting it piecemeal | 01/01/70 00:00 | |
I think therefore I ask | 01/01/70 00:00 | |
WRONG | 01/01/70 00:00 | |
according to the PDF | 01/01/70 00:00 | |
Program in Assembler?? | 01/01/70 00:00 | |
assembler only![]() | 01/01/70 00:00 |