13
P/N:PM0867
MX28F160C3T/B
REV. 0.7, AUG. 09, 2002
4.5 Sector Erase Command
Erase is executed one sector at a time and initiated by a
two-cycle command. A sector erase setup is first writ-
ten (20H), followed by a sector erase confirm (D0H). This
command sequence requires appropriate sequencing and
an address within the sector to be erased. Sector pre-
conditioning, erase, and verify are handled internally by
the WSM. After the two-cycle sector erase sequence is
written, the device automatically outputs status register
data when read (see Figure 8). The CPU can detect sec-
tor erase completion by analyzing the output data of the
status register bit SR.7.
When the sector erase is complete, status register bit
SR.5 should be checked. If a sector erase error is de-
tected, the status register should be cleared before sys-
tem software attempts corrective actions. The CUI re-
mains in read status register mode until a new com-
mand is issued.
This two-step command sequence of set-up followed by
execution ensures that sector contents are not acciden-
tally erased. An invalid sector Erase command sequence
will result in both status register bits SR.4 and SR.5
being set to "1". Also, reliable sector erasure can only
occur when 2.7V~3.6V and VPP=VPP1/2. In the absence
of this high voltage, sector contents are protected against
erasure. If sector erase is attempted while VPP<VPPLK
SR.3 and SR.5 will be set to "1". To successfully er ase
the boot sector, the corresponding sector lock-bit m ust
be clear first. In parameter and sectors case, it must be
cleared the corresponding sector lock-bit. If sector erase
is attempted when the excepting above sector being
locked conditions, SR.1 and SR.5 will be set to "1". Sec-
tor erase is not functional.
4.6 W ord Write Command
Word write is executed by a two-cycle command se-
quence. Word write setup (standard 40H or alternate 10H)
is written, followed by a second write that specifies the
address and data. The WSM then takes over, controlling
the word write and write v erify algorithms internally. Af-
ter the word write sequence is written, the device auto-
matically outputs status register data when read (see
Figure 6). The CPU can detect the completion of the
word write event by analyzing the status register bit SR.7.
When word write is complete, status register bit SR.4
should be checked. If word write error is detected, the
status register should be cleared. The internal WSM verify
only detects errors for "1"s that do not successfully write
to "0"s. The CUI remains in read status register mode
until it receives another command.
Reliable word writes can only occur when
VCC=2.7V~3.6V and VPP=VPP1/2. If VPP is not within
acceptable limits , the WSM doesn't ex ecut the program
command. If word write is attempted while VPP<VPPLK,
status register bits SR.3 and SR.4 will be set to "1".
Successful word write requires for boot sector that WP
is VIH the corresponding sector lock-bit be cleared. In
parameter and main sectors case, it must be cleared
the corresponding sector lock-bit. If word write is at-
tempted when the excepting above sector being clocked
conditions, SR.1 and SR.4 will be set to "1". Word write
is not functional.
4.7 Sector Erase Suspend Command
The Sector Erase Suspend command (50H) allows sec-
tor-erase interruption to read or word write data in an-
other sector of memory . Once the sector erase process
starts, writing the Sector Erase Suspend command re-
quests that the WSM suspend the sector erase sequence
at a predetermined point in the algor ithm. The device
outputs status register data when read after the Sector
Erase Suspend command is written. P olling status reg-
ister bits SR.7 and SR.6 can determine when the sector
erase operation has been suspended (both will be set to
"1"). Specification tWHRH2/tEHRH2 defines the sector
erase suspend latency.
When Sector Erase Suspend command is written to the
CUI, if sector erase was finished, the device would be
placed read array mode. Therefore, after Sector Erase
Suspend command is written to the CUI, Read Status
Register command (70H) has to be written to CUI, then
status register bit SR.6 should be checked if/when the
device is in suspend mode.
At this point, a Read Array command can be written to
read data from sectors other than that which is sus-
pended. A Word Write commands sequence can also be
issued during erase suspend to program data in other
sectors. Using the Word Write Suspend command (see
Section 4.9), a word write operation can also be sus-
pended. During a word write operation with sector erase
suspended, status register bit SR.7 will return to "0".