Am29LV004 17
PRELIMINARY
RY/ BY#: Read y/Bu sy#
The RY/BY# is a dedicated, open-drain output pin that
indicates whether an Embedded Algorithm is in
progress or complete. The RY/BY# status is valid after
the rising edge of the f inal WE# pulse in the command
sequence. Since RY/BY# is an open-drain output, several RY/BY# pins can be tied together in parallel with a
pull-up resistor to V
CC
.
If the output is low (Busy), the device is actively erasing
or programming. (T his includes programm ing in the
Erase Suspend mode.) If the output is high (Ready),
the device is ready to read array data (including during
the Erase Suspend mode), or is in the standby mode.
Table 6 shows the outputs for RY/BY#. Figures 12, 13,
14 and 15 shows RY/BY# for read, reset, program, and
erase operations, respecti vely.
DQ6: Toggle Bit I
Toggle Bit I on DQ6 indicates whether an Embedded
Progra m or Era se alg ori thm is i n progre ss or comple te,
or whether the device has entered the Erase Suspend
mode. Toggle Bit I may be read at an y address, and i s
valid aft er th e risi n g ed ge of the fin al WE # pu l se in th e
command sequence (prior to the program or erase operati on), and duri ng the sector er ase tim e -out.
During an Embe dded Prog ram or Eras e algor ithm op eration, succe ssive read cycles to any a ddress c ause
DQ6 to toggle. (The system may use either OE# or
CE# to control the read cycles.) When the operation is
complete, DQ6 stops toggling.
After an erase command sequence is written, if all sectors selected for erasing are protected, DQ6 toggles for
approximately 100 µs, then returns to reading array
data. If n ot all selected se ctors are pro te cted , the E m bedded Erase algorithm erases the unprotected sectors, and ignores the selected sectors that are
protect ed.
The system can use DQ6 an d DQ2 togethe r to determine whether a sector is actively erasing or is erasesuspended. When the device is actively erasing (that
is, th e Em be dd e d Er as e alg or i t hm is i n pr og re s s ), D Q6
toggles. When the device enters the Erase Suspend
mode, DQ6 stop s to ggling . Ho wever, the system must
also use DQ2 to deter mine whic h sector s are eras ing
or erase-suspende d. Alter na tively, the system can use
DQ7 (see the subsection on “DQ7: Data# Polling”).
If a program address falls within a protected sector,
DQ6 togg les f or ap proxi mat ely 2 µs afte r the prog ram
comman d s eq uence is wr it ten , th en returns to r ea di n g
array data.
DQ6 also toggles during the erase-suspend-program
mode, and sto ps toggling once the E mbedded Program algorithm is complete.
Table 6 shows the ou tputs for Toggle Bit I on DQ6.
Refer to Figure 5 for the toggle bit algorithm, and to Figure 17 in t h e “ AC Ch ar ac ter i s ti cs” s ec ti o n fo r th e t og gle
bit timing diagrams. Figure 18 shows the differences
between DQ2 and DQ6 in graphical form. See also the
subsection on “DQ2: Toggle Bit II”.
DQ2: Toggle Bit II
The “Toggle Bit II” on DQ2, when used with DQ6, indicates whether a particular sector is actively erasi ng
(that is, the Embedded Erase algorithm is in progress),
or whet her t hat secto r is eras e-sus pen ded. Toggle B it
II is valid after the rising edge of the final WE# pulse in
the command sequence.
DQ2 toggles when the system reads at addresses
within those sectors that have been selected for erasure. (The syste m may use eith er OE # or CE # to con trol the read cycles.) But DQ2 cann ot distinguish
whether the sector is activ ely erasin g or is erase- suspended. DQ6, by comparison, indicates whether the
device is actively erasing, or is in Erase Suspend, but
cannot distinguish which sectors are selected for erasure. Thus, both status bits are required for sector and
mode information. Refer to Table 6 to compare outputs
for DQ2 and DQ6.
Figure 5 shows the toggle bit algorithm i n flowchart
form, and th e section “ D Q2 : Toggle Bit II” e x p lains the
algorithm. See also the “DQ6: Toggle Bit I” subsection.
Figure 17 sh ows the toggl e bit tim ing d iagram . Fi gur e
18 shows the differences between DQ2 and DQ6 in
graphical form.
Reading Toggle Bits DQ6/DQ2
Refer to Figure 5 for the following discussion. Whenever
the system initially begins reading toggle bit status, it
must read DQ7–DQ0 at least twice in a row to determine
whether a toggle bit is toggling. 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
toggle bit is not toggling, the device has completed the
program or erase operation. The system can read array
data on DQ7–DQ0 on the following read cycle.
However, if after the initial two read cycles, the system
determines that t he toggle bit is still toggling, t he sys tem also should note whether the value of DQ5 is high
(see the section on DQ5). If it is, the system should
then determine again whether the toggle bit is toggling,
since the toggle bi t ma y h av e s top ped toggli ng ju s t a s
DQ5 went high. If the toggle bit is no longer toggling,
the device has su cce ssfu lly comp let ed the prog ram o r
erase operation. If it is still t oggling, t he de vice did not
completed the operation successfully, and the system
must write the reset command to return to reading
array data.