FlashFlex MCU
SST89E516RD2 / SST89E516RD
SST89V516RD2 / SST89V516RD
Data Sheet
4.2.4.2 Block-Erase
4.2.4.4 Byte-Program
The Block-Erase command erases all bytes in one of two
memory blocks (Block 0 or Block 1). The selection of the
memory block to be erased is determined by the
SFCF[1:0]. The Block-Erase command sequence for
SST89x516RDx is as follows:
The Byte-Program command programs data into a single
byte. The address is determined by the contents of SFAH
and SFAL. The data byte is in SFDT.
IAP Enable
ORL SFCF, #40H
IAP Enable
ORL SFCF, #40H
Program byte address
MOV SFAH, #byte_addressH
MOV SFAL, #byte_addressL
Select Block
Configure SFCF[1:0]
*
Set-Up
MOV SFDT, #55H
Move data to SFDT
MOV SFDT, #data
Polling scheme
MOV SFCM, #0DH
Interrupt scheme
MOV SFCM, #8DH
Polling scheme
Interrupt scheme
MOV SFCM, #0EH
MOV SFCM, #8EH
SFST[2] indicates
INT1 interrupt
operation completion
indicates completion
1273 F06.0
SFST[2] indicates
INT1 interrupt
operation completion
indicates completion
* see Table 4-2
1273 F08.0
4.2.4.3 Sector-Erase
The Sector-Erase command erases all of the bytes in a
sector. The sector size for the flash memory blocks is 128
Bytes. The selection of the sector to be erased is deter-
mined by the contents of SFAH and SFAL.
IAP Enable
ORL SFCF, #40H
Program sector address
MOV SFAH, #sector_addressH
MOV SFAL, #sector_addressL
Polling scheme
Interrupt scheme
MOV SFCM, #0BH
MOV SFCM, #8BH
SFST[2] indicates
INT1 interrupt
operation completion
indicates completion
1273 F07.0
©2007 Silicon Storage Technology, Inc.
S71273-03-000
1/07
36