Datasheet
41
A/T89C51CC01
4129N–CAN–03/08
Figure 23. Hardware Programming Procedure
Reading the Flash Spaces
User The following procedure is used to read the User space:
• Read one byte in Accumulator by executing MOVC A,@A+DPTR where A+DPTR is
the address of the code byte to read.
Note: FCON is supposed to be reset when not needed.
Extra Row The following procedure is used to read the Extra Row space and is summarized in
Figure 24:
• Map the Extra Row space by writing 02h in FCON register.
• Read one byte in Accumulator by executing MOVC A,@A+DPTR with A = 0 and
DPTR = FF80h to FFFFh.
• Clear FCON to unmap the Extra Row.
Hardware Security Byte
The following procedure is used to read the Hardware
Security
space and is
summarized in Figure 24:
• Map the Hardware Security space by writing 04h in FCON register.
• Read the byte in Accumulator by executing MOVC A,@A+DPTR with A = 0 and
DPTR = 0000h.
• Clear FCON to unmap the Hardware Security Byte.
Flash Spaces
Programming
Save and Disable IT
EA = 0
Launch Programming
FCON = 54h
FCON = A4h
End Programming
RestoreIT
FBusy
Cleared?
Clear Mode
FCON = 00h
Data Load
DPTR = 00h
ACC = Data
Exec: MOVX @DPTR, A
FCON = 0Ch
Save and Disable IT
EA = 0
End Loading
Restore IT