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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/20/06 03:32
Read: times


 
#118567 - What your code is doing...
Responding to: ???'s previous message

By doing the indirect operation to load the AUXR, you are writing to the upper half of the internal ram (as opposed to the internal xram), so you will read the correct value back. AUXR register exists in the SFR region, so you need to access it directly, not indirectly. Repeat your test with

AUXR .equ 8eh ;if your include file doesn't already have it

mov AUXR,#10h ;enable the xram

and see what happens. Whilst I haven't used this part myself, other parts operate similarly and they too usually need a bit in a SFR set to enable the extra ram.



List of 14 messages in thread
TopicAuthorDate
Ready to XRAM My Head Against the Wall!            01/01/70 00:00      
   Show us the code!            01/01/70 00:00      
   Post Your Code            01/01/70 00:00      
      Code Posted            01/01/70 00:00      
         OK            01/01/70 00:00      
            That's different on the Atmel            01/01/70 00:00      
         After reading the datasheet..            01/01/70 00:00      
            Already Did All of That...            01/01/70 00:00      
            What your code is doing...            01/01/70 00:00      
               I'll Try That            01/01/70 00:00      
                  Thats the magic of 8051!            01/01/70 00:00      
                     But wait! There's more!            01/01/70 00:00      
                        an obvious miss            01/01/70 00:00      
                           Problem Solved            01/01/70 00:00      

Back to Subject List