Datasheet
34
4337K–USB–04/08
AT89C5130A/31A-M
Figure 8-5. Column Latches Loading Procedure
8.3.6 Programming the Flash Spaces
8.3.6.1 User
The following procedure is used to program the User space and is summarized in Figure 8-6:
• Load data in the column latches from address 0000h to 7FFFh
(1)
.
• Disable the interrupts.
• Launch the programming by writing the data sequence 50h followed by A0h in FCON
register.
The end of the programming indicated by the FBUSY flag cleared.
• Enable the interrupts.
Note: 1. The last page address used when loading the column latch is the one used to select the page
programming address.
8.3.6.2 Extra Row
The following procedure is used to program the Extra Row space and is summarized in Figure 8-
6:
• Load data in the column latches from address FF80h to FFFFh.
• Disable the interrupts.
• Launch the programming by writing the data sequence 52h followed by A2h in FCON
register.
The end of the programming indicated by the FBUSY flag cleared.
• Enable the interrupts.
Column Latches
Loading
Data Load
DPTR = Address
ACC = Data
Exec: MOVX @DPTR, A
Last Byte
to load?
Column Latches Mapping
FPS = 1
Data memory Mapping
FPS = 0