S3F84B8_UM_REV 1.00
19 EMBEDDED FLASH MEMORY INTERFACE
19-4
19.1.5.3 Flash Memory Sector Address Registers
There are two sector address registers for erasing or programming flash memory, namely:
Flash Memory Sector Address Register Low Byte (FMSECL)
Flash Memory Sector Address Register High Byte (FMSECH)
FMSECL indicates the low byte of sector address, whereas FMSECH indicates the high byte of sector address.
One sector consists of 128 bytes. Each sector’s address starts XX00H or XX80H, that is, the base address of
sector is XX00H or XX80H. Thus, bit.6-.0 of FMSECL is meaningless. While programming the flash memory, you
should load the sector base address before program. If the next operation is to write one byte data, you should
check whether the next destination address is located in the same sector. In case of other sectors, you should
reload the sector address to FMSECH and FMSECL registers. (For more information, refer to page 19-10 for
“
Flash Memory Sector Address Register (FMSECH)
F7H, Set1, Bank 1, R/W
.7
.6
.5
.4
.3
.2
.1
.0
MSB
LSB
Flash Memory Sector Address(High Byte)
Figure 19-4 Flash Memory Sector Address Register (FMSECH)
Flash Memory Sector Address Register (FMSECL)
F8H, Set1, Bank 1, R/W
.7
.6
.5
.4
.3
.2
.1
.0
MSB
LSB
Flash Memory Sector Address(Low Byte)
Don't Care
Figure 19-5 Flash Memory Sector Address Register (FMSECL)