28
P/N:PM1129 REV. 1.1 , JUL. 14, 2005
MX29LV320MT/B
actively erasing o r is erase-suspended. Q6, by co mpari-
so n, indicates whether the device is actively er asing, o r
is in Erase Suspend, but cannot distinguish which sec-
to rs are selected fo r er asure. Thus , both status bits are
required for sectors and mo de info rmation. Refer to T able
5 to co mpare o utputs f o r Q2 and Q6.
Reading Toggle Bits Q6/ Q2
Whenev er the system initially begins reading toggle bit
status, it must read Q7-Q0 at least twice in a row to
determine whether a toggle bit is to ggling. Typically , the
system would note and store the value of the toggle bit
after the first read. After the second read, the system
would compare the new value of the toggle bit with the
first. If the to ggle bit is no t to ggling, the device has co m-
pleted the pro gr am o r erase o per atio n. The system can
read arra y data o n Q7-Q0 on the fo llowing read cycle.
However, if after the initial two read cycles, the system
determines that the to ggle bit is still to ggling, the system
also should note whether the value o f Q5 is high (see the
section on Q5). If it is, the system should then deter-
mine again whether the toggle bit is toggling, since the
toggle bit may have stopped toggling just as Q5 went
high. If the toggle bit is no longer toggling, the device
has successfully co mpleted the program o r erase opera-
tio n. If it is still to ggling, the de vice did not co mplete the
operation successfully, and the system must write the
reset co mmand to return to reading array data.
The remaining scenario is that system initially determines
that the toggle bit is to ggling and Q5 has not gone high.
The system may continue to monitor the toggle bit and
Q5 thro ugh successive read cycles, determining the sta-
tus as described in the previo us paragraph. Alternatively ,
it may choose to perform other system tasks. In this
case, the system must start at the beginning of the algo-
rithm when it returns to determine the status of the op-
eration.
Q5:Program/Erase Timing
Q5 will indicate if the program o r erase time has exceeded
the specified limits (internal pulse count). Under these
co nditio ns Q5 will pro duce a "1". This time-o ut conditio n
indicates that the program or erase cycle was not suc-
cessfully completed. Data# Polling and Toggle Bit are
the o nly operating functio ns o f the device under this co n-
dition.
If this time-out conditio n occurs during sector erase op-
eration, it specifies that a particular sector is bad and it
may not be reused. Howe ver , other sectors are still func-
tional and may be used f or the program o r er ase opera-
tio n. The device must be reset to use o ther sectors. Write
the Reset command sequence to the device, and then
execute pro gram o r erase co mmand sequence . This al-
lows the system to co ntin ue to use the o ther active sec-
tors in the device.
If this time-out condition occurs during the chip erase
o peration, it specifies that the entire chip is bad or combi-
natio n of secto rs are bad.
If this time-o ut condition occurs during the byte/wo rd pro-
gramming operation, it specifies that the entire sector
containing that byte is bad and this sector may not be
reused, (o ther sectors are still functio nal and can be re-
used).
The time-o ut co nditio n ma y also appear if a user tries to
pro gram a non blank location without erasing. In this case
the de vice locks o ut and ne ver co mpletes the Auto matic
Algorithm operation. Hence, the system never reads a
v alid data o n Q7 bit and Q6 ne v er sto ps toggling. Once
the Device has exceeded timing limits, the Q5 bit will
indicate a "1". Please note that this is not a de vice fail-
ure co nditio n since the de vice w as inco rrectly used.
The Q5 f ailure condition may appear if the system tries
to program a to a "1" location that is previously pro-
grammed to "0". Only an erase o per atio n can change a
"0" back to a "1". Under this condition, the device halts
the o peratio n, and when the operatio n has exceeded the
timing limits, Q5 produces a "1".
Q3:Sector Erase Timer
After the co mpletio n o f the initial secto r erase co mmand
sequence, the sector erase time-out will begin. Q3 will
remain low until the time-out is co mplete. Data# P o lling
and T o ggle Bit are valid after the initial secto r erase com-
mand sequence.
If Data# Polling o r the To ggle Bit indicates the device has
been written with a valid erase command, Q3 may be
used to determine if the sector erase timer window is still
open. If Q3 is high ("1") the inter nally controlled erase
cycle has begun; attempts to write subsequent commands