7.4.6.2 Sequence for Execution of Self-Programming
To execute self-programming (the execution of writes to the NVM controller’s command register), the following steps are required:
- The software temporarily enables self-programming by writing the SPM signature to the CCP (CPU.CCP) register.
- 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.