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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
David Prentice
06/15/09 10:18
Read: 223 times
Wormshill
England


 
#166098 - xdata will just be whatever EXTRAM says
Responding to: Rob Stoffels's previous message
Let me assume that you just have a "few" peripheral devices that you want to memory-map. You only use the internal XRAM for program variables. You do not have conventional external RAM.

Then you just set and clear the EXTRAM bit whenever you access your peripherals. The compiler does not know or care which memory you are accessing. So your regular program is always set up for the internal XRAM.

It all really depends on how fast or often you need to access your peripherals. You may find it as easy to access via ordinary port lines. But whichever way you do it, you need to ensure that only one CPU accesses one peripheral at a time.

David.

List of 19 messages in thread
TopicAuthorDate
AT89c51cc01 and External memory (keil/C51)      Rob Stoffels      06/09/09 10:54      
   Cross posted      Rob Stoffels      06/10/09 04:24      
   Is your problem with FLIP ?      David Prentice      06/10/09 04:36      
      No, think it's keil compiler      Rob Stoffels      06/10/09 05:25      
         Sounds like an error in the data sheet      David Prentice      06/10/09 06:08      
         bible time      Erik Malund      06/10/09 07:18      
            Itterations      Rob Stoffels      06/10/09 10:35      
               just won't get flashed into the µc??      Andy Neil      06/10/09 11:18      
               The compile will compile what you tell it      David Prentice      06/10/09 11:21      
                  RE: your example does not access any xdata at all      Andy Neil      06/10/09 11:31      
         RE: Rob Stoffels said:I think there is something that needs      Andy Neil      06/10/09 11:33      
            Going to try something different      Rob Stoffels      06/10/09 12:46      
               Broken Boards?      Andy Neil      06/11/09 05:42      
                  Memmory mapping question/ Bord fixed      Rob Stoffels      06/15/09 08:32      
                     If I read this correctly      Erik Malund      06/15/09 09:04      
                        Missunderstanding      Rob Stoffels      06/15/09 09:49      
                           xdata will just be whatever EXTRAM says      David Prentice      06/15/09 10:18      
                           do you have any external RAM?      Erik Malund      06/15/09 12:27      
   CC03 is working      Rob Stoffels      06/11/09 04:56      

Back to Subject List