??? 07/11/07 09:19 Read: times |
#141725 - Strictly speaking... Responding to: ???'s previous message |
Nimish Dave said:
When we erase a chips flash it is written with 1`s. To be pedantic, erasing does not write anything - the erased state of a flash cell just reads as a '1'. The only thing that you can actually write to flash is zeros - hence programming really just consists of setting all the required bits to '0', and leaving the others at their erased state, so that they'll read as '1's. when "Program Counter" comes across a blank byte location it might take as instruction FF which is MOV R7,A. Yes it will - no "might" about it. This can actually be a useful trick to allow "patching" of your PROM: As noted above, programming is just a matter of setting erased cells to '0'; so you put a few MOV R7,A instructions (ie, 0xFF bytes - all bits in the erased state) at strategic points, and you can subsequently "patch" these bits to zeros, eg to jump to some extra code in a previously unused area of the PROM... |