Hello,
I can't find any example C code to read and/or write an 8051 internal flash memory. I'm using a C8051F353 and the micro datasheet doesn't explain very well how to do it. When the manual speaks about using the MOVX and MOVC instruction to respectively write and read is not clear. My requests are: 1) how to put the assembler code inside the C code 2) how to read and write a specific byte memory, ex: 0x0800 3) is it possible to do it only with C code?
Regards,
http://www.keil.com/support/man/docs/c51/c51_le_memareas.htm
http://www.keil.com/support/man/docs/c51/c51_le_memtypes.htm
Note that the 8051 architecture had no way to write to CODE space - it is strictly Read/Execute only:
www.8052.com/.../120112
http://www.8052.com/tutorial