3.1.3.1 Program Data

The Program Data command is used to program one NVM word (e.g., one 16-bit instruction word for program memory/User ID memory or one 8-bit data for a Data EEPROM Memory address). The payload data are written into program or EEPROM memory immediately after the Programming Data command is issued (see Programming Algorithms). Depending on the value of bit 5 of the command, the PC may or may not be incremented (see ICSP Command Set Summary). This command will not work on memory areas that are code-protected or write-protected.

Figure 3-6. Program Data (Program Memory and User IDs)
Important:

The Program Access Enable command and corresponding payload must be sent immediately before writing to the SAFLOCK bit or the ICSPDIS bit in the CONFIG13 and CONFIG12 registers, respectively.

Figure 3-7. Program Data (DATA EEPROM and Configuration Bytes)