Figure 16. Hardware Programming Procedure
Flash Spaces
Programming
Save & Disable IT
EA = 0
Save & Disable IT
EA = 0
Launch Programming
FCON = 54h
FCON = A4h
FCON = 0Ch
Data Load
DPTR = 00h
ACC = Data
FBusy
Cleared?
Exec: MOVX @DPTR, A
Clear Mode
FCON = 00h
End Loading
Restore IT
End Programming
RestoreIT
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 with A+DPTR is
the address of the code byte to read.
Note: FCON must be cleared (00h) when not used.
Extra Row
The following procedure is used to read the Extra Row space and is summarized in
Figure 17:
•
•
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 &
DPTR= FF80h to FFFFh.
•
Clear FCON to unmap the Extra Row.
Hardware Security Byte
The following procedure is used to read the Hardware Security Byte and is sum-
marized in Figure 17:
•
•
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 &
DPTR= 0000h.
•
Clear FCON to unmap the Hardware Security Byte.
38
AT89C5115
4128F–8051–05/06