To execute self-programming (the execution of writes to the NVM controller’s
command register), the following steps are required:
- 1.The software temporarily enables
self-programming by writing the SPM signature to the CCP (CPU.CCP) register.
- 2.Within four instructions, the
software must execute the appropriate instruction or change to NVM Command Register.
The protected change is automatically disabled after the CPU
executes a write instruction.