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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/15/04 13:06
Read: times


 
#81171 - RE: single byte
Responding to: ???'s previous message
I said:
the problem is that it is not possible to erase only a single byte in flash...

Slobodan Mandaric said:
... but no one prevents you to "program" one FFh byte !

That is very true; and, by carefully leaving a few FF bytes at strategic points in yout Flash, you can have the facility to "patch" it without having to erase anything at all!

Note that opcode FF is MOV R7,A - so it is quite easy to put these FF bytes at strategic points in yout 8051 code!

In fact, you can set any '1' bit to a '0' - so as long as the required "patch" only requires changing '1' bits to zeros, you're fine...

List of 8 messages in thread
TopicAuthorDate
single byte            01/01/70 00:00      
   RE: single byte            01/01/70 00:00      
      RE: single byte            01/01/70 00:00      
         RE: single byte            01/01/70 00:00      
            RE: single byte            01/01/70 00:00      
               RE: MOV R7,A            01/01/70 00:00      
                  RE: MOV R7,A            01/01/70 00:00      
                     RE: MOV R7,A            01/01/70 00:00      

Back to Subject List