XC864
Functional Description
3.2.1 Memory Protection Strategy
The XC864 memory protection strategy includes:
• Read-out protection: The user is able to protect the contents in the Flash memory from
being read
• Flash program and erase protection: The Flash memory in all devices can be enabled
for program and erase protection
• Block external access and allow only boot in User Mode: Disable BSL and OCDS
modes.
Flash memory protection modes provided are:
• Mode 0: Protect against accidental erase and block external access.
• Mode 1: Read, program and erase protection are enabled, and block external access.
Flash protection is enabled by installing the user password via BSL mode 6. The user
setting of password for selection of each protection mode and the restrictions imposed
are summarized in Table 2. Flash protection mode 1 is meaningful only if the Flash is
used for code only. Otherwise if the Flash is used partially for code and partially for data,
then only Flash protection mode 0 is meaningful.
Note: In XC864, the type of Flash protection scheme will affect the entering of BSL Mode
once User Mode is entered.
Table 2
Flash Protection Modes
Mode
Selection
Flash contents
can be read by
Flash program
0
MSB of password = 0
Read instructions in any program
memory
Possible
1
MSB of password = 1
Read instructions in Flash
Not possible
Data Sheet
13
V 1.1, 2009-03