??? 01/20/06 12:15 Read: times |
#107869 - write to code memory Responding to: ???'s previous message |
Harshada D N said:
is there an instruction which writes from accumulator to code memory specified in dptr No there is not. And in 8051, there is no way to write into code memory, it is a mask-ROM, firmly defined during manufacturing. However, some of the newer FLASH-based 8051 derivatives are able to write "themselves", although it is never such straighforward as using a single instruction. You are supposed to either use a series of writes and reads to/from certain SFRs, or use a preprogrammed piece of code which would provide an API for code memory self-programming. The exact procedure depends on the derivative you are using. The keyword to search is IAP (In-Application Programming). Also, if you would use a 8051 in external program memory mode (/EA tied low), and if you would attach RAM as part of the external program, and you would decode it into both code and data memory space, you could write to it as into data memory. But this is probably not what you want. You can find some reading also here. Jan Waclawek |
Topic | Author | Date |
event logging | 01/01/70 00:00 | |
How do you want to do it? | 01/01/70 00:00 | |
instruction | 01/01/70 00:00 | |
Read this! | 01/01/70 00:00 | |
write to code memory | 01/01/70 00:00 | |
not always true | 01/01/70 00:00 | |
direct movx | 01/01/70 00:00 | |
where dpes IAP come in????? | 01/01/70 00:00 | |
and what? | 01/01/70 00:00 | |
event logging is storing data, not instr | 01/01/70 00:00 | |
it's just a label | 01/01/70 00:00 | |
writing those have nothing, nada, zero | 01/01/70 00:00 | |
sure | 01/01/70 00:00 | |
to store into code memory | 01/01/70 00:00 | |
PLS HELP | 01/01/70 00:00 | |
My Suggestion... | 01/01/70 00:00 | |
Don't shout! | 01/01/70 00:00 | |
pls help | 01/01/70 00:00 | |
define | 01/01/70 00:00 | |
Thanks![]() | 01/01/70 00:00 |