English
Language : 

C8051F330-GMR Datasheet, PDF (102/210 Pages) Silicon Laboratories – Mixed-Signal ISP Flash MCU
C8051F330/1/2/3/4/5
11.3. Security Options
The CIP-51 provides security options to protect the Flash memory from inadvertent modification by soft-
ware as well as to prevent the viewing of proprietary program code and constants. The Program Store
Write Enable (bit PSWE in register PSCTL) and the Program Store Erase Enable (bit PSEE in register
PSCTL) bits protect the Flash memory from accidental modification by software. PSWE must be explicitly
set to ‘1’ before software can modify the Flash memory; both PSWE and PSEE must be set to ‘1’ before
software can erase Flash memory. Additional security features prevent proprietary program code and data
constants from being read or altered across the C2 interface.
A Security Lock Byte located at the last byte of Flash user space offers protection of the Flash program
memory from access (reads, writes, or erases) by unprotected code or the C2 interface. The Flash security
mechanism allows the user to lock n 512-byte Flash pages, starting at page 0 (addresses 0x0000 to
0x01FF), where n is the 1’s complement number represented by the Security Lock Byte. Note that the
page containing the Flash Security Lock Byte is unlocked when no other Flash pages are locked
(all bits of the Lock Byte are ‘1’) and locked when any other Flash pages are locked (any bit of the
Lock Byte is ‘0’). See example below.
Security Lock Byte:
1s Complement:
Flash pages locked:
Addresses locked:
11111101b
00000010b
3 (First two Flash pages + Lock Byte Page)
0x0000 to 0x03FF (first two Flash pages) and 0x1C00 to 0x1DFF or 0x0E00 to
0x0FFF or 0x0600 to 0x07FF (Lock Byte Page)
Locked when
any other FLASH
pages are locked
Access limit set
according to the
FLASH security
lock byte
C8051F330/1
Reserved
Lock Byte
0x1E00
0x1DFF
0x1DFE
0x1C00
Unlocked FLASH Pages
C8051F332/3
Reserved
Lock Byte
0x1000
0x0FFF
0x0FFE
0x0E00
Unlocked FLASH Pages
C8051F334/5
Reserved
Lock Byte
0x800
0x07FF
0x07FE
0x0600
Unlocked FLASH Pages
Locked Flash Pages
0x0000
Locked Flash Pages
0x0000
Locked Flash Pages
Figure 11.2. Flash Program Memory Map
0x0000
Rev. 1.7
105