Programming PICs: ICSP
NOP reprogramming Trick
- Erased EPROM is all ‘1’s - ie, 0x3FF
- Programming changes instructions by adding ‘0’s
- You can ‘0’ out your code and use the remaining unprogrammed memory to do in the field “reprogramming
- I.E., change all of the existing code to NOPs so startup will simply pass right through it
- Consider adding some 0x3FF “spaces” to add GOTOs if you think you’ll be reprogramming (which you always will!)
Previous slide | Next slide | Back to first slide | View graphic version |