3.4 Code Protection
Code protection is controlled using the CP bit. When code protection is
enabled, all program memory locations (0000h-7FFFh) read as ‘
0
’.
Further programming is disabled for the program memory (0000h-7FFFh), until the next
Bulk Erase operation is performed. Program memory can still be programmed and read
during program execution. The Revision ID, Device ID, Device Information Area, Device Configuration Information, User IDs, and Configuration Words can be programmed or read regardless of the code protection settings.
The only way to disable code protection is to use the Bulk Erase Program Memory command with a PC value of 80FDh or lower. This action will clear code protection and erase all memory locations.