– Embedded Byte Program algorithm
– Embedded Multi-Block/Chip Erase algorithm
– Status Register Polling and Toggle Bits
■ ERASE SUSPEND and RESUME MODES
– Read and Program another Block during
Erase Suspend
■ UNLOCK BYPASS PROGRAM COMMAND
– Faster Production/Batch Programming
■ LOW POWER CONSUMPTION
– Standby and Automatic Standby
■ 100,000 PROGRAM/ERASE CYCLES per
BLOCK
■ 20 YEARS DATA RETENTION
– Defectivity below 1 ppm/year
■ ELECTRONIC SIGNATURE
– Manufacturer Code : 20h
– Device Code: E3h
■ ECOPACK
®
PACKAGES AVAILABLE
M29W040B
4 Mbit (512Kb x8, Uniform Block)
PLCC32 (K)
TSOP32 (NZ)
8 x 14mm
Figure 1. Logic Diagram
V
CC
19
A0-A18
TSOP32 (N)
8 x 20mm
8
DQ0-DQ7
W
M29W040B
E
G
V
SS
AI02953
1/20September 2005
M29W040B
Figure 2. PLCC Connections
A16
A7
A6
A5
A4
A3
A2
A1
A0
DQ0
A12
9
DQ1
A18
A15
1
32
M29W040B
17
SS
V
DQ2
DQ3
V
DQ4
CC
W
DQ5
A17
25
DQ6
A14
A13
A8
A9
A11
G
A10
E
DQ7
AI02951
Figure 3. TSOP Connections
A11G
A9
A8
A13
A14
A17
V
CC
A18
A16
A15
A12
A7
A6
A5
A4A3
1
W
8
M29W040B
9
1617
32
25
24
AI02952
A10
E
DQ7
DQ6
DQ5
DQ4
DQ3
V
SS
DQ2
DQ1
DQ0
A0
A1
A2
Table 1. Signal Names
A0-A18Address Inputs
DQ0-DQ7Data Inputs/Outputs
E
G
W
V
V
CC
SS
Chip Enable
Output Enable
Write Enable
Supply Voltage
Ground
SUMMARY DESCRIPTION
The M29W040B is a 4 Mbit ( 512Kb x 8) non-v olatile memory that c an be read, erased and r eprogrammed. These operations can be performed
using a single low voltage (2.7 to 3.6V) supply. On
power-up the memory default s to its Read mode
where it can be read in the same way as a ROM or
EPROM. The M29W040B is fully backward compatible with the M29W040.
The memory is divided into blocks that can be
erased independently s o i t is po ss ible to preserve
valid data while old data is erased. Each block can
be protected independen tly to prevent accidental
Program or Erase com mands from modifying the
memory. Program and Erase co mmands are written to the Command Int erface of th e memory . An
on-chip Program/Erase Controller simplifies the
process of programming or erasing the memory by
taking care of all of the special operations that are
required to update the memory contents. The end
of a program or erase operation ca n be detected
and any error conditions ide nti fie d. T he co mma nd
set required to control the memory is consistent
with JEDEC standards.
Chip Enable, Output Enable and Write Enable signals control the bus operation of the memory.
They allow simple connection to most microprocessors, often without additional logic.
The memory is offered in TSOP32 (8 x 20mm),
TSOP32 (8 x 14mm) and PLC C32 packag es and
it is supplied with all the bits erased (set to ‘1’).
In order to meet environme ntal requirements, ST
offers the M29W040B in ECOPACK
®
packages.
ECOPACK packages are Lead-free. The category
of second Level Interconnect is marked on the
package and on the inner box label, in compliance
with JEDE C Stand ard JESD 97. The m aximum ratings related to soldering conditions are also
marked on the inner box label.
ECOPACK is an ST trademark. ECOPACK specifications are available at: www.st.com.
2/20
M29W040B
Table 2. Absolute Maximum Ratings
SymbolParameterValueUnit
T
A
T
BIAS
T
STG
(2)
V
IO
V
CC
V
ID
Note: 1. Except for the rating "Operating Temperature Range", stresses above those listed in the Table "Absolute Maximum Ratings" may
cause permanent damage to the device. Thes e are str ess ratin gs only and oper at ion of the device at thes e or any ot her condi tio ns
above those indicated in the Operating sections of this specification is not implied. Exposure to Absolute Maximum Rating conditions for extended periods may affect dev ice reliability. Refer also to the S TMicroelectronics SURE Progr am and other relevant quality documents.
2. Minimum Voltage may undershoot to –2V during transition and for less than 20ns during transitions.
Ambient Operating Temperature (Temperature Range Option 1)0 to 70°C
Ambient Operating Temperature (Temperature Range Option 6)–40 to 85°C
Temperature Under Bias–50 to 125°C
Storage Temperature–65 to 150°C
Input or Output Voltage–0.6 to 4V
Supply Voltage–0.6 to 4V
the memory, allowing Bus Read and Bus Write operations to be performed. When Chip Enable is
High, V
Output Enable (G
, all other pins are ignored.
IH
). The Output Enable , G, con-
trols the Bus Read operation of the memory.
Write Enable (W
). The Write Enable, W, controls
the Bus Write operation of the memory’s Command Interface.
V
Supply Voltage. The VCC Supply Voltage
CC
supplies the power for all operations (Read, Program, Erase etc.).
The Command Interface is disabled when the V
CC
Supply Voltage is le ss than the Lockout Vo ltage,
V
. This prevents Bus Write operations from ac-
SIGNAL DESCRIPTIONS
See Figure 1, Logic Diag ra m, an d T ab le 1 , Signal
Names, for a brief overview of the signals connected to this device.
Address Inputs (A0-A18). The Address Inputs
select the cells in the memory array to access during Bus Read operations. During Bus Write operations they control the commands sent to the
Command Interface of the internal state machine.
Data Inputs/Outputs (DQ0-DQ7). The Data Inputs/Outputs output the data stored at the selected
address during a Bus Read operation. During Bus
Write operations they represent the commands
LKO
cidentally damaging the data during power-up,
power-down and power surges. If the Program/
Erase Controller is programming or erasing during
this time then the operation aborts and the memory contents being altered will be invalid.
A 0.1µF capacitor sh ould be connected between
the V
Supply Voltage pin and the VSS Ground
CC
pin to decouple the current surges from the power
supply. The PCB track widths must be sufficient to
carry the currents required during program and
erase operations, I
Ground. The VSS Ground is the reference for
V
SS
CC3
.
all voltage measurements.
sent to the Command Interface of the internal state
machine.
3/20
M29W040B
BUS OPERATIONS
There are five standard bus operations that control
the device. These are Bus Read, Bus Writ e, Output Disable, Standby and Automatic Standby. See
Table 4, Bus Operations, for a summary. Typically
glitches of less than 5ns on Chip En able or Write
Enable are ignored by the m emo ry and do not affect bus operations.
Bus Read. Bus Read operations read from the
memory cells, or specific registers in the Command Interface. A valid Bus Read operation involves setting the desired address on the Address
Inputs, applying a Low s ig nal, V
, to Chip Enable
IL
and Output Enable and keeping Write Enable
High, V
. The Data Inputs/Outputs will ou tpu t the
IH
value, see the Figure 8, Read Mode AC Waveforms, and Table 11, Read AC Characteristics, for
details of when the output becomes valid.
Bus Write. Bus Write operations write to the
Command Interface. A v alid Bus Write operati on
begins by setting the desired address on the Address Inputs. The Ad dress Inputs are latched b y
the Command Interface on the falling edge of Chip
Enable or Write Enable, whichever occurs last.
The Data Inputs/Outputs ar e latched by the Com mand Interface on the rising ed ge of Chip Enab le
or Write Enable, whichever occurs first. Output Enable must remain High, V
, during the whole Bus
IH
Write operation . See Figures 9 and 10 Write AC
Waveforms, and Tables 12 and 13, Write AC
Characteristics, for details of the timing requirements.
Output Disable. The Data Inputs /Outputs are in
the high impedance state when Output Enable is
High, V
.
IH
Standby. When Chip Enable is High, V
IH
, the
memory enters Standby mode and the Data Inputs/Outputs pins are placed in the high-impedance state. To reduce the Su pply Current to the
Standby Supply Current, I
be held within V
± 0.2V. For the Standby current
CC
, Chip Enable should
CC2
level see Table 10, DC Characteristics.
During program or eras e operations the memory
will continue to use the Program/Erase Supply
Current, I
, for Program or Erase operations un-
CC3
til the operation completes.
Automatic Standby. If CMOS levels (V
± 0.2V)
CC
are used to drive the bus and the bus is inactive for
150ns or more the memory enters Automatic
Standby where the interna l Supply Current is reduced to the Standby Supply Current, I
CC2
. The
Data Inputs/Outputs will still output data if a Bus
Read operation is in progress.
Special Bus Operations
Additional bus operations can be performed to
read the Electronic Signature and also to apply
and remove Block Protection. These bus operations are intended for us e by progr ammin g equip ment and are not usually used in applications.
They require V
to be applied to some pins.
ID
Electronic Signature. The memory has two
codes, the manufacturer code and the device
code, that can be read to identify the memory.
These codes can b e read b y apply ing the sig nals
listed in Table 4, Bus Operations.
Block Protection and Blocks Unprotection. Each
block can be separately protected against accidental Program or Erase. Protected blocks can be
unprotected to allow data to be changed. Block
Protection and Blocks Unprotection operations
must only be performed on programming equip ment. For further informa tion refer to Application
Note AN1122, Applying Protectio n and Unpr otection to M29 Series Flash.
Table 4. Bus Operations
OperationEGWAddress Inputs
Bus Read
Bus Write
Output Disable
Standby
Read Manufacturer
Code
Read Device Code
Note: X = VIL or VIH.
4/20
V
IL
V
IL
XVIHV
V
IH
V
IL
V
IL
V
IL
V
IH
XXXHi-Z
V
IL
V
IL
Data
Inputs/Outputs
V
V
V
V
Cell AddressData Output
IH
Command AddressData Input
IL
XHi-Z
IH
A0 = VIL, A1 = VIL, A9 = VID,
IH
Others VIL or V
A0 = VIL, A1 = VIL, A9 = VID,
IH
Others VIL or V
IH
IH
20h
E3h
M29W040B
COMMAND INTERFACE
All Bus Write operations to the memory are interpreted by the Command Interface. Commands
consist of one or more sequential Bus Write operations. Failure to observe a valid sequence of Bus
Write operation s will result in the memory return ing to Read mode. The long command sequences
are imposed to maximize data security.
The commands are summarized in Table 5, Commands. Refer to Table 5 in conjunction with the
text descriptions below.
Read/Reset Command. The Read/Reset command returns the memory to its Read mode where
it behaves lik e a ROM or EPROM. I t also resets
the errors in the Status Register. Either one or
three Bus Write o perations can be us ed to issue
the Read/Reset command.
If the Read/Reset command is issued during a
Block Erase operation or following a Programming
or Erase error then the memory will take upto 10
µs
to abort. During the abort period no valid data can
be read from the memory. Issu ing a Read/Reset
command during a Block Erase operation will
leave invalid data in the memory.
Auto Select Command. The Auto Select command is used to read t he Manu facturer Code, the
Device Code and the Block Protection Status.
Three consecutive Bus Write operations are required to issue the Auto Sel ect command. Once
the Auto Select comman d is issued the memory
remains in Auto Sele ct mode until another command is issued.
From the Auto Select mode the Manufacturer
Code can be read using a Bus Read operation
with A0 = V
may be set to either V
and A1 = VIL. The other address bits
IL
or VIH. The Manufacturer
IL
Code for STMicroelectronics is 20h.
The Device Code can be read using a Bu s Read
operation with A0 = V
address bits may be s et to either V
and A1 = VIL. The other
IH
or VIH. The
IL
Device Code for the M29W040B is E3h.
The Block Protectio n Statu s of ea ch block c an be
read using a Bus Read ope ration with A0 = V
A1 = V
, and A16, A17 and A18 specifying the ad-
IH
IL
dress of the block. The ot her add re ss bi ts may be
set to either V
or VIH. If the address ed block is
IL
protected then 01h is ou tput on the Data Inputs/
Outputs, otherwise 00h is output.
Program Command. The Program command
can be used to program a value to one address in
the memory array at a time. The command requires four Bus Write operations, the final write operation latches the address and data in the internal
state machine and starts the Program/Erase Controller.
If the address falls in a protect ed block then the
Program command is ignored, the data remains
unchanged. The Status Register is never read and
no error condition is given.
During the program operation th e memory will ig nore all commands. It is no t possib le to is sue any
command to abort or pause the operation. Typical
program times are given in Table 6. Bus Read operations during the p rogram operation will output
the Status Register on the Data Inputs/Outputs.
See the section on the Status Register for more
details.
After the program operation has completed the
memory will return to the Read mode, unless an
error has occurred. When an error occurs the
memory will continue to output the Statu s Register. A Read/Reset command must be issued to reset the error condition and return to Read mode.
Note that the Program command cannot change a
bit set at ‘0’ back t o ‘1’. One of the Erase Commands must be used to set all the bits in a block or
in the whole memory from ‘0’ to ‘1’.
Unlock Bypass Command. The Unlock Bypass
command is used in conjunction with the Unlock
Bypass Program command to program the memory. When the access time to the device is long (as
with some EPROM programmers) considerable
time saving can be made by using these commands. Three Bu s Write operations are r equired
to issue the Unlock Bypass command.
Once the Unlock Bypass c ommand has been issued the memory will only accept the Unlock Bypass Program com mand and the Unlock B ypass
Reset command. The memory can be read as if in
Read mode.
Unlock Bypass Program Command. The Unlock Bypass Program command can be used to
program one address in memory at a time. The
command requires t wo Bus Write oper ations, the
final write operati on lat ches the a ddress and d ata
in the internal state machine and starts the Program/Erase Controller.
The Program operation us ing the Unlock Bypass
,
Program command behaves identically to the Program operation using the Program command. A
protected block cannot be progra mme d; the op eration cannot be aborted and the Status Register is
read. Errors must be reset using th e Read/Reset
command, which leav es the device in Unlock Bypass Mode. See the Program command for details
on the behavior.
Unlock Bypass Reset Command. The Unlock
Bypass Reset comm and can b e used to return to
Read/Reset mode from Unlock Bypass Mode.
Two Bus Write operations are required to issue the
Unlock Bypass Reset command.
5/20
M29W040B
Table 5. Commands
Bus Write Operations
Command
Read/Reset
Auto Select3555AA2AA5555590
Program4555AA2AA55555A0PAPD
Unlock Bypass3555AA2AA5555520
Unlock Bypass
Note: X Don’t Care, PA Program Address, PD Program Data, BA Any address in the Block.
All values in the table are in hexadecimal.
The Command Interface only uses address bits A0-A10 to verify the commands , t he upper address bits are Don’t Care.
Read/Reset. After a Read/Reset c ommand, read the memory as normal until anoth er command is issued.
Auto Select. After an Auto Select command, read Manufacturer ID, Device ID or Block Protection Statu s.
Program, Unlock Bypass Pr o gr am, Chip Erase, Block Erase. After these commands read the Status Register until the Program/Erase
Controller completes and the memory returns to Read Mode. Add additional Blocks during Block Erase Command with additional Bus Write
Operations until the Timeout Bit is set.
Unlock Bypass. After the Unlock Bypass command issue Unlock Bypass Program or Unlock Bypass Reset commands.
Unlock Bypass Reset. After the Unlock By pass Reset command read the memory as normal until another command is issued.
Erase Suspend. After the Erase Suspend co mmand read non-erasing memory blocks as nor mal, issue Auto Select and P rogram commands
on non-erasing blocks as normal.
Erase Resume. After the Erase Resume command the suspended Erase operation resumes, read the Status Register until the Program/
Erase Controller completes and the memory returns to Read Mode.
1X F0
3555 AA2AA 55 X F0
2XA0PAPD
1st2nd3rd4th5th6th
Length
Addr Data Addr Data Addr Data Addr Data Addr Data Addr Data
Chip Erase Command. The Chip Erase com-
mand can be used to erase the entire chip. Six Bus
Write operations are required to issue the Chip
Erase Command and start the Program/Erase
Controller.
If any blocks are protected then these are ignored
and all the other blocks are erased. If all of the
blocks are protected the Chip Erase operation appears to start but will terminate within about 100µs,
leaving the data unc hanged . No er ror con dition is
given when protected blocks are ignored.
During the erase operation the memory will ignore
all commands. It is not possible to issue any command to abort the operation. Typical chip erase
6/20
times are given in Table 6. All Bus Read operations during the Chip E rase operation will output
the Status Register on the Data Inputs/Outputs.
See the section on the Status Register for more
details.
After the Chip Erase o per at ion has c om ple ted the
memory will return to the Read Mode, unless an
error has occurred. When an error occurs the
memory will continue to output the Statu s Register. A Read/Reset command must be issued to reset the error condition and return to Read Mode.
The Chip Erase Command sets all of the bits in unprotected blocks of the memory to ‘1’. All previous
data is lost.
M29W040B
Block Erase Command. The Block Erase com-
mand can be used to erase a l ist of one or more
blocks. Six Bus W rite operations are required to
select the first block in the list. Each additional
block in the list can be select ed by repeating the
sixth Bus Write operation using the address of the
additional block. The Bloc k Er as e op erati on st ar ts
the Program/Erase Controller about 50µs after the
last Bus Write operation. Once the Program/Erase
Controller starts it is not possible to select any
more blocks. Each additional block must therefore
be selected within 50µs of the last block. The 50µs
timer restarts when an additional block is selected.
The Status Register can be read after the sixth
Bus Write operation. See the Status Register for
details on how to identify if the Program/Erase
Controller has started the Block Erase operation.
If any selected blocks are protected then these are
ignored and all the other selected blocks are
erased. If all of the sel ected blocks are pr otected
the Block Erase operation appears to start but will
terminate within about 100µs, leaving the data unchanged. No error condition is given when protected blocks are ignored.
During the Block Eras e o perat ion the memory will
ignore all comman ds except the Erase Suspend
and Read/Reset commands . Typical block erase
times are given in Table 6. All Bus Read operations during the B lock Erase op eration will output
the Status Register on the Data Inputs/Outputs.
See the section on the Status Register for more
details.
After the Block Erase operation has completed the
memory will return to the Read Mode, unless an
error has occurred. When an error occurs the
memory will continue to output the Statu s Regis-
ter. A Read/Reset command must be issued to reset the error condition and return to Read mode.
The Block Erase Comma nd sets all of the bits in
the unprotected selected blocks to ‘1’. All previous
data in the selected blocks is lost.
Erase Suspend Command. The Erase S u sp en d
Command may be used to tempor arily suspend a
Block Erase operation a nd return the memory to
Read mode. The command requires one Bus
Write operation.
The Program/Erase Control ler will sus pend with in
15µs of the Erase Suspend Command being issued. Once the Program/Erase Controller has
stopped the memory will be set to Read mode and
the Erase will be suspended. If the Erase Suspend
command is issued during the period when the
memory is waiting for an additiona l block (before
the Program/Erase Controller starts) then the
Erase is suspende d i mme di atel y and will start immediately when the Eras e Resume Command is
issued. It will not be possib le to select an y further
blocks for erasure after the Erase Resume.
During Erase Suspend i t is possible to Read and
Program cells in blocks that are not being erased;
both Read and Program operations behave as
normal on these bloc ks. Re adi ng fro m b lock s t hat
are being erased will output the Status Register. It
is also possible to enter the Auto Select mode: the
memory wil l behav e as in t he Auto Select mo de on
all blocks until a Read/Reset command returns the
memory to Erase Suspend mode.
Erase Resume Command. The Erase Resume
command must be used to restart the Program/
Erase Controller from Erase Suspend. An erase
can be suspended and resumed more than once.
Table 6. Program, Erase Times and Program, Erase Endurance Cycles
(T
= 0 to 70°C or –40 to 85°C)
A
ParameterMin
Chip Erase (All bits in the memory set to ‘0’)2.52.5sec
Chip Erase6635se c
Block Erase (64 Kbytes)0.80.86sec
Program1010200µs
Chip Program5.55.530sec
Program/Erase Cycles (per Block)100,000cycles
Note: 1. TA = 25°C, VCC = 3.3V.
Typ
(1)
Typical after
100k W/E Cycles
(1)
MaxUnit
7/20
M29W040B
STATUS REGISTER
Bus Read operations from any address always
read the Status Register during Program and
Erase operations. It is also read during Erase Suspend when an address within a block being erased
is accessed.
The bits in the Status R egi st er are s umm ar iz ed in
Table 7, Status Register Bits.
Data Polling Bit (DQ7). The Data Polling Bit can
be used to identify whether the Program/Erase
Controller has successfully completed its operation or if it has respond ed to an Erase Suspend.
The Data Polling Bit is output on DQ7 whe n the
Status Register is read.
During Program operations the Data Polling Bit
outputs the complement of the bit being programmed to DQ7. After successful completion of
the Program operation the memory returns to
Read mode and Bus Read operations from the address just programm ed output DQ7, not its complement.
During Erase operations the Data Polli ng Bit outputs ‘0’, the complement of the erased state of
DQ7. After su ccess ful co mpl etion of t he Er ase o peration the memory returns to Read mode.
In Erase Suspend mode the Data Polli ng Bit will
output a ‘1’ during a Bus Rea d operation withi n a
block being erased. The Data Polling Bit will
change from a ‘0’ to a ‘1’ when the Program/Erase
Controller has suspended the Erase operation.
Figure 3, Data Polling Flowc hart, gives an exam ple of how to use the Data Po lling Bit. A Valid Address is the address being programmed or an
address within the block being erased.
Toggle Bit (DQ6). The Toggle Bit can be used to
identify whether the Program/Erase Controller has
successfully completed its operation or if it has responded to an Erase Suspend. The To ggle Bit is
output on DQ6 when the Status Register is read.
During Program and Er ase oper ations the Togg le
Bit changes from ‘0’ to ‘1 ’ to ‘0’, etc., with succes sive Bus Read operations at any address. After
successful completion of the operation the memory returns to Read mode.
During Erase Suspend mode the Toggle Bit will
output when addressing a cell within a block being
erased. The Toggle Bit will stop toggling when the
Program/Erase Controller has suspended the
Erase operation.
Figure 4, Data To ggle Flowchart, gives an example of how to use the Data Toggle Bit.
Error Bit (DQ5). The Error Bit can be used to
identify errors detected by the Program/Erase
Controller. The Error Bit is set to ‘1’ when a Program, Block Erase or Chip Erase operation fails to
write the correct data to the memory. If the Error
Bit is set a Read/Reset command mus t be issu ed
before other comma nds are issued. The Error bit
is output on DQ5 when the Status Register is read.
Note that the Program command cannot change a
bit set at ‘0’ back to ‘1’ and attempting to do so may
or may not set DQ5 at ‘1’. I n both cases, a su ccessive Bus Read operation will show the bit is still ‘0’.
One of the Erase comma nds m ust b e use d to s et
all the bits in a block or in the whole memory from
‘0’ to ‘1’.
Table 7. Status Register Bits
OperationAddressDQ7DQ6DQ5DQ3DQ2
ProgramAny AddressDQ7
Program During Erase
Suspend
Program ErrorAny AddressDQ7
Chip EraseAny Address0Togg le01Toggle
Block Erase before
timeout
Block Erase
Erase Suspend
Erase Error
Note: Unspecified data bits should be ignored.
8/20
Any AddressDQ7
Erasing Block0Toggle00Toggle
Non-Erasing Block0Toggle00No Toggle
Erasing Block0Toggle01Toggle
Non-Erasing Block0Toggle01No Toggle
Erasing Block1No Toggle0–Toggle
Non-Erasing BlockData read as normal
Good Block Address0Toggle11No Toggle
Faulty Block Address0Toggle11Toggle
Toggle0––
Toggle0––
Toggle1––
M29W040B
Figure 4. Data Polling Flowchart
START
READ DQ5 & DQ7
at VALID ADDRESS
DQ7
DATA
NO
DQ5
READ DQ7
at VALID ADDRESS
DQ7
DATA
FAILPASS
= 1
=
=
YES
NO
YES
YES
NO
AI03598
Figure 5. Data Toggle Flowchart
START
READ
DQ5 & DQ6
READ DQ6
DQ6
=
TOGGLE
NO
DQ5
= 1
READ DQ6
TWICE
DQ6
=
TOGGLE
FAILPASS
NO
YES
YES
NO
YES
AI01370B
Erase Timer Bi t (DQ3). The Erase Ti mer Bit c an
be used to identify the start of Program/Erase
Controller operation during a Block Erase command. Once the Program/Erase Controller starts
erasing the Erase Timer Bit is set to ‘1’. Before the
Program/Erase Contro ller starts the Erase Timer
Bit is set to ‘0’ a nd additiona l blocks t o be eras ed
may be written to the Command Interface. The
Erase Timer Bit is output on DQ3 when the Status
Register is read.
Alternative Toggle Bit (DQ2). The Alternative
Toggle Bit can be u sed to monitor the Program/
Erase controller d uring Erase operations. The Alternative Toggle Bit is output on DQ2 when the
Status Register is read.
During Chip Erase and Block Erase operations the
Toggle Bit changes from ‘0 ’ to ‘1’ to ‘0’, etc., wi th
successive Bus Rea d operations from ad dresses
within the blocks being erased. Once the operation
completes the memory returns to Read mode.
During Erase Suspend the Alternative Toggle Bit
changes from ‘0’ to ‘1’ to ‘0’, etc. with successive
Bus Read operations from addresses within the
blocks being erased . Bus Read operations to addresses within blocks not b ei ng e rase d wi ll output
the memory cell data as if in Read mode.
After an Erase o per at ion th at ca us es th e Er ror B it
to be set the Alternative Toggle Bit can be used to
identify which block or blocks have caused the error. The Alternative Toggle Bit changes from ‘0’ to
‘1’ to ‘0’, etc. with successive Bus Read Operations from addresses with in blocks that have not
erased correctly. Th e Alternative Toggle B it does
not change if the addressed block has erased correctly.
9/20
M29W040B
Table 8. AC Measurement Conditions
Parameter
557090 / 120
Supply Voltage
V
CC
Load Capacitance (C
)
L
3.0 to 3.6V2.7 to 3.6V2.7 to 3.6V
30pF30pF100pF
Input Rise and Fall Times≤ 10ns≤ 10ns≤ 10ns
Input Pulse Voltages0 to 3V0 to 3V0 to 3V
Input and Output Timing Ref. Voltages1.5V1.5V1.5V
M29W040B
Figure 6. AC Testing Input Output Waveform
3V
1.5V
0V
AI01417
Figure 7. AC Testing Load Circuit
0.8V
1N914
3.3kΩ
DEVICE
UNDER
TEST
CL = 30pF or 100pF
CL includes JIG capacitance
Table 9. Capacitance
(T
= 25 °C, f = 1 MHz)
A
SymbolParameterTest ConditionMinMaxUnit
V
V
IN
OUT
= 0V
= 0V
6pF
12pF
C
IN
C
OUT
Note: Sampled only, not 100% tested.
Input Capacitanc e
Output Capacitance
OUT
AI02762
10/20
Table 10. DC Characteristics
(T
= 0 to 70°C or –40 to 85°C)
A
SymbolParameterTest ConditionMin
I
Input Leakage Current
LI
I
I
CC1
I
CC2
I
CC3
V
V
V
V
V
V
LKO
Note: 1. Sampled only, not 100% tested.
Output Leakage Curr en t
LO
Supply Current (Read )
Supply Current (Stan dby)
(1)
Supply Current (Program /Eras e)
Input Low Voltage–0.50.8V
IL
Input High Voltage
IH
Output Low Voltage
OL
Output High Voltage
OH
Identification Voltage11.512.5V
ID
I
Identification Current
ID
Program/Erase Lockout Supply
(1)
Voltage
2. T
= 25°C, VCC = 3.3V.
A
0V ≤ V
≤ V
IN
CC
0V ≤ V
E
= VIL, G = VIH, f = 6MHz
E
= VCC ± 0.2V
OUT
≤ V
CC
Program/Erase
Controller active
I
= 1.8mA
OL
I
= –100µAVCC – 0.4
OH
A9 = V
ID
0.7V
M29W040B
(2)
Typ.
410mA
30100µA
CC
1.82.3V
MaxUnit
±1µA
±1µA
20mA
VCC + 0.3
0.45V
100µA
V
V
11/20
M29W040B
Table 11. Read AC Characteristics
(T
= 0 to 70°C or –40 to 85°C)
A
SymbolAltParameterTest Condition
E
t
t
AVQV
t
ELQX
AVAV
t
Address Valid to Next Add res s Valid
RC
t
(1)
Address Valid to Output Valid
ACC
Chip Enable Low to Output
t
LZ
Transition
= VIL,
G = V
E
= VIL,
G = V
= V
G
IL
IL
IL
M29W040B
Unit
557090 / 120
Min557090ns
Max557090ns
Min000ns
t
t
ELQV
(1)
t
GLQX
t
GLQV
(1)
t
EHQZ
t
GHQZ
t
EHQX
t
GHQX
t
AXQX
Note: 1. Sampled only, not 100% tested.
t
(1)
Chip Enable Low to Output Valid
CE
Output Enable Low to Output
OLZ
Transition
t
Output Enable Low to Output Valid
OE
t
Chip Enable High to Output Hi-Z
HZ
t
Output Enable High to Output Hi-Z
DF
Chip Enable, Output Enable or
t
Address Transition to Output
OH
Transition
Figure 8. Read Mode AC Waveforms
A0-A18
tAVQVtAXQX
E
tAVAV
VALID
G
E
E
G
E
= V
= V
= V
= V
= V
Max557090ns
IL
Min000ns
IL
Max303035ns
IL
Max202530ns
IL
Max202530ns
IL
Min000ns
12/20
G
DQ0-DQ7
tELQV
tELQXtEHQZ
tGLQXtGHQX
tGLQV
tGHQZ
VALID
tEHQX
AI02903
Table 12. Write AC Characteristics, Write Enable Controlled
(T
= 0 to 70°C or –40 to 85°C)
A
SymbolAltParameter
t
AVAV
t
ELWL
t
WLWH
t
DVWH
t
WHDX
t
WHEH
t
WHWL
t
AVWL
t
WLAX
t
GHWL
t
WHGL
t
VCHEL
t
WC
t
CS
t
WP
t
DS
t
DH
t
CH
t
WPH
t
AS
t
AH
t
OEH
t
VCS
Address Valid to Next Address ValidMin557090ns
Chip Enable Low to Write Enable LowMin000ns
Write Enable Low to Write Enable HighMin404545ns
Input Valid to Write Enable HighMin253045ns
Write Enable High to Input TransitionMin000ns
Write Enable High to Chip Enable HighMin000ns
Write Enable High to Write Enable LowMin303030ns
Address Valid to Write Enable LowMin000ns
Write Enable Low to Address TransitionMin404545ns
Output Enable High to Write Enable LowMin000ns
Write Enable High to Output Enable LowMin000ns
VCC High to Chip Enable Low
M29W040B
M29W040B
Unit
557090 / 120
Min505050µs
Figure 9. Write AC Waveforms, Write Enable Controlled
tAVAV
A0-A18
E
G
W
DQ0-DQ7
V
CC
tAVWL
tELWL
tVCHEL
VALID
tWLWHtGHWL
tDVWH
tWLAX
tWHEH
tWHGL
tWHWL
tWHDX
VALID
AI02908
13/20
M29W040B
Table 13. Write AC Characteristics, Chip Enable Controlled
(T
= 0 to 70°C or –40 to 85°C)
A
SymbolAltParameter
t
AVAV
t
WLEL
t
ELEH
t
DVEH
t
EHDX
t
EHWH
t
EHEL
t
AVEL
t
ELAX
t
GHEL
t
EHGL
t
VCHWL
t
WC
t
WS
t
t
t
t
WH
t
CPH
t
t
t
OEH
t
VCS
Address Valid to Next Address ValidMin557090ns
Write Enable Low to Chip Enable LowMin000ns
Chip Enable Low to Chip Enable HighMin404545n s
CP
Input Valid to Chip Enable HighMin253045ns
DS
Chip Enable High to Input TransitionMin000ns
DH
Chip Enable High to Write Enable HighMin000ns
Chip Enable High to Chip Enable LowMin303030ns
Address Valid to Chip Enable LowMin000ns
AS
Chip Enable Low to Address TransitionMin404545ns
AH
Output Enable High Chip Enable LowMin000ns
Chip Enable High to Output Enable LowMin000ns
VCC High to Write Enable Low
M29W040BUnit
557090 / 120
Min505050µs
Figure 10. Write AC Waveforms, Chip Enable Controlled
tAVAV
A0-A18
W
G
E
DQ0-DQ7
V
CC
tAVEL
tWLEL
tVCHWL
VALID
tELEHtGHEL
tDVEH
tELAX
tEHWH
tEHGL
tEHEL
tEHDX
VALID
AI02909
14/20
Table 14. Ordering Information Scheme
Example:M29W040B55 N1T
Device Type
M29
Operating Voltage
W = VCC = 2.7 to 3.6V
Device Function
040B = 4 Mbit (512Kb x8), Uniform Block
Speed
55 = 55 ns
70 = 70 ns
90 = 90 ns
120 = 120 ns
Package
K = PLCC32
N = TSOP32: 8 x 20 mm
NZ = TSOP32: 8 x 14 mm
M29W040B
Temperature Range
1 = 0 to 70 °C
6 = –40 to 85 °C
Option
Blank = Standard Packing
T = Tape & Reel Packing
E = ECOPACK Package, Standard Packing
F = ECOPACK Package, Tape & Reel Packing
Note: The last two characters of th e ordering cod e may be r eplaced by a letter code for preprogr ammed
parts, otherwise devices are shipped from the factory with the memory content bits erased to ‘1’.
For a list of availa ble opt ion s (Spe ed, Pac k age , et c... ) or for fu r ther i nfo rm ati on o n a ny aspec t o f th is de vice, please contact the ST Sales Office nearest to you.
15/20
M29W040B
Table 15. PLCC32 – 32 lead Plastic Leaded Chip Carrier, Package Mechanical Data
Figure 13. TSOP32 – 32 lead Plastic Thin Small Outline, 8 x 14mm, Package Outline
A2
Note: Drawing is not to scale.
1N
N/2
D1
DIE
TSOP-a
E
A
D
C
e
B
CP
LA1α
18/20
Table 18. Revision History
DateRev.Revision Details
July 1999-01First Issue
I
Typ. specification added (Table 10)
21-Sep-1999-02
09-Mar-2000-03
22-Apr-2002-04PLCC32 package mechanical data modified
19-Sep-20055.0
CC1
I
Typ. specification added (Table 10)
CC2
Document type: from Preliminary Data to Data Sheet
Status Register bit DQ5 clarification
Data Polling Flowchart diagram change (Figure 4)
Data Toggle Flowchart diagram change (Figure 5)
Table 14. Order in g Infor m atio n Scheme: standard package ad de d and ECO PACK version
added for both standard package and Tape & Reel packing.
M29W040B
19/20
M29W040B
Information furnished is be lieved to be a ccur ate and reli able. Howe ver, STMicroele ctronic s assu mes no r esponsib ilit y for th e consequences
of use of such information nor for any infrin gement of patent s or other rights of third parties which ma y result from it s use. No license is granted
by implication or otherwi se under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without not ice. This pub licat ion su persed es and repl aces all in format ion previou sly su pplie d. STMicroele c tronic s prod ucts a re no t
authorized for use as critical compone nts in life support devices or systems without express written approval of STMicroelectronics.
The ST logo is a registered trademark of STMicroelectronics.
All other names are the property of their respective owners