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 13:08
Read: times


 
#131554 - you can .. and you cant
Responding to: ???'s previous message
The problem: accessing both XRAM and the flash use MOVX and so access to these resources is mutually exclusive. You can't copy the contents of a page of the flash directly into the XRAM, nor can you do the converse.

you CAN "copy the contents of a page of the flash directly into the XRAM"
since a flash READ is a MOVC and do not require ANY 'flash acces bits' to be set.

HOWEVER "nor can you do the converse" while true, should not be a problem since you "save a bunch of different configurations" and, at such time (saving configurations would be a 'rare' event) you read flash to XRAM (no problem) insert your new/changed configuration in XRAM, erase the flash page and use some (I)RAM to hold say 32 bytes to be written and do that 8 times.

At least that is how I do it (on a '120)

Erik


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