8.2.2 Program Flash Memory Code Protection

The CP Configuration bit controls the code protection for the entire program memory. When enabled, external reads and writes are inhibited and a read will return all ‘0’s and further programming is disabled until a Bulk Erase operation is performed on the configuration memory region. The CPU can continue to read the memory, regardless of the protection bit settings. Self-writing the program memory is dependent upon the write protection setting.