SST89V564RD-33-I-PJ SST [Silicon Storage Technology, Inc], SST89V564RD-33-I-PJ Datasheet - Page 37

no-image

SST89V564RD-33-I-PJ

Manufacturer Part Number
SST89V564RD-33-I-PJ
Description
FlashFlex51 MCU
Manufacturer
SST [Silicon Storage Technology, Inc]
Datasheet
FlashFlex51 MCU
SST89E564RD / SST89V564RD / SST89E554RC / SST89V554RC
4.2.4 In-Application Programming Mode
Commands
All of the following commands can only be initiated in the
IAP mode. In all situations, writing the control byte to the
SFCM register will initiate all of the operations. All com-
mands will not be enabled if the security locks are enabled
on the selected memory block.
The Program command is for programming new data into
the memory array. The portion of the memory array to be
programmed should be in the erased state, FFH. If the
memory is not erased, it should first be erased with an
appropriate Erase command. Warning: Do not attempt to
write (program or erase) to a block that the code is cur-
rently fetching from. This will cause unpredictable pro-
gram behavior and may corrupt program data.
4.2.4.1 Chip-Erase
The Chip-Erase command erases all bytes in both memory
blocks. This command is only allowed when EA#=0 (exter-
nal memory execution). Additionally this command is not
permitted when the device is in level 4 locking. In all other
instances, this command ignores the Security Lock status
and will erase the security lock bits and re-map bits.
4.2.4.2 Block-Erase
The Block-Erase command erases all bytes in one of the
two memory blocks (Block 0 or Block 1). The selection of
the memory block to be erased is determined by the
(SFAH[7]) of the SuperFlash Address Register. For
SST89x564RD, refer to Table 4-5. For SST89x554RC, if
SFAH[7] = 0b, the primary flash memory Block 0 is
selected. If SFAH[7:4] = EH, the secondary flash memory
Block 1 is selected. The Block-Erase command sequence
for SST89x554RC is as follows:
©2003 Silicon Storage Technology, Inc.
operation completion
MOV SFCM, #01H
SFST[2] indicates
Polling scheme
MOV SFDT, #55H
ORL SFCF, #40H
IAP Enable
Set-Up
indicates completion
MOV SFCM, #81H
Interrupt scheme
INT1 interrupt
1207 F43.0
37
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.
operation completion
operation completion
MOV SFCM, #0DH
MOV SFCM, #0BH
MOV SFAH, #00H
SFST[2] indicates
SFST[2] indicates
Polling scheme
Polling scheme
Erase Block 0
MOV SFAH, #sector_addressH
MOV SFAL, #sector_addressL
Program sector address
ORL SFCF, #40H
MOV SFDT, #55H
ORL SFCF, #40H
IAP Enable
IAP Enable
Set-Up
OR
indicates completion
indicates completion
MOV SFCM, #8DH
MOV SFCM, #8BH
MOV SFAH, #F0H
Interrupt scheme
Interrupt scheme
Erase Block 1
INT1 interrupt
INT1 interrupt
S71207-04-000
Data Sheet
1207 F44.2
1207 F45.1
12/03

Related parts for SST89V564RD-33-I-PJ