Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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.


List of 41 messages in thread
TopicAuthorDate
keil - program and data size            01/01/70 00:00      
   Check file.M51            01/01/70 00:00      
      Linker Listing aka "Map" file            01/01/70 00:00      
         another question            01/01/70 00:00      
            8051 memory map            01/01/70 00:00      
               Keil documentation            01/01/70 00:00      
               AT89C51RD2            01/01/70 00:00      
                  a '51-specific buzzword: scratchpad RAM            01/01/70 00:00      
                     idata is in small or compact???            01/01/70 00:00      
                        Neither!            01/01/70 00:00      
                           1. where is a "idata(128-255bytes)" in the string?            01/01/70 00:00      
                        As previously advised - look in the Map File            01/01/70 00:00      
                           i understood            01/01/70 00:00      
                     IDATA and DATA            01/01/70 00:00      
                        it is correct            01/01/70 00:00      
                        my take            01/01/70 00:00      
            Pardon?            01/01/70 00:00      
               excuse me on my ENGLISH....            01/01/70 00:00      
                  What request?            01/01/70 00:00      
                     message suggests this            01/01/70 00:00      
                        I see no such suggestion there            01/01/70 00:00      
                           keil RECOMENDS            01/01/70 00:00      
                              Where?            01/01/70 00:00      
                                 ok            01/01/70 00:00      
                                    These questions have all been answered            01/01/70 00:00      
                                       thank, but....            01/01/70 00:00      
                                          Oh yes you have!            01/01/70 00:00      
                                             more thanks........ :-))))))))))            01/01/70 00:00      
                                    Overinterpretation ?            01/01/70 00:00      
                                       yet            01/01/70 00:00      
                                          Linker listing file.            01/01/70 00:00      
                                             keil-128, at89c51rd2-256            01/01/70 00:00      
                                                More misinterpretation            01/01/70 00:00      
                                                   ok, thnx            01/01/70 00:00      
                        I'm confused!            01/01/70 00:00      
                           q            01/01/70 00:00      
                              attempt to a            01/01/70 00:00      
                                 previous A            01/01/70 00:00      
                                    I know I was repeating what I've read in your post            01/01/70 00:00      
                           Confusion            01/01/70 00:00      
   reply            01/01/70 00:00      

Back to Subject List