User Manual

38
T89C51AC2
Rev. B 19-Dec-01
Figure 15. Reading Procedure
9.3.8 Flash Pro t ection from
Parallel Programming
The three lo ck bits in Hardware S ec urity Byte (s ee "In-System Program ming" section)
are programmed ac c ordi ng to Table 11 provi de diff erent level of protect ion for the on-
chip code and data located in FM0 and FM1.
The only way to write t his bits are the parallel mode. T hey are set by default to level 4
Table 11. Program Lock bit
Program Lock bits
U: unprogramm ed
P: programmed
WARNING: Security level 2 and 3 should only be programmed after F las h and Core
verification.
FLASH Spaces
Reading
FLASH Spaces Mapping
FCON= 00000xx0b
Data Read
DPTR= Address
ACC= 0
Exec:MOVCA,@A+DPTR
Clear Mode
FCON = 00h
Program Lock Bits
Protection description
Security
level
LB0 LB1 LB2
1UUU
No program lock features enabled. MOVC instruction executed from
external program memory returns non encrypted data.
2PUU
MOVC instruction executed from external program memory are
disabled from fetching code bytes from internal memory, EA
is sampled
and latched on reset, and further parallel programming of the Flash is
disabled.
3UPU
Same as 2, also verify through parallel programming interface is
disabled.
4 UUP
Same as 3, also external execution is disabled if code roll over beyond
7FFFh