Reading of the Flash/EEPROM and writing of the page buffer is handled with
normal load/store instructions. Other operations, such as writing and erasing the memory
arrays, are handled by commands in the NVM.
To execute a command in the NVM:
- Write the NVM command unlock to the
Configuration Change Protection register in the CPU (CPU.CCP).
- Write the desired command value to
the CMD bits in the Control A register (NVMCTRL.CTRLA) within the next 4
instructions.