Rainbow Electronics T89C51CC01 User Manual
Page 39

39
T89C51CC01
Rev. D – 17-Dec-01
Figure 14. Hardware Programming Procedure
9.3.7 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=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 15:
•
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
space and is
summarized in Figure 15:
•
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.
FLASH Spaces
Programming
Save & 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 & Disable IT
EA= 0
End Loading
Restore IT