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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Rob Stoffels
06/09/09 10:54
Read: 716 times
Westerlo
Belgium


 
#165953 - AT89c51cc01 and External memory (keil/C51)
Hello,

I would like to address external RAM.
I've used Chriss Hills C51 primer, and the µc datasheet as guidance.
the only problem encountered (so far) is that i can compile the code
but when trying to write the hex file it fails...
Are there any special compilation paramters you have to take into account?
I've tried using the XBYTE function but here I also encounter the same problem.
Can someone tell me some pointers that could help me find the answer?



#include "t89c51cc01.h"
#include "absacc.h"

volatile unsigned char xdata PA _at_ 0x0800;


main (void)
{
AUXR=0x0F;     //Enabling EXTRAM and toggling ale only on MOVX commands
while (1)
{
PA=0x55;

}
}
 


FYI these tests are just as a step up, I would like to program 16 memory mapped devices this way, but prefer to start "easy" ;)

Kind regards
Rob

Cross posted:

http://www.keil.com/forum/docs/thread14991.asp

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