The M58WR128E is a 128 M bit (8Mbit x16) nonvolatile Flash memory that may be erased electrically at block level and programmed in-s ystem on
a Word-by-Word basis using a 1.65V to 2.2V V
supply for the circuitry and a 1.65V to 3.3V V
DD
DDQ
supply for the Input/Output pins. An opt ional 12V
V
power supply is provided to speed up custom-
PP
er programming.
The device features an asymmet rical block archi-
tecture. M58WR128E h as an array of 263 blocks,
and is divided into 4 Mbit banks. There are 31
banks each containing 8 main blocks of 32
KWords, and one parameter bank containing 8 parameter blocks of 4 KWords and 7 m ain blocks of
32 KWords. The Multiple Bank Architecture allows
Dual Operations, while programming or erasing in
one bank, Read operations are possible in other
banks. Only one bank at a time is allowed to be in
Program or Erase mode. It is possible to perform
burst reads that cross bank boundaries. The bank
architecture is summarized in Table 2, and the
memory maps are shown in Figure 4. The Parameter Blocks are located at the top of the memory
address space for the M58WR128ET, and at the
bottom for the M58WR128EB.
Each block can be erased separately. Erase can
be suspended, in order to perform program in any
other block, and then resum ed. Program can be
suspended to read data in any other block and
then resumed. Each block can be programmed
and erased over 100,000 cycles using the supply
voltage V
. There are two Enhanced Factory
DD
programming commands available to speed up
programming.
Program and Erase command s are written to the
Command Interface of the memory. An internal
Program/Erase Controller takes care of the timings necessary for program and erase operations.
The end of a program or erase operation can be
detected and any error conditions identified in the
Status Register. The command set required to
M58WR128ET, M58WR128EB
control the memory is consistent with JEDEC standards.
The device supports synchronous burst read and
asynchronous read from all blocks of the memory
array; at power-up the device is configured for
asynchronous read. In synchronous burst mode,
data is output on each clock cycle at frequencies
of up to 54MHz. The synchronous burst read operation can be suspended and resumed.
The device features an Aut oma tic Standby m ode.
When the bus is inactive during Asynchronous
Read operations, the device automatically switches to the Automatic Standby m ode. In this condition the power consumption is reduced to the
standby value I
The M58WR128E features an instant, individual
block locking scheme that allo ws any block to be
locked or unlocked with no latency, enabling instant code and data protection. All blocks have
three levels of protection. They can be locked and
locked-down individually preventing any accidental programming or erasure. There is an additional
hardware protection against program and erase.
When V
PP
≤ V
program or erase. All blocks are locked at PowerUp.
The device includes a Protection Register and a
Security Block to increase the protec tion of a s ys-
tem’s design. The Protection Register is divided
into two segments: a 64 bit segm ent containin g a
unique device number written by ST, and a 128 bit
segment One-Time-Programmable (OTP) by the
user. The user programmable segment can be
permanently protected. The Security Block, parameter block 0, can be permanently protected by
the user. Figure 5, shows the Security Block and
Protection Register Memory Map.
The memory is available in a VFBGA60
12.5x12mm pa ckage and is supplied with all the
bits erased (set to ’1’).
Ground Input/Output Supply
NCNot Connected Internally
DUDo Not Use
8/87
Figure 3. VFBGA Connections (Top view through packa ge)
M58WR128ET, M58WR128EB
87654321
A
BA4
C
D
E
F
G
DU
A13
A15
V
V
DDQ
SS
A8A11
A9A12
A10
A14WAITA16WP
DQ15
DQ14DQ11DQ10DQ9DQ0G
V
SS
A20
A21
DQ6
DQ13
V
DD
KRP
LW
DQ4DQ2EA0
V
PP
DQ12
A18
DQ1
A6
A5A17
A7A19
A22
A3
A2
A1
9
10
DU
H
J
DU
DQ7V
SSQ
DQ5V
DD
DQ3
V
DDQ
DQ8
V
SSQ
Table 2. Bank Architecture
NumberBank SizeParameter BlocksMain Blocks
Parameter Bank 4 Mbits8 blocks of 4 KWords7 blocks of 32 KWords
Bank 14 Mbits-8 blocks of 32 KWords
Bank 24 Mbits-8 blocks of 32 KWords
Bank 34 Mbits-8 blocks of 32 KWords
----
Bank 304 Mbits-8 blocks of 32 KWords
Bank 314 Mbits-8 blocks of 32 KWords
----
----
DU
AI07556
----
9/87
M58WR128ET, M58WR128EB
Figure 4. Me m ory Map
Bank 31
Bank 3
Bank 2
Bank 1
Parameter
Bank
M58WR128ET - Top Boot Block
Address lines A22-A0
000000h
007FFFh
038000h
03FFFFh
700000h
707FFFh
738000h
73FFFFh
740000h
747FFFh
778000h
77FFFFh
780000h
787FFFh
7B8000h
7BFFFFh
7C0000h
7C7FFFh
7F0000h
7F7FFFh
7F8000h
7F8FFFh
7FF000h
7FFFFFh
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
4 KWord
4 KWord
8 Main
Blocks
8 Main
Blocks
8 Main
Blocks
8 Main
Blocks
7 Main
Blocks
8 Parameter
Blocks
Parameter
Bank
Bank 1
Bank 2
Bank 3
Bank 31
M58WR128EB - Bottom Boot Block
Address lines A22-A0
000000h
000FFFh
007000h
007FFFh
008000h
00FFFFh
038000h
03FFFFh
040000h
047FFFh
078000h
07FFFFh
080000h
087FFFh
0B8000h
0BFFFFh
0C0000h
0C7FFFh
0F8000h
0FFFFFh
7C0000h
7C7FFFh
7F8000h
7FFFFFh
4 KWord
4KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
32 KWord
8 Parameter
Blocks
7 Main
Blocks
8 Main
Blocks
8 Main
Blocks
8 Main
Blocks
8 Main
Blocks
10/87
AI06994
SIGNAL DESCRIPTIONS
See Figure 2 Logic Diagram and Table 1,S ignal
Names, for a brief overview of the signals connected to this device.
Address Inputs (A0-A22). The Address Inputs
select the cells i n the memory array to a ccess during Bus Read operations. During Bus Write operations they control the commands sent to the
Command Interface of the internal state machine.
Data Input/Output (DQ0-DQ15). The Data I/O
outputs the data stored at the selected address
during a Bus Read operation or inputs a command
or the data to be programmed during a Bus Write
operation.
Chip Enable (E
). The Chip Enable input acti-
vates the memory control logic, input buffers, decoders and sense amplifiers. When Chip Enable is
and Reset is at VIH the device is in active
at V
IL
mode. When Chi p E nable i s at V
the memory is
IH
deselected, the outputs are high impedan ce and
the power consumption is reduced to the stand-by
level.
Output Enable (G
). The Output Enable controls
data outputs during the Bus Read operation of the
memory.
Write Enable (W
). The Write Enable controls the
Bus Write operation of the memory’s Command
Interface. The data and address inputs are latched
on the rising edge of Chip Enable or Write Enable
whichever occurs first.
Write Protect (WP
). Write Protect is an input
that gives an additional hardware protection for
each block. When Write Protect is at V
, the Loc k-
IL
Down is enabled and the prote ction status of t he
Locked-Down blocks cannot be changed. When
Write Protect is at V
, the Lock-Down is disabled
IH
and the Locked-Down blocks can be locked or unlocked. (refer to Table 13, Lock Status).
Reset (RP
ware reset of the memory. W hen Reset is at V
). The Reset input provides a hard-
IL
the memory is in reset mode: the outputs are high
impedance and the current consumption is reduced to the Reset Supply Current I
. Refer to
DD2
Table 18, DC Characteristics - Currents for the value of I
After Reset all blocks are in the Locked
DD2.
state and the Configuration Register is reset.
When Reset is at V
, the device is in normal op-
IH
eration. Exiting reset mode the device enters
asynchronous read mod e, b ut a negative transition of Chip Enable or Lat ch E nable is required to
ensure valid data outputs.
The Reset pin can be interfaced with 3V logic without any additional circuitry . It can be tied to V
RPH
(refer to Table 19, DC Characteristics).
Latch Enable (L
). Latch Enable l atches t he ad-
dress bits on its rising edge. The address
latch is transparent when Latch Enable i s a t
M58WR128ET, M58WR128EB
V
and it is inhibited whe n Latch Enable is at
IL
V
. Latch Enable can be kept Low (also at
IH
board level) when t he Latch Enable func tion
is not required o r sup ported.
Clo c k (K). The clock input synchronizes the
memory to the microcontroller during synchronous
read operations; the address is latched on a Clock
edge (rising or falling, according to the configuration settings) when Latch Enable is at V
don't care during asynchronous read and in write
operations.
Wait (WAIT). Wai t is an output signal used during
synchronous read to indicate whether the dat a on
the output bus are valid. This output is high impedance when Chip Enable is at V
It can be configured to be active during the wait cycle or one clock cycle in advance. The WAIT signal
is not gated by Output Enable.
Supply Voltage . VDD provides the power
V
DD
supply to the internal core of the memory device.
It is the main power supply for all operations
(Read, Program and Erase).
Supply Voltage. V
V
DDQ
supply to the I/O pins and enables all Outputs to
be powered independently from V
tied to V
Program Supply Vol t age . VPP is both a
V
PP
or can use a separate supply.
DD
control input and a power supply pin. The two
functions are selected by the voltage range applied to the pin.
is kept in a low voltage range (0V to V
If V
PP
V
is seen as a control input. In this case a volt-
PP
age lower than V
gives an absolute protection
PPLK
against program or erase, whi le V
ables these functions (see Tables 18 and 19, DC
Characteristics for the relevant values). V
sampled at the beginning of a program or erase; a
change in its value after the operation has started
does not have any effect and program or erase op-
,
erations continue.
is in the rang e of V
If V
PP
supply pin. In this condition V
til the Program/Erase algorithm is completed.
V
Ground. VSS ground is the reference for t he
SS
core supply. It must be connected to the system
ground.
V
SSQ
Ground. V
ground is the reference for
SSQ
the input/output circuitry driven by V
must be connected to V
SS
Note: Each device in a system should have
V
DD, VDDQ
and VPP decoupled wi th a 0.1 µF ce-
ramic capacitor close to the pin (high frequency, inherently low inductance capacitors
should be as close as possible to the pack-
or Reset is at VIL.
IH
provides the power
DDQ
. V
DD
PP
it acts as a power
PPH
must be stable un-
PP
. Clock is
IL
DDQ
> V
PP
DDQ
can be
DDQ
en-
PP1
is only
. V
SSQ
)
11/87
M58WR128ET, M58WR128EB
age). See Figure 9, AC Measurement Load Circuit. The PCB track widths should be sufficient
BUS OPERATIONS
There are six standard bus operations that control
the device. These are Bus Read , Bus Write, Address Latch, Output Disable, Standby and Reset.
See Table 3, Bus Operations, for a summary.
Typically glitches of less than 5ns on Chip Enable
or Write Enable are ignored by the memory and do
not affect Bus Write operations.
Bus Read. Bus Read operations are used to output the contents of the Memory Array, the Electronic Signature, the Status Register and the
Common Flash Interface. Both Chip Enable and
Output Enable must be at V
in order to perform a
IL
read operation. The Chip Enable input s hould be
used to enable the device. Out put Enable should
be used to gate data onto the output. The data
read depends on the previous command written to
the memory (see Command Interface section).
See Figures 10, 1 1, 12 and 13 Read AC Waveforms, and Tables 20 and 21 Read AC Characteristics, for details of when the output becomes
valid.
Bus Write. Bus Write operations write Commands to the memory or latch Input Data to be
programmed. A bus write operation is initiated
when Chip Enable and Write Enable are at V
Output Enable at V
. Commands, Input Data and
IH
IL
with
Addresses are latched on the rising edge of Write
Enable or Chip Enable, whichever occurs first. The
addresses can also be latched prior to the write
operation by toggling Latc h Enable. In this case
to carry the re quired VPP program and erase
currents.
the Latch Enable shoul d be t ied to V
during the
IH
bus write operation.
See Figures 16 and 17, Write AC Waveforms, and
Tables 22 and 23, Write AC Characteristics, for
details of the timing requirements.
Address Latch. Address latch operations input
valid addresses. Both Chip enable and Latch Enable must be at V
during address latch opera-
IL
tions. The addresses are latched on the rising
edge of Latch Enable.
Output Disa bl e . The outputs are high impedance when the Output Enable is at V
.
IH
Standby. Standby di sables most of the internal
circuitry allowing a substantial reduction of the current consumption. The memory is in stand-by
when Chip Enable and Reset are at V
. The pow-
IH
er consumption is reduced to the stand-by level
and the outputs are s et to high impedan ce, independently from the Output Enable or Write Enable
inputs. If Chip Enable switches to V
during a pro-
IH
gram or erase operation, the device enters Standby mode when finished.
Reset. During Reset mode the memory is deselected and the outputs are high impedance. The
memory is in Reset mode when Reset is at V
IL
The power consumption is reduced to the Standby
level, independently from the Chip Enable, Output
Enable or Write Enable inputs. If Reset is pulled to
V
during a Program or Erase, this operation is
SS
aborted and the memory content is no longer valid.
.
Table 3. Bus Operations
OperationEGWLRP
Bus Read
Bus Write
Address Latch
Output Disable
Standby
Reset XXXX
Note: 1. X = Don’t care.
2. L
can be tied to VIH if the valid address has been previously latched.
3. Depends on G
4. WAI T signal polarity is configu red using the S et Configuration Register comman d.
12/87
V
IL
V
IL
V
IL
V
IL
V
IH
.
V
IL
V
IH
X
V
IH
XXX
V
IH
V
IL
V
IH
V
IH
(2)
V
IL
(2)
V
IL
V
IL
X
V
IH
V
IH
V
IH
V
IH
V
IH
V
IL
(4)
WAIT
Hi-ZHi-Z
Hi-ZHi-Z
DQ15-DQ0
Data Output
Data Input
Data Output or Hi-Z
(3)
Hi-Z
COMMAND INTERFACE
All Bus Write operations t o the me mory are in terpreted by the Command Interface. Commands
consist of one or more sequential Bus Write operations. An internal Program/Erase Controller handles all timings and verifies the correct execution
of the Program and Erase commands. The Program/Erase Controller provides a S tatus Register
whose output may be read at any ti me to monitor
the progress or the result of the operation.
The Command Interface is reset to read mode
when power is first applied, when exiting from Reset or whenever V
is lower than V
DD
LKO
. Command sequences must be followed exactly. Any
invalid combination of commands will be ignored.
Refer to Table 4, Command Codes and Appendix
D, Tables 44, 45, 46 and 47, Command I nterface
States - Modify and Lock Tables, for a summary of
the Command Interface.
The Command Interface is split into two type s of
commands: Standard commands and Factory
Program commands. The following sections explain in detail how to perform each command.
M58WR128ET, M58WR128EB
Table 4. Command Codes
Hex CodeCommand
01hBlock Lock Confirm
03hSet Configuration Register Confirm
10hAlternative Program Setup
20hBlock Erase Setup
2FhBlock Lock-Down Confirm
30hEnhanced Factory Program Setup
35hDouble Word Program Setup
40hProgram Setup
50hClear Status Register
56hQuadruple Word Program Setup
60h
70hRead Status Register
75h
80hBank Erase Setup
Block Lock Setup, Block Unlock Setup,
Block Lock Down Setup and Set
Configuration Register Setup
Confirm, Bank Erase Confirm, Block
Unlock Confirm or Enhanced Factory
Program Confirm
13/87
M58WR128ET, M58WR128EB
COMMAND INTERFACE - STANDARD COMMANDS
The following commands are the basic commands
used to read, write to and configure the device.
Refer to Table 5, Standard Commands, in conjunction with the following text descriptions.
Read Array Command
The Read Array comm and returns the addressed
bank to Read Array mode. One Bus Write cycle is
required to issue the Read Array command and return the addressed bank to Read Array mode.
Subsequent read operations will read the addressed location and output t he data. A Read Array command can be issued in one bank while
programming or erasing in another bank. However
if a Read Array command is issued to a bank currently executing a Program or Erase operation the
command will be e xecuted but t he output da ta is
not guaranteed.
Read Status Register Command
The Status Register indi cates when a Program or
Erase operation is complete and the success or
failure of operation itself. Issue a Read Status
Register command to read the Status Register
content. The Read Status Register com man d c an
be issued at any time, even during Program or
Erase operations.
The following read operations output the content
of the Status Register of the addressed bank. The
Status Register is latched on the falling edge of E
or G signals, and can be read until E or G returns
. Either E or G must be toggled to update the
to V
IH
latched data. See Table 8 for the description of the
Status Register Bits. This mode supports asynchronous or single synchronous reads only.
Read Electronic Signature Command
The Read Electronic Signature command reads
the Manufacturer and Device Codes, the Block
Locking Status, the Protection Register, and the
Configuration Register.
The Read Electronic Signature command consists
of one write cycle to an address within one o f the
banks. A subsequent Read ope ra tion in the same
bank will output the Manufacturer Code, the Device Code, the protection Status of the blocks in
the targeted bank, the Protection Register, or the
Configuration Register (see Table 6).
If a Read Electronic Signature command is issued
in a bank that is executing a Program or Erase operation the bank will go into Read Electronic Signature mode, subsequent Bus Read cycles will
output the Electronic Sign ature data an d the Pr ogram/Erase controller will continue t o program or
erase in the background. This mode supports
asynchronous or single synchronous reads only, it
does not support page mode or synchronous burst
reads.
Read CFI Query Command
The Read CFI Query command is used to read
data from the Common Flash Interface (CFI). The
Read CFI Query Command consists of one Bus
Write cycle, to an address within one of the banks.
Once the command is issued subsequent Bus
Read operations in the s ame bank read from the
Common Flash Interface.
If a Read CFI Query command is issued in a bank
that is executing a Program or Erase operation the
bank will go into Read CFI Query mo de, s ubsequent Bus Read cycles will output the CFI data
and the Program/Erase con troller will continue to
Program or Erase in the background. This m ode
supports asynchronous or single synchronous
reads only, it does not support page mode or synchronous burst reads.
The status of the other banks is not affected by the
command (see Table 11). After issuing a Read
CFI Query command, a Read Array command
should be issued to t he address ed bank to return
the bank to Read Array mode.
See Appendix B, Common Flash Interface, Tables
34, 35, 36, 37, 38, 39, 40, 41, 42 and 43 for details
on the information contained in the Common Flash
Interface memory area.
Clear Status Register Command
The Clear Status Register comm and c an b e us ed
to reset (set to ‘0’) error bits SR1, SR3, SR4 and
SR5 in the Status Register. One bus write cycle is
required to issue the Clear Status Register command. The Clear Status Register command does
not change the Read mode of the bank.
The error bits in the Status Regi ster do not automatically return to ‘0’ when a new command is issued. The error bits i n the Stat us Register should
be cleared before attempting a new Program or
Erase command.
Block Erase Command
The Block Erase com mand can be used to erase
a block. It sets all the bits within the selected block
to ’1’. All previous d ata in th e block is lost. If th e
block is protected then the Erase operation will
abort, the data in the block will not be changed and
the Status Register will output the error. The Block
Erase command can be issued at any moment, regardless of whether the block has been programmed or not.
Two Bus Write cycles are required to issue the
command.
■ The first bus cycle sets up the Erase command.
■ The second latches the block address in the
internal state machine and starts the Program/
Erase Controller.
14/87
M58WR128ET, M58WR128EB
If the second bus cycle is not Write Erase Confirm
(D0h), Status Register bits SR 4 and SR5 are set
and the command aborts. Erase aborts if Reset
turns to V
. As data integrity cannot be guaran-
IL
teed when the Erase operation is aborted, the
block must be erased again.
Once the command is issued the device outputs
the Status Register data when any address within
the bank is read. At the end o f the operation the
bank will remain in Read Status Register mode until a Read A rray, Read CFI Query o r Read Electronic Signature command is issued.
During Erase operations the bank containing the
block being erased will only accept the Read Array, Read Status Register, Read Electronic Signature, Read CFI Query and the Program/Erase
Suspend command, all other commands will be ignored. Refer to Dual Operations section for detailed information about simultaneous operations
allowed in banks not being e rased. Typical Erase
times are given in Table 14, Program, Erase
Times and Program/Erase Endurance Cycles.
See Appendix C, Figure 26, Block Erase Flowchart and Pseudo Code, for a suggested flowchart
for using the Block Erase command.
Program Command
The memory array can be programmed word-byword. Only one Word in one bank can be programmed at any one time. Two bus write cycles
are required to issue the Program Command.
■ The first bus cycle sets up the Program
command.
■ The second latches the Address and the Data to
be written and starts the Program/Erase
Controller.
After programming has started, read operations in
the bank being programmed output the Status
Register content.
During Program operations the bank being programmed will only accept the Read Array, Read
Status Register, Read Electronic Signature, Read
CFI Query and the Program/Erase Suspend command. Refer to Dual Operations section for detailed information about simultaneous operations
allowed in banks not bei ng programmed. Typical
Program times are given in Table 14, Program,
Erase Times and Program/Erase Endurance Cycles .
Programming aborts if Reset goe s to V
. As data
IL
integrity cannot be guaranteed when the program
operation is aborted, the memory location must be
reprogrammed.
See Appendix C, Figure 22, Program Flowchart
and Pseudo Code, for the f lowchart for using the
Program command.
Program/Erase Suspend Command
The Program/Erase Suspend command is used to
pause a Program or Block Erase operation. A
Bank Erase operation cannot be suspended.
One bus write cycle is required to issue t he Program/Erase command. O nce the Program/Erase
Controller has paused bits SR7, SR6 and/ or SR2
of the Statu s Regist er will be s et to ‘1’. Th e command can be addressed to any bank.
During Program/Erase Suspend the Command Interface will accept the Program/Erase Resume,
Read Array (cannot read the erase-suspended
block or the program-suspended Word), Read
Status Register, Read Electronic Signature and
Read CFI Query commands. Additionally, if the
suspend operation was E rase then the Clear status Register, Program, Block Lock, Block LockDown or Block Unlock commands will also be accepted. The block being erased may be protected
by issuing the Block Lock, Block Lock-Down or
Protection Register Program commands. Only the
blocks not being erased may be read or programmed correctly. When the Program/Erase Resume command is issued the operation will
complete. Refer to the Dual Operations section for
detailed information about simultaneous operations allowed during Program/Erase Suspend.
During a Program/Erase Suspend, the device can
be placed in standby mode by taking Chip Enable
. Program/Erase is aborted if Reset turns to
to V
IH
V
.
IL
See Appendix C, Figure 25 , Program Suspend &
Resume Flowchart and Pseudo Code, and Figure
27, Erase Suspend & Resume Flowchart and
Pseudo Code for flowcharts for using the Program/
Erase Suspend command.
Program/Erase Resu me Command
The Program/Erase Resume command can be
used to restart the Program/Erase Controller after
a Program/Erase Suspen d command has paused
it. One Bus Write cycle is required to issue the
command. The command can be written to any
address.
The Program/Erase R esume command d oes not
change the read m ode of the banks. If the s uspended bank was in Read Status Register, Read
Electronic signature or Read CFI Query mode the
bank remains in that m ode and outputs the corresponding data. If the bank was in Read Array
mode subsequent read operations will output invalid data.
If a Program command is issued d uring a Block
Erase Suspend, then the erase cannot be resumed until the programming operation has completed. It is possible to accumulate suspend
operations. For example: su spend an erase operation, start a programming operation, suspend the
15/87
M58WR128ET, M58WR128EB
programming operation then read the array. See
Appendix C, Figure 25, Program Su spend & Resume Flowchart and Pseudo Code, and Figure 27,
Erase Suspend & Resume Flowchart and Pseudo
Code for flowcharts for using the Program/Erase
Resume command.
Protection Regi ster Program Com m a nd
The Protection Register Program command is
used to Program the 128 bit user O ne-Time-Programmable (OTP) segment of the Protection Register and the Protection Register Lock. The
segment is programmed 16 bits at a time. When
shipped all bits in the segment are set to ‘1’. The
user can only program the bits to ‘0’.
Two write cycles are required to issue the Protection Register Program command.
■ The first bus cycle sets up the Protection
Register Program command.
■ The second latches the Address and the Data to
be written to the Protection Register and starts
the Program/Erase Controller.
Read operations output the Status Register content after the programming has started.
The segment can be protected by programming bit
1 of the Protection Lock Register. Bit 1 of the P rotection Lock Register also protects bit 2 of the Protection Lock Register. Programming bit 2 of the
Protection Lock Register will result in a permanent
protection of Parameter Block #0 (see Figure 5,
Security Block and Protection Register Memory
Map). Attempting to program a previously protected Protection Register will result in a Status Register error. The protection of the Protection
Register and/or the Security Block is not reversible.
The Protection Register Program cannot be suspended. See Appendix C, Figure 29, Protection
Register Program Flowchart and Pseudo Code,
for a flowchart for using the Protection Register
Program command.
Set Conf ig uration Regi s te r Com m and
The Set Configuration Register command is used
to write a new value to the Burst Configuration
Control Register which defines the burst length,
type, X latency, Synchronous/Asynchronous Read
mode and the valid Clock edge configuration.
Two Bus Writ e cycles a re required to i ssue the Set
Configuration Register command.
■ The first cycle writes the setup command and
the address corresponding to the Configuration
Register content.
■ The second cycle writes the Configuration
Register data and the confirm command.
The Read mode of the banks is not modified when
the Set Configuration Register command is issued.
The value for the Configuration Register is always
presented on A0-A15. CR0 is on A0, CR1 on A1,
etc.; the other address bits are ignored.
Block Lock Command
The Block Lock command is used to lock a block
and prevent Program or Erase operations from
changing the data in it. All blocks are locked at
power-up or reset.
Two Bus Write cycles are required to issue the
Block Lock command.
■ The first bus cycle sets up the Block Lock
command.
■ The second Bus Write cycle latc hes the block
address.
The lock status can be monitored for each block
using the Read Electronic Signature command.
Table. 13 shows the Lock Status after issuing a
Block Lock command.
The Block Lock bits are vo latile, once set they remain set until a hardware reset or power-down/
power-up. They are cleared by a Block Unlock
command. Refer to the section, Block Locking, for
a detailed explanation. See Appendix C, Figure
28, Locking Operations Flowchart and Pseudo
Code, for a flowchart for using the Lock command.
Block Unlock Command
The Block Unlock command is used to unlock a
block, allowing the block to be programmed or
erased. Two Bus Write cycles are requ ired to issue the Block Unlock command.
■ The first bus cycle sets up the Block Unlock
command.
■ The second Bus Write cycle latc hes the block
address.
The lock status can be monitored for each block
using the Read Electronic Signature command.
Table 13 shows the protection status after issuing
a Block Unlock command. Refer to the section,
Block Locking, for a detailed expla nation and A ppendix C, Figure 28, Locking Operations Flowchart and Pseudo Code, f or a flowchart for using
the Unlock command.
Block Lock-Down Command
A locked or unlocked block can be locked-down by
issuing the Block Lock-Down command. A lockeddown block cannot be programm ed or erased, or
have its protection status changed when WP
low, V
. When WP is high, V
IL
the Lock-Down
IH,
is
function is disabled and the locked blocks can be
individually unlocked by the Block Unlock command.
Two Bus Write cycles are required to issue the
Block Lock-Down command.
■ The first bus cycle sets up the Block Lock
command.
16/87
M58WR128ET, M58WR128EB
■ The second Bus Write cycle latc hes the blo ck
address.
The lock status can be monitored for each block
using the Read Electronic Signature command.
Locked-Down blocks revert to the locked (and not
locked-down) state when the device is reset on
power-down. Table. 13 shows the Lo ck Statu s after issuing a Block Lock-Down command. Refer to
the section, Block Locking, for a detailed explanation and Appendix C, Fi gure 28, Locking Operations Flowchart and Pseudo Code, for a flowchart
for using the Lock-Down command.
Table 5. Standard Commands
Bus Operations
Commands
Cycles
Read Array1+WriteBKAFFh
Read Status Regist er1+WriteBKA70hRead
Read Electronic Signature1+WriteBKA90h Read
Read CFI Query1+WriteBKA98h Read
Clear Status Register1WriteBKA50h
Block Erase2Write
Program2Write
Program/E rase Su s pen d1Wri teXB0h
Program/Erase Resume1WriteXD0h
Protection Register Program2WritePRAC0hWrite
Set Configuration Register2WriteCRD60hWrite
Note: 1. X = Don’t Care, WA=Word Address in targeted bank, RD=Read Data, SRD=Status Register Data, ESD=Electronic Signature Data,
QD=Query Dat a, BA=Bl ock Address, BK A= Ban k Address , PD= Program Data, PR A=Prot ectio n Regist er Addre ss, PRD =Prote ction
Register Dat a, CRD=Configurat i on Register Data.
2. Mus t be same bank as in the first cycle. The signat ure address es are listed i n T able 6.
Figure 5. Security Block and Protection Register Memory Map
18/87
SECURITY BLOCK
Parameter Block # 0
8Ch
85h
84h
81h
80h
PROTECTION REGISTER
User Programmable OTP
Unique device number
Protection Register Lock210
AI06181
COMMAND INTERFACE - FACTORY PROGRAM COMMANDS
The Factory Program commands are used to
speed up programming. They require V
V
except for the Bank Eras e command which
PPH
also operates at V
= VDD. Refer to Table 7, Fac-
PP
to be at
PP
tory Program Commands, in conjunction with the
following text descriptions.
The use of the Factory Program commands require certain operating conditions:
■ V
must be set t o V
PP
(except for Bank Erase
PPH
command)
■ V
must be within operating range
DD
■ Ambient temperature, T
■ The targeted block must be unlocked
must be 25°C ± 5°C
A
Refer to Table 7, Factory Program Comm ands , in
conjunction with the following text descriptions.
Bank Erase Command
The Bank Erase command can be used to erase a
bank. It sets all the bits within the selected bank to
’1’. All previous data in th e ban k is lo st. Th e B ank
Erase command will igno re any protected blocks
within the bank. If all blocks in the ba nk are protected then the Bank Erase operation will abort
and the data in the bank wi ll not b e changed. The
Status Register will not output any error.
Bank Erase operations can be p erformed at both
V
PP
= V
and VPP = VDD.
PPH
Two Bus Write cycles are required to issue the
command.
■ The first bus cycle sets up the Bank Erase
command.
■ The second latches the bank address in the
internal state machine and starts the Program/
Erase Controller.
If the second bus cycle is not Write Bank Erase
Confirm (D0h), Status Register bits SR4 and S R5
are set and the command aborts. Erase aborts if
Reset turns to V
. As data integrity cannot be
IL
guaranteed when the Erase operation is aborted,
the bank must be erased again.
Once the command is issued the device outputs
the Status Register data when any address within
the bank is read. At the end o f the operation the
bank will remain in Read Status Register mode until a Read Array, Read CFI Query or Read Electronic Signature command is issued.
During Bank Erase operations the bank being
erased will only accept the Read Array, Read Status Register, Read Electronic Signature and Read
CFI Query command, all other commands will be
ignored.
For optimum performance, Bank Erase commands should be limited to a maximum of 100 Program/Erase cycles per Block. After 100 Program/
properly but some degradation in performance
may occur.
Dual operations are not supported during Bank
Erase operations and the command cannot be
suspended.
Typical Erase times are given in Table 14, Program, Erase Times and Program/Erase Endurance Cycles.
Double Word Program Command
The Double Word Program command improves
the programming throughput by writing a page of
two adjacent words in parallel. The two words
must differ only for the address A0.
Three bus write cycles are neces sary to issue the
Double Word Program command.
■ The first bus cycle sets up the Double Word
Program Command.
■ The second bus cycle latches the Address and
the Data of the first word to be written.
■ The third bus cycle latches the Address and the
Data of the second word to be written and starts
the Program/Erase Controller.
Read operations in the bank bei ng programmed
output the Status Register content after the programming has started.
During Double Word Program operations the bank
being programmed will only accept the Read Array, Read Status Register, Read Electronic Signature and Read CFI Query command, all other
commands will be ignored. Dual operations are
not supported during Double Word Program operations and the command cannot be suspended.
Typical Program times are given in Table 14, Program, Erase Times and Program/Erase Endurance Cycles.
Programming aborts if Reset goe s to V
integrity cannot be guaranteed when the program
operation is aborted, the memory locations m ust
be reprogrammed.
See Appendix C, Figure 23, Double Word Program Flowchart and Pseudo Code, for the flowchart for using the Double Word Program
command.
Quadruple Word Program Command
The Quadruple Word Program command improves the programming throughput by writing a
page of four adjacent words in parallel. The four
words must differ only for the addresses A0 and
A1.
Five bus write cycles are necessary to issue the
Quadruple Word Program command.
■ The first bus cycle sets up the Double Word
Program Command.
Erase cycles the internal algorithm will still operate
M58WR128ET, M58WR128EB
. As data
IL
19/87
M58WR128ET, M58WR128EB
■ The second bus cycle latches the Address and
the Data of the first word to be written.
■ The third bus cycle latches the Address and the
Data of the second word to be written.
■ The fourth bus cycle latches the Address and
the Data of the third word to be written.
■ The fifth bus cycl e latches the Address and the
Data of the fourth word to be written and starts
the Program/Erase Controller.
Read operations to the bank being programmed
output the Status Register content after the programming has started.
Programming aborts if Reset goe s to V
. As data
IL
integrity cannot be guaranteed when the program
operation is aborted, the memory locations mu st
be reprogrammed.
During Quadruple Word Program operations the
bank being programmed will only accept the Read
Array, Read Status Register, Read Electronic Signature and Read CFI Query command, all other
commands will be ignored.
Dual operations are not supported during Quadruple Word Program operations and the command
cannot be suspended . Typical Program times are
given in Table 14, Program, Erase Times and Program/Erase Endurance Cycles.
See Appendix C, Figure 24, Quadruple Word Program Flowchart and Pseudo Code, for the flowchart for using the Quadruple Word Program
command.
Enhanced Factory Program Command
The Enhanced Factory Program command can be
used to program large streams of dat a within any
one block. It greatly reduces the total programming time when a large number of Words are written to a block at any one time.
Dual operations are not s upported during the Enhanced Factory Program operation an d the command cannot be suspended.
For optimum performance the Enhanc ed Factory
Program commands should be limited to a maximum of 10 program/erase cycles per block. If this
limit is exceeded the in ternal algorithm will cont inue to work properly but some degradation in performance is possible. Typical Prog ram times are
given in Table 14.
The Enhanced Factory Program command has
four phases: the Setup Phase, the Program Phase
to program the data to the memory, the Verify
Phase to check that the data has been correctly
programmed and reprogram if necessary a nd the
Exit Phase. Refer to Table 7, Enhanced Factory
Program Command and Figure 30, Enhanced
Factory Program Flowchart.
Setup Phase. The Enhanced Factory Program
command requires two Bus Write operations to initiate the command.
■ The first bus cycle sets up the Enhanced
Factory Program command.
■ The second bus cycle confirms the command.
The Status Register P/E.C. Bit SR7 should be
read to check that the P/E.C. is ready. After the
confirm command is issued, read operations
output the Status Register data. The read Status
Register command must not be issued as it will be
interpreted as data to program.
Program Phase. The Program Phase requires
n+1 cycles, wher e n is the n umber of Words (refer
to Table 7, Enhanced Factory Program Command
and Figure 30, Enhanced Factory Program Flowchar t).
Three successive steps are required to issue and
execute the Program Phase of the command.
1. Us e one Bus Write operation to latch the Start
Address and the first Word to be programmed.
The Status Register Bank Write Status bit SR0
should be read to check that the P/E.C. is ready
for the next Word.
2. Each subsequent Word to be programmed is
latched with a new Bus Write operation. The
address can either remain the Start Address, in
which case the P/E.C. increments the address
location or the address can be incremented in
which case the P/E.C. jumps to the new
address. If any address that is not in the same
block as the Start Address is given with data
FFFFh, the Program Phase terminates and the
Verify Phase begins. The Status Register bit
SR0 should be read between each Bus Write
cycle to check that the P/E.C. is ready for the
next Word.
3. Finally, after all Words have been programmed,
write one Bus Write operation with data FFFF h
to any address outside the bl ock contain ing the
Start Address, to terminate the programming
phase. If the data is not FFFFh, the command is
ignored.
The memory is now set to enter the Verify Phase.
Verify Phase. Th e Verify Phase is s imilar to the
Program Phase in that all Words must be resent to
the memory for them to be che cked against the
programmed data. The Program/Erase Controller
checks the stream of da ta with the data that was
programmed in the Program Phase and reprograms the memory location if necessary.
Three successive steps are required to execute
the Verify Phase of the command.
1. Us e one Bus Write operation to latch the Start
Address and the first Word, to be verified. The
Status Register bit SR0 should be read to check
20/87
M58WR128ET, M58WR128EB
that the Program/Erase Controller is ready for
the next Word.
2. Each subsequent Word to be verified is latched
with a new Bus Write operation. The Words
must be written in the same order as in the
Program Phase. The address can remain the
Start Address or be incremented. If any address
that is not in the same block as the Start
Address is given with data FFFFh, the Verify
Phase terminates. Status Register bit SR0
should be read to check that the P/E.C. is ready
for the next Word.
3. Finally, after all Words have been verified, write
one Bus Write operation with data FFFFh to any
address outside the block containing the Start
Address, to terminate the Verify Phase.
If the Verify Phase is successfully completed the
memory remains in Read Status Register mode. If
the Program/Erase Controller fails to reprogram a
given location, the error will be signaled in the Status Register.
Exit Phase. Status Register P/E.C. bit SR7 set to
‘1’ indicates that the device has ret urned to Read
mode. A full Status Register check should be done
to ensure that the block has been successfully programmed. See the s ect ion on the Status Register
for more details.
Quadruple Enhanced Factory Program
Command
The Quadruple Enhanced Factory Program command can be used to program one or more pages
of four adjacent words in parallel. The four words
must differ only for the addresses A0 and A1.
Dual operations are not supported during Quadruple Enhanced Factory Program operations and
the command cannot be suspended.
It has four phases: the Setup Phase, the Load
Phase where the data is loaded into the buffer, the
combined Program and Verify Phase where the
loaded data is programmed to the memory and
then automatically checked and reprogrammed if
necessary and the Exit Phase. Unlike the Enhanced Factory Program it is not necess ary t o resubmit the data for the Verify Phase. The Load
Phase and the Program and Verify Phas e can be
repeated to program any number of pag es within
the block.
Setup Phase. The Q uadruple Enhan ced Factory
Program command requires one Bus Write operation to initiate the load phase. After the setup
command is issued, read operations output the
Status Register data. The Read Status Register
command must not be issued as it will be
interpreted as data to program.
Load Phase. The Load Phase requires 4 cycles
to load the data (refer to Table 7, Factory Program
Commands and Figure 31, Quadruple Enhanced
Factory Program Flowchart). Once the first Word
of each Page is written it is impossible to exit the
Load phase until all four Words have been written.
Two successive steps are required to issue and
execute the Load Phase of the Quadruple Enhanced Factory Program comm and.
1. Us e one Bus Write operation to latch the Start
Address and the first Word of the first Page to
be programmed. For subsequent Pages the first
Word address can remain the Start Address (in
which case the next Page is programmed) or
can be any address in the same block. If any
address with data FFFFh is given that is not in
the same block as the Start Address, the device
enters the Exit Phase. For the first Load Phase
Status Register bit SR7 should be read after the
first Word has been issued to check that the
command has been accepted (bit 7 set to ‘0’).
This check is not required for subsequent Load
Phases.
2. Each subsequent Word to be programmed is
latched with a new Bus Write operation. The
address is only checked for the first Word of
each Page as the order of the Words to be
programmed is fixed.
The memory is now set to enter the Program and
Verify Phas e .
Program and Verify Phase. In the Program and
Verify Phase the four Words that were loaded in
the Load Phase are programmed in the memory
array and then verified by the Program/Erase Controller. If any errors are found the Program/Erase
Controller reprograms the location. During this
phase the Status Register shows that the Program/Erase Controller is busy, Status Register bit
SR7 set to ‘0’, and that the device is not waiting for
new data, Status Register bit SR0 set to ‘1’. When
Status Register bit SR0 i s set to ‘0’ the Program
and Verify phase has terminated.
Once the Verify Phase has successfully completed subsequent pages in the same block can be
loaded and programmed. The device returns to
the beginning of the Load Phase by issuing one
Bus Write operation to latch the A ddress and the
first of the four new Words to be programmed.
Exit Phase . Finally, after all the pages have been
programmed, write one Bus Write operation with
data FFFFh to any address outside the block containing the Start Address, to terminate the Load
and Program and Verify Phases.
A full Status Register check should be done to ensure that the block has been sucessfully programmed. See the s ect ion on the Status Register
for more details.
If the Program and Verify Phase has successfully
completed the memory returns to Read mode. If
the P/E.C. fails to program and reprogram a given
21/87
M58WR128ET, M58WR128EB
location, the error will be signaled in the Status
Register.
Table 7. Factory Program Commands
CommandPh ase
Cycles
Bank Erase2BKA80hBKAD0h
1st2nd3rdFinal -1Final
AddDataAddDataAddDataAddDataAddData
Bus Write Operations
Double Word Program
Quadruple Word Program
Enhanced
Factory
Program
(6)
(4)
Setup,
Program
Verify, Exitn+1
Setup,
first Load
(5)
3
5
2+n
+1
5
BKA or
(8)
WA1
BKA or
(8)
WA1
BKA or
(8)
WA1
(2)
WA1
BKA or
(8)
WA1
35hWA1PD1 WA2PD2
56hWA1PD1WA2PD2WA3PD3WA4PD4
30h
PD1
75h
BA or
WA1
WA2
WA1
(9)
(3)
(2)
WA1
WA3
WA2
(2)
(3)
(7)
PD1
PD3
PD2
D0h
PD2
PD1
WAn
WAn
WA3
(3)
(3)
(7)
PAn
PAn
PD3
NOT
WA1
NOT
WA1
WA4
First
Quadruple
Enhanced
Factory
Program
(5,6)
Program &
Verify
Subsequent
Loads
Subsequent
Program &
Automatic
WA1i
4
(2)
PD1i
WA2i
(7)
PD2i
WA3i
(7)
PD3i
Automatic
WA4i
(7)
Verify
NOT
Exit1
Note: 1. WA=Wo rd Address in t argeted bank, BKA= B an k Address, PD=Pr o gram Data, BA=Block Addres s.
2. WA1 is the Start Address. NOT WA1 is any address that is not in the same block as WA1.
3. Address can rem ai n Starting Address WA1 or be i ncremented.
4. Word Addresses 1 and 2 must be co nsecutive Addresses di f fering only for A0.
5. Word Addresses 1, 2,3 and 4 must be consecut i ve Addresses differing only for A0 and A1.
6. A B us R ead must b e done b etwe en each Wri te c ycle wh ere the dat a is prog ra mmed or veri fied t o rea d the St atus Reg ist er an d
check that the memory is ready to accept the next data. n = number of Wo rds, i = number of Pages to be programmed .
7. Addre ss i s only c heck ed for the fir st Wo rd o f each Page a s the o rde r to pro gr am the Wo rd s in ea ch pag e is fi xed so subs equ ent
Words in each Page can be written to any address.
8. Any address wit hi n the bank ca n be used.
9. Any address withi n the block c an be used.
WA1
FFFFh
(2)
(2)
(2)
(7)
FFFFh
FFFFh
PD4
PD4i
22/87
STATUS REGISTER
The Status Register provides information on the
current or previous Program or Erase operations.
Issue a Read Status Register command to read
the contents of the Status Register, refer to Read
Status Register Command section for more details. To output the contents, the Status Register is
latched and updated on the falling edge of the
Chip Enable or Output Enable signal s and c an be
read until Chip Enable or Output Enable returns to
V
. The Status Register can only be read using
IH
single asynchronous or single synchronous reads.
Bus Read operations from any address within the
bank, always read the Status Register during Program and Erase operations.
The various bits convey information about the status and any errors of the operation. Bits SR7, SR6,
SR2 and SR0 give information on the status of the
device and are set and reset by the device. Bits
SR5, SR4, SR3 and S R1 give information on errors, they are set by the device but must be reset
by issuing a Clear Status Register command or a
hardware reset. If an error bit is set to ‘1’ the Status
Register should be reset before issuing another
command. SR7 to SR1 ref er to the status of the
device while SR0 refers to the status of the addressed bank.
The bits in the Status Register are summarized in
Table 8, Status Register Bits. Refer to Table 8 in
conjunction with the following text descriptions.
Program/Erase Controller Status Bit (SR7). The
Program/Erase Controller Status bit indicates
whether the Program/Erase Controller is act ive or
inactive in any bank. When the Program/Erase
Controller Status bit is Low (set to ‘0’), the Program/Erase Controller is active; when the bit is
High (set to ‘1’), the Program/Erase Controller is
inactive, and the device is ready to process a new
command.
The Program/Erase Controller Status is Low immediately after a Program/Erase Suspend command is issued until the Program/Erase Controller
pauses. After the Program/Erase Controller pauses the bit is High.
During Program, Erase, o perations the Program/
Erase Controller Status bit can be polled to find the
end of the operation. Other bits in the Status Register should not be tested until the Program/Erase
Controller completes the operation and the bit is
High.
After the Program/Erase Cont roller completes its
operation the Erase Status, Prog ram Status, V
PP
Status and Block Lock Status bits should be tested
for errors.
Erase Suspend Status Bit (SR6). The Erase
Suspend Status bit indicates that an Erase operation has been suspended or is going to be sus-
M58WR128ET, M58WR128EB
pended in the addressed block. When the Eras e
Suspend Status bit is High (set to ‘1’), a Program/
Erase Suspend command has been issued and
the memory is waiting for a Program/Erase Resume command.
The Erase Suspend Status should only be considered valid when the Program/Erase Controller Status bit is High (Program/Erase Controller inactive).
SR7 is set within the Erase Suspend Latency time
of the Program/Erase Suspend command being
issued therefore the memory may still complete
the operation rather than entering the Suspend
mode.
When a Program/Erase Re sume command is issued the Erase Suspend Status bit returns Low.
Erase Status Bit (SR5). The Erase Status bit
can be used to identify if the memory has failed to
verify that the block or bank has erased correctly.
When the Erase Status b it is High (set to ‘1’), the
Program/Erase Controller has applied the maximum number of pulses to the block or bank and
still failed to verify that it has erased correctly. The
Erase Status bit should be read once the Program/
Erase Controller Status bit is High (Program/Erase
Controller inactive).
Once set High, the Erase Status bit can only be reset Low by a Clear Status Register command or a
hardware reset. If set High it should be reset before a new Program or Erase command is issued,
otherwise the new command will appear to fail.
Program Status Bit (SR4). The Program Status
bit is used to identify a Program failure or an attempt to program a '1' to an already program med
bit when V
PP
= V
When the Program Status bit is High (set to ‘1’),
the Program/Erase Controller has applied the
maximum number of pulses to the byte an d still
failed to verify that it has programmed correctly.
After an attempt to program a '1' to an already programmed bit, the Program Status bit SR4 goes
High (set to '1') only if V
ent from V
PPH
the attempt is not shown.
The Program St atus bit should be read once t he
Program/Erase Controller Status bit is High (Program/Erase Controller inactive).
Once set High, the Program Status bit can only be
reset Low by a Clear Status Register command or
a hardware reset. If set High it should be reset before a new command is issued, otherwise the new
command will appear to fail.
Status Bit (SR3). The VPP Status bit can be
V
PP
used to identify an invalid v oltage on the V
during Program and Erase operations. The V
pin is only sampled at the beginning of a Program
.
PPH
PP
= V
. If VPP is differ-
PPH
, SR4 remains L ow (set to '0') and
pin
PP
PP
23/87
M58WR128ET, M58WR128EB
or Erase operation. Indeterminate results can occur if V
When the V
age on the V
when the V
becomes invalid during an operation.
PP
Status bit is Low (set to ‘0’), the volt-
PP
pin was sampled at a valid voltage;
PP
Status bit is High (set to ‘1’), the V
PP
PP
pin has a voltage that is below the VPP Lockout
Voltage, V
, the memory is protected and Pro-
PPLK
gram and Erase operations cannot be performed.
Once set High, the V
Status bit can only be reset
PP
Low by a Clear Status Register command or a
hardware reset. If set High it should be reset before a new Program or Erase command is issued,
otherwise the new command will appear to fail.
Program Suspend Status Bit (SR2). The Program Suspend Status bit indicates that a Program
operation has been suspended in the addressed
block. When the Program Suspend Status bit is
High (set to ‘1’), a Program/Erase Suspend command has been issued and the memory is waiting
for a Program/Erase Resume command. The Program Suspend Status should only be considered
valid when the Program/Erase Controller Status
bit is High (Program/Erase Controller inactive).
SR2 is set within t he Program Suspend Latency
time of the Program/Erase Suspend command being issued therefore the memory may still complete the operation rather than entering the
Suspend mode.
When a Program/Erase Re sume command is issued the Program Suspend Status bit returns Low.
Block Protection Status Bit (SR1). The Block
Protection Status bit can be used to identify if a
Program or Block Erase operation has tried to
modify the contents of a locked block.
When the Block Protection Status bit is High (set
to ‘1’), a Program or Erase operation has been attempted on a locked block.
Once set High, the Block Protection Status bit can
only be reset Low by a Clear Status Register command or a hardware reset. If set High it should be
reset before a new command is issued, otherwise
the new command will appear to fail.
Bank Wri te/Multiple Wor d Program Sta tus Bit
(SR0). The Bank Write Status bit indicates wheth-
er the addressed bank is programming or erasing.
In Enhanced Factory Program mode th e Multiple
Word Program bit shows if a Word has finished
programming or verifying depending on the phase.
The Bank Write Status bit should only be considered valid when the Pro gr a m/Erase Controller Status SR7 is Low (set to ‘0’).
When both the Pro gra m/Erase Controller Status bit
and the Bank Write Status bit are Low (set to ‘0’),
the addressed bank is executing a Program or
Erase operation. When the Program/Erase Controller Status bit is Low (set to ‘0’) and the Bank
Write Status bit is High (set to ‘1’), a Program or
Erase operation is being executed in a bank other
than the one being addressed.
In Enhanced Factory Program mode if Multiple
Word Program Status bit is Low (set to ‘0’), the device is ready for the next Word, if the Multiple Word
Program Status bit is High (set to ‘1’) the device is
not ready for the next Word.
Note: Refer to Appendix C, Flowcharts and Ps eudo Codes, for using the Status Register.
24/87
M58WR128ET, M58WR128EB
Table 8. Status Register Bits
BitNameT ypeLogic Level Definition
SR7 P/E.C. Status Status
SR6 Erase Suspend Status Status
’1’Ready
’0’Busy
’1’Erase Suspended
’0’Erase In progress or Completed
’1’Program Suspended
’0’Program In Progress or Completed
’1’Program/Erase on protected Block, Abort
’0’No operation to protected blocks
SR7 = ‘0’ Program or erase operation in addressed bank
’0’
SR7 = ‘1’ No Program or erase operation in the device
'1'
SR7 = ‘0’
Program or erase operation in a bank other than
the addressed bank
SR7 = ‘1’ Not Allowed
SR7 = ‘0’ the device is NOT ready for the next word
'1'
SR7 = ‘1’ Not Allowed
SR7 = ‘0’ the device is ready for the next Word
'0'
SR7 = ‘1’ the device is exiting from EFP
25/87
M58WR128ET, M58WR128EB
CONFIGURATION REGISTER
The Configuration Register is used to configure
the type of bus access that the memory will perform. Refe r to Rea d Mo des secti on fo r d etai ls on
read operations.
The Configuration Register is set through the
Command Interface. After a Reset or Power-Up
the device is configured for asynchronous page
read (CR15 = 1). T he Configuration Register bits
are described in Table 9. They spe cify the selection of the burst length, burst type, burst X latency
and the Read operation. Refer to Figures 6 and 7
for examples of synchronous burst configurations.
Read Select Bit (CR15)
The Read Select bit, CR15, is used to switch between asynchronous an d sync hronous B us Read
operations. When the Read Se lect bit is set to ’1’,
read operations are asynchronous; when the
Read Select bit is set to ’0’, read o perations are
synchronous. Synchronous Burst Read is supported in both parameter and main blocks and can be
performed across banks.
On reset or power-up the Read Sel ect bi t is set
to’1’ for asynchronous access.
X-Latency Bits (CR13-CR11)
The X-Latency bits are used during Synchronous
Read operations to set the number of clock cycles
between the address bei ng latched and the first
data becoming available. For correct operation the
X-Latency bits can only assume the values in Table 9, Configuration Register.
The correspondence be tween X-Latency settings
and the maximum sustainable freq uency must be
calculated taking into account some system parameters. Two conditions must be satisfied:
1. Depending on whether t
AVK_CPU
or t
supplied either one of the following two
equations must be satisfied:
(n + 1) t
(n + 2) tK ≥ t
≥ t
K
ACC
ACC
- t
AVK_CPU
+ t
DELAY
+ t
+ t
QVK_CPU
QVK_CPU
2. and also
> t
t
K
KQV
+ t
QVK_CPU
where
n is the chosen X-Latency configuration code
is the clock period
t
K
t
AVK_CPU
is clock to address valid, L Low, or E
Low, whichever occurs last
t
is address valid, L Low, or E Low t o clock,
DELAY
whichever occurs last
t
QVK_CPU
is the data setup time required by the
system CPU,
is the clock to data valid time
t
KQV
is the random access time of the device.
t
ACC
DELAY
is
Refer to Figure 6, X-Latency and Data Output
Configuration Example.
Wait Polarity Bit (CR10)
In synchronous burst mode the W ait signal indicates whether the output data are valid or a WAIT
state must be inserted. The Wait Polarity bit is
used to set the po larity of the Wait signal. When
the Wait Polarity bit is set to ‘0’ the Wait signal is
active Low. When the Wait P ola rity bit is s et t o ‘ 1’
the Wait signal is active High (default).
Data Output Configuration Bit (CR9)
The Data Output Configuration bit determines
whether the output remains valid for one or two
clock cycles. When the Data Output Configuration
Bit is ’0’ the output data is valid for one clock cycle,
when the Data Output Configuration Bit is ’1’ the
output data is valid for two clock cycles.
The Data Output Configuration depends on the
condition:
■ t
> t
K
where tK is the clock period, t
setup time required by the s ystem CPU and t
KQV
+ t
QVK_CPU
QVK_CPU
is the data
KQV
is the clock to data valid time. If this condition is not
satisfied, the Data Output Configuration bit should
be set to ‘1’ (two clock cycles). Refer to Figure 6,
X-Latency and Data Output Configuration Example.
Wait Confi guration Bit (C R 8)
In burst mode the Wait bit controls the timing of the
Wait output pin, WAIT. When WAIT is asserted,
Data is Not Valid and when WAIT is deasserted,
Data is Valid. When the Wait bit is ’0’ the Wait output pin is asserted during the wait state. When the
Wait bit is ’1’ (default) the Wait output pin is asserted one clock cycle before the wait state.
Burst Type Bit (CR7)
The Burst Type bit is used to configure the sequence of addres ses read as sequential or interleaved. When the Burst Type bit is ’0’ the memory
outputs from interleaved addresses; when the
Burst Type bit is ’1’ (default) the mem ory outputs
from sequential addresses. Se e Tables 10, Burst
Type Definition, for the sequence of addresses
output from a given starting address in each mode.
Valid Clock Edge Bit (CR6)
The Valid Clock Edge bit, CR6, is used to configure the active edge of the Clock, K, during Synchronous Burst Read operations. When the Valid
Clock Edge bit is ’0’ the falling edge of the Clock is
the active edge; when the Vali d Clock Edge bit is
’1’ the rising edge of the Clock is active.
Wrap Burst Bit (CR3)
The burst reads can be confined inside the 4 or 8
Word boundary (wrap) or o vercome t he b oundary
26/87
M58WR128ET, M58WR128EB
(no wrap). The Wrap Burst bit i s used to select between wrap and no wrap. When the Wrap Burst bit
is set to ‘0’ the burst read wraps; when it is set to
‘1’ the burst read does not wrap.
Burst length Bits (CR2-CR0)
The Burst Length bits set the n umb er of Words t o
be output during a Synchronous Burst Read operation as result of a single address latch cycle.
They can be set for 4 words, 8 words, 16 words or
continuous burst, where all the words are read sequentially.
In continuous burst mode the burs t sequ ence c an
cross bank boundaries.
In continuous burst mode, in 4, 8 words no-wrap,
or in 16 words, depending on the starting address,
the device asserts the WAIT output to indicate that
a delay is necessary before the data is output.
If the starting address is aligned to a 4 word
boundary no wait states are needed and the WAIT
output is not asserted.
If the starting address is shifted by 1, 2 or 3 pos itions from the four word boundary, WAIT will be
asserted for 1, 2 or 3 clock cycles when the burst
sequence crosses the first 64 word boundary, or
the 16 word boundary in the case of 16-word wrap
burst, to indicate that the device needs an internal
delay to read the successive words in the array.
WAIT will be ass e rted only once du ring a cont in uous burst access. See also Table 10 , Burst Type
Definition.
CR14, CR5 and CR4 are reserved for future use.
27/87
Loading...
+ 60 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.