6.10 CONFIG10

Configuration Byte 10
Note:
  1. Since device code protection takes effect immediately, this Configuration Byte must be written after all desired writes to Program Flash memory have been completed.
  2. Once protection is enabled, it can only be reset through a Bulk Erase.
Name: CONFIG10
Offset:  0x300009

Bit 76543210 
        CP 
Access R/W 
Reset 1 

Bit 0 – CP  User Program Flash Memory (PFM) Code Protection(2)

ValueDescription
1 User PFM code protection is disabled
0 User PFM code protection is enabled
Since device code protection takes effect immediately, this Configuration Byte must be written after all desired writes to Program Flash memory have been completed. Once protection is enabled, it can only be reset through a Bulk Erase.