19. Memory programming
A96G140/A96G148/A96A148 User’s manual
232
19
Memory programming
A96G140/A96G148/A96A148 has flash memory to which a program can be written, erased, and
overwritten while mounted on the board. Serial ISP mode is supported.
Flash of A96G140/A96G148/A96A148 features the followings:
Flash Size : 64Kbytes
Single power supply program and erase
Command interface for fast program and erase operation
Up to 30,000 program/erase cycles at typical voltage and temperature for flash memory
Security feature
19.1
Flash control and status registers
Registers controlling Flash and Data EEPROM are Mode Register (FEMR), Control Register (FECR),
Status Register (FESR), Time Control Register (FETCR), Address Low Register x (FEARLx), Address
Middle Register x (FEARMx), address High Register (FEARH). They are mapped to SFR area and can
be accessed only in programming mode.
19.1.1
Register map
Table 44. Flash Control and Status Register Map
Name
Address
Dir
Default
Description
FEMR
1020H
R/W
00H
Flash Mode Register
FECR
1021H
R/W
03H
Flash Control Register
FESR
1022H
R/W
80H
Flash Status Register
FETCR
1023H
R/W
00H
Flash Time Control Register
FEARL1
1025H
R/W
00H
Flash Address Low Register 1
FEARM1
1024H
R/W
00H
Flash Address Middle Register 1
FEARL
102AH
R/W
00H
Flash Address Low Register
FEARM
1029H
R/W
00H
Flash Address Middle Register
FEARH
1028H
R/W
00H
Flash Address High Register