reading the flash spaces, Preliminary – Rainbow Electronics T89C51CC02 User Manual
Page 26

26
Rev.A - May 17, 2001
Preliminary
T89C51CC02
7.3.7. Reading the FLASH Spaces
User
The following procedure is used to read the User space and is summarized in Figure 11:
•
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.
Extra Row
The following procedure is used to read the Extra Row space and is summarized in Figure 11:
•
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.
Hardware Security
The following procedure is used to read the Hardware
Security
space and is summarized in Figure 11:
•
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.
Figure 11. Reading Procedure
FLASH Spaces
Reading
FLASH Spaces Mapping
FCON= 00000xx0b
Data Read
DPTR= Address
ACC= 0
Exec: MOVC A, @A+DPTR
Erase Mode
FCON = 00h