20.4.5 Writing NVM Lock Bits
The algorithm for writing the Lock bits is as follows:
- Write the WORD_WRITE command to the NVMCMD register.
- Write the lock bits value to the Non-Volatile Memory Lock Byte location. This is the low byte of the Non- Volatile Memory Lock Word.
- Start the NVM Lock Bit write operation by writing a dummy byte to the high byte of the NVM Lock Word location.
- Wait until the NVMBSY bit has been cleared.