Datasheet
36
4337K–USB–04/08
AT89C5130A/31A-M
Figure 8-7. Hardware Programming Procedure
8.3.7 Reading the Flash Spaces
8.3.7.1 User
The following procedure is used to read the User space and is summarized in Figure 8-8:
• Map the User space by writing 00h in FCON register.
• Read one byte in Accumulator by executing MOVC A, @A+DPTR with A = 0 & DPTR =
0000h to FFFFh.
8.3.7.2 Extra Row
The following procedure is used to read the Extra Row space and is summarized in Figure 8-8:
• 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.
Flash Spaces
Programming
Disable IT
EA = 0
Launch Programming
FCON = 54h
FCON = A4h
End Programming
Enable IT
EA = 1
FBusy
Cleared?
Erase Mode
FCON = 00h
Data Load
DPTR = 00h
ACC = Data
Exec: MOVX @DPTR, A
FCON = 0Ch