14
P/N:PM1083
MX69F162/164C3BT/B
REV. 0.2, MAY 20, 2004
3.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 secto r 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 tw o-cycle secto r 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 secto r erase is attempted while VPP<VPPLK
SR.3 and SR.5 will be set to "1". To successfully erase
the boot sector, the corresponding sector lock-bit must
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.
3.6 W or d Write Command
Word write is executed by a two-cycle command se-
quence. Wo rd write setup (standard 40H or alternate 10H)
is written, followed by a second write that specifies the
address and data. The WSM then takes o ver , co ntrolling
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 wr ite 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
VCCf=2.7V~3.6V and VPP=VPP1/2. If VPP is not within
acceptable limits , the WSM do esn't e xecut 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 wo rd write requires fo r bo o t secto r 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
conditio ns , SR.1 and SR.4 will be set to "1". W ord write
is not functional.
3.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 secto r of memory. Once the secto r er ase process
starts, writing the Sector Erase Suspend co mmand re-
quests that the WSM suspend the sector erase sequence
at a predetermined point in the algorithm. The device
outputs status register data when read after the Sector
Erase Suspend co mmand 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 Wo rd Write commands sequence can also be
issued during erase suspend to program data in other
secto rs. 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".
However, SR.6 will remain "1" to indicate sector erase
suspend status.