19 Memory programming
A96G166/A96A166/A96S166 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 A96G166/A96A166/A96S166 features the followings:
 Flash Size : 16Kbytes
 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 37. Flash Control and Status Register Map