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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/26/07 09:18
Modified:
  01/26/07 09:27

Read: times


 
#131541 - MOVX read instructions always target XRAM
Responding to: ???'s previous message
The problem: accessing both XRAM and the flash use MOVX and so access to these resources is mutually exclusive.


Actually it's no problem, because MOVX read operation is always directed to XRAM, though it is difficult to find it on the datasheet.

10.2.Non-volatile Data Storage (C8051F31x.pdf rev1.7 p112)
Note: MOVX read instructions always target XRAM.


FLASH to XRAM
MOVC - MOVX

XRAM to FLASH
MOVX read - MOVX write

Using 16bit access over @DPTR and 8bit access over @R0 (@R1) respectively, you don't need to swap DPTR.

Tsuneo

List of 9 messages in thread
TopicAuthorDate
Tonight's annoyance            01/01/70 00:00      
   solution?            01/01/70 00:00      
      MOVX read instructions always target XRAM            01/01/70 00:00      
         whoops, saw it later!            01/01/70 00:00      
      what is PITA (except the bread)?            01/01/70 00:00      
         Pain in the ...            01/01/70 00:00      
            aaaaah, thanks :-)            01/01/70 00:00      
   you can .. and you cant            01/01/70 00:00      
   Penguin check.            01/01/70 00:00      

Back to Subject List