??? 08/08/07 18:42 Read: times |
#142946 - 8051 memory map Responding to: ???'s previous message |
Denis B said:
ok. thanks
i work with the AT89C51RD2.... according to data sheet it has – 256 Bytes Scratch Pad RAM.... i want a "small memory model", but keil "moved" me to "compact" after i get: Program Size: data > 128..... another question: how i define to keil 256 bytes? thanks If you read the various 8051 bibles, you will see that you can never have a large contiguous space in data. I believe that your RD2 chip has 1024 bytes of internal xdata. So you will need to examine your variable use to see what to place in idata or xdata. As a general rule, place large buffers in idata or xdata. Fastest access is to data, so reserve for frequent use. You can NEVER get 256 contiguous bytes in idata because the stack must live there. The Keil documentation is pretty good, as is the Hitex primer. |