The M58CR064 is a 64 Mbit (4Mbit x16) non-volatile Flash memory that may be erased electrically
at block level and programmed in-system on a
Word-by-Word basis using a 1.65V to 2V V
ply for the circuitry and a 1.65V to 3.3V V
ply for the Input/Output pins. An optional 12V V
DD
DDQ
sup-
sup-
PP
power supply is provided to speed up customer
programming. In M58CR064C and M58CR064D
the V
pin can also be used as a control pi n to
PP
provide absolute protection against program or
erase. In M58CR064P and M58CR064Q this feature is disabled.
The device features an asymmet rical block architecture. M58CR064 has an array of 13 5 blocks,
and is divided into two banks, Banks A and B. The
Dual Bank Architecture allows Dual Operations,
while programming or erasing in one bank , Read
operations are possible in the other bank. 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 mem ory maps
are shown in Figure 4. The Parameter Blocks are
located at the top of the memory address space for
the M58CR064C and M58CR064P, and at the bottom for the M58CR064D and M58CR064Q.
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
DD
.
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 t he
Status Register. The command set required to
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 M58CR064 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. In M58CR064C and
M58CR064D there is an additional hardware protection against program and erase. When V
V
all blocks are protected against program or
PPLK
erase. All blocks ar e loc ke d at Power - Up.
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 offered in a TFBGA56, 6.5 x
10mm, 0.75 mm ball pitch package and is supplied
with all the bits erased (set to ’1’).
Wait
Supply Voltage
Supply Voltage for Input/Output
Buffers
Optional Supply Voltage for
Fast Program & Erase
Ground
Ground Input/Output Supply
NCNot Connected Internally
7/70
Page 8
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 3. TFBGA Connections (Top view through package)
87654321
A
B
CA2
DA1
E
F
G
A13
A15
V
DDQ
V
SS
DQ7V
A8A11
A9A12
A10
A14WAITA16WP
DQ15
DQ14DQ11DQ10DQ9DQ0G
SSQ
V
SS
A20
A21
DQ6
DQ13
DQ5V
V
DD
KRP
LW
DQ4DQ2EA0
DD
V
PP
DQ12
DQ3
A18
DQ1
V
DDQ
A6
A5A17
A7A19
NC
DQ8
V
A4
A3
SSQ
Table 2. Bank Architecture
Bank A16 Mbit8 blocks of 4 KWord31 blocks of 32 KWord
Bank B48 Mbit-96 blocks of 32 KWord
8/70
AI90001
Bank SizeParameter BlocksMain Blocks
Page 9
Figure 4. Me m ory Map
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Bank B
Bank A
000000h
007FFFh
2F8000h
2FFFFFh
300000h
307FFFh
3F0000h
3F7FFFh
3F8000h
3F8FFFh
3FF000h
3FFFFFh
Top Boot Block
Address lines A21-A0
512 Kbit or
32 KWord
512 Kbit or
32 KWord
512 Kbit or
32 KWord
512 Kbit or
32 KWord
64 Kbit or
4 KWord
64 Kbit or
4 KWord
Total of 96
Main Blocks
(bottom bank)
Total of 31
Main Blocks
(top bank)
Total of 8
Parameter
Blocks
(top bank)
Bank A
Bank B
000000h
000FFFh
007000h
007FFFh
008000h
00FFFFh
0F8000h
0FFFFFh
100000h
107FFFh
3F8000h
3FFFFFh
Bottom Boot Block
Address lines A21-A0
64 Kbit or
4 KWord
Total of 8
Parameter
Blocks
(bottom bank)
64 Kbit or
4 KWord
512 Kbit or
32 KWord
Total of 31
Main Blocks
(bottom bank)
512 Kbit or
32 KWord
512 Kbit or
32 KWord
Total of 96
Main Blocks
(top bank)
512 Kbit or
32 KWord
AI90002
9/70
Page 10
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
SIGNAL DESCRIPTIONS
See Figure 2 Logic Diagram and Table 1,Signal
Names, for a brief overview of the signals connected to this device.
Address Inputs (A0-A21). 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/Power-Down is at VIH the device
at V
IL
is in active mode. When Chip Enable is at V
IH
the
memory is deselected, the outputs are high impedance and the power consumption is reduced to the
stand-b y l e vel .
Output Enable (G
). The Output Enable controls
the 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/Power-Down (RP
). The Reset/Power-
Down input provides a hardware reset of the memory, and/or Power-Down functions, depending on
the Configuration Register status. When Reset/
Power-Down is at V
, the memory is in reset
IL
mode: the outputs are hi gh impedance an d if the
Power-Down function is enabled t he current consumption is reduced to the Reset Supply Current
I
. Refer to Table 18, DC Characte ristics - Cur-
DD2
rents for the value of I
After Reset all blocks
DD2.
are in the Locked state and the Configuration Register is reset. When Reset/Power-Down is at V
IH
the device is in normal operation. Exiting reset
mode the device enters asynchronous read mode,
but a negative transition of Chip Enable or Latch
Enable is required to ensure valid data outputs.
The Reset/Power-Down pin can be interfaced with
3V logic without any additional circuitry. It can be
tied to V
tics).
Latch Enable (L
dress bits on its rising edge. The a ddress latch is
transparent when Latch Enable is at V
hibited when Latch Enable is at V
can be kept Low (also at board level) when the
Latch Enable function is not required or supported.
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
synchronous read to indicate whether the dat a on
the output bus are valid. This output is high impedance when Chip Enable or Output Enable are at
V
or Reset/Power-Down is at VIL. It can be con-
IH
figured to be active during the wait cycle or one
clock cycle in advance.
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
control input and a power supply pin. In
M58CR064C/D the two functions are s elected by
the voltage range applied to the pin. In the
M58CR064P/Q the control feature is disabled.
In M58CR064C/D if V
range (0V to V
In this case a voltage lower than V
absolute protection against program or erase,
while V
bles 18 and 19, DC Characteristics for the relevant
values). V
program or erase; a change in its value after the
operation has started does not have any effect and
program or erase operations continue.
If V
is in the rang e of 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.
Ground. V
V
SSQ
the input/output circuitry driven by V
must be connected to V
(refer to Table 19, DC Characteris-
RPH
). Latch Enable latches the ad-
IL
. Latch Enable
IH
). Wait is an output signal used during
provides the power
DDQ
. V
DD
or can use a separate supply.
DD
is kept in a low voltage
PP
) VPP is seen as a control input.
DDQ
PP
> V
enables these functions (see Ta-
PP1
is only sampled at the beginning of a
PP
it acts as a power
PPH
must be stable un-
PP
ground is the reference for
SSQ
SS
DDQ
PPLK
DDQ
and it is in-
. Clock is
IL
can be
gives an
. V
SSQ
10/70
Page 11
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
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-
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).
Refer to the Read AC Waveform figures and Characteristics tables in the DC and AC Parameters
section 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
age). See Figure 9, AC Measurement Load Circuit. The PCB track widths should be sufficient
to carry the re quired V
program and erase
PP
currents.
the Latch Enable shoul d be t ied to V
during the
IH
bus write operation.
See Figures 14 and 15, 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/Power-Down a re at
. The power consumption is reduced to the
V
IH
stand-by level and the ou tputs are se t to high impedance, independently from the Output Enable
or Write Enable inputs. If Chip Enable switches to
V
during a program or erase operation, t he de-
IH
vice enters Standby mode when finished.
Reset. During Reset mode the memory is dese-
lected and the outputs are high impedance. The
memory is in Reset mode when Reset/PowerDown is at V
. The power consumption is reduced
IL
to the Standby leve l, inde pendent ly from t he Chip
Enable, Output Enable or Write Enable inputs. If
Reset is pulled to V
during a Program or Erase,
SS
this operation is aborted and the mem ory content
is no longer valid.
Table 3. Bus Operations
OperationEGWLRPWAITDQ15-DQ0
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 previo usly latched.
3. Depends on G
V
IL
V
IL
V
IL
V
IL
V
IH
.
V
IL
V
IH
X
V
IH
XXX
V
IH
V
ILV
V
IH
V
IH
(2)
V
IL
(2)
IL
V
IL
X
V
IH
V
IH
V
IH
V
IH
V
IH
V
IL
Hi-ZData Input
Data Output or Hi-Z
Hi-ZHi-Z
Hi-ZHi-Z
Hi-ZHi-Z
Data Output
(3)
11/70
Page 12
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
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 reset the device to read mode.
Refer to Table 4, Command Codes and Appendix
D, Tables 36 and 37, Command Interface 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.
Table 4. Command C odes
Hex CodeCommand
01hBlock Lock Confirm
03hSet Configuration Register Confirm
10hAlternative Program Setup
20hBlock Erase Setup
2FhBlock Lock-Down Confirm
30hDouble Word Program Setup
40hProgram Setup
50hClear Status Register
55hQuadruple Word Program Setup
60h
70hRead Status Register
80hBank Erase Setup
90hRead Electronic Signature
Block Lock Setup, Block Unlock Setup,
Block Lock Down Setup and Set
Configuration Register Setup
98hRead CFI Query
B0hProgram/Erase Suspend
C0hProtection Register Program
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 the other bank. However if a Read Array co mmand is issued to a bank
currently executing a Program or Erase operation
the command will be ignore d.
Read Status Register Command
A Bank’s Status Register indicates when a Program or Erase operation is complete and t he suc cess or failure of operation itself. Issue a Read
Status Register command to read the Status Register content of the addressed Bank. The Read
Status Register comma nd can be issued at any
time, even during Program or Erase operations.
The following Bus Read operations output the content of the Status Register of the addressed bank.
The Status Register is latched on the falling edge
or G signals, and can be read until E or G re-
of E
turns to V
date the latched data. See Table 8 for the
description of the Status Register Bit s. This m ode
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 the bot tom
bank. A subsequent read operation in the address
of the bottom bank will output the Manufacturer
Code, the Device Code, the protection Status of
Blocks of the bottom bank, the Die Revision Code,
the Protection Register, or the Read Configuration
Register (see Table 6).
If the first write cycle of Read Electronic Signature
command is issued t o an address within the top
bank, a subsequent read operat ion in an address
of the top bank will output the protection Statu s of
blocks of the top bank. The status of the other
bank is not affected by the command (see Tab le
11). This mode supports asynchronous or sing le
synchronous reads only, it do es not support page
mode or synchronous burst reads.
. Either E or G must be toggled to up-
IH
Read CFI Query Command
The Read CFI Query command is used to read
data from the Common Flash Interface (CFI)
memory area located in the bottom bank. The
Read CFI Query Command consists of one Bus
Write cycle, to an address within the bottom bank.
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 Status Register mode, subsequent Bus Read cycles will output the Status
Register and the Program/Erase controller will
continue to Program or Erase in t he background.
When the Program or Erase operation has finished the device will enter Read CFI Query mode.
This mode 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 mode.
See Appendix B, Common Flash Interface, Tables
30, 31, 32, 33, 34 and 35 for details on the in formation contained in the Co mmon 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 of the addressed bank.
One bus write cycle is required to issue the Clear
Status Register command. After the Clear S tatus
Register command the bank returns to Read Array
mode.
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.
13/70
Page 14
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
■ The second latches the block address in the
internal state machine and starts the Program/
Erase Controller.
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 onl y ac cept the Read Status Register 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 erased. Typical Erase times are
given in Table 14, Program, Erase Times and Program/Erase Endurance Cycles.
See Appendix C, Figure 24, 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 Statu s Register and the Program/Erase Suspend command.
Refer to Dual Operations section for detailed information about simultaneous operations allowed in
banks not being 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 20, 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 Suspend command. Once the Program/Erase Controller has paused bits SR7 , SR6
and/ or SR2 of the Status Register will be set to ‘1’.
The command must be addressed to the bank
containing the Program or Erase operation.
During Program/Erase Suspend the Command Interface will accept the Program/Erase Resume,
Read Array (cannot read the suspended block),
Read Status Register, Read Electronic S ignature
and Read CFI Q uery commands. Additionally, if
the suspend operation was Erase then the Clear
status Register, Program, Block Lock, Block LockDown or Protection Program commands wi ll also
be accepted. The block being erased may be protected by issuing the Block Lock, Block LockDown or Protection Register Program commands.
Only the blocks not being e rased m ay 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 23 , Program Suspend &
Resume Flowchart and Pseudo Code, and Figure
25, 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 comm and must be written to the
bank containing the Program or Erase Suspend.
The Program/Erase Resume command changes
the read mode of th e target bank to Read S tatus
Register mode.
If a Program command is iss ued during 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
programming operation then read the array. See
Appendix C, Figure 23, Program Su spend & Resume Flowchart and Pseudo Code, and Figure 25,
Erase Suspend & Resume Flowchart and Pseudo
14/70
Page 15
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Code for flowcharts for using the Program/Erase
Resume command.
Protection Regi ster Pr ogram Com m and
The Protection Register Program command is
used to Program the 128 bit user O ne-Time-Programmable (OTP) segment of the Protection Register. 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 Protec-
tion 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 Protection 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 27, 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 C om m and.
The Set Configuration Register command is used
to write a new value to the 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.
Once the comman d is issued the memory ret urns
to Read mode.
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
26, 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 26, 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.
■ The second Bus Write cycle latc hes the block
address.
15/70
Page 16
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
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 af-
ter issuing a Block Lock-Down command. Refer to
the section, Block Locking, for a detailed explanation and Appendix C, Fi gure 26, 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+Write
Read CFI Query1+WriteBBKA98h Read
Clear Status Register1WriteBKA50h
Block Erase2WriteB KA20hWriteBAD0h
Program2WriteBKA40h or 10hWriteWAPD
Program/E rase Su s pen d1Wr i teBKAB0h
Program/Erase Resume1WriteBKAD0h
Protection Register Program2WritePRAC0hWrite
Set Configuration Register2WriteCRD60hWrite
Block Lock 2WriteBKA60hWrite
Block Unlock2WriteBKA60hWrite
Block Lock-Down2WriteBKA60hWrite
Note: 1. X = Don’t Care, WA=Word Address in targeted bank, RD=Read Data, SRD=Status Register Data, ESD=Electronic Signature Data,
Figure 5. Security Block and Protection Register Memory Map
PROTECTION REGISTER
8Ch
SECURITY BLOCK
85h
84h
Parameter Block # 0
81h
80h
User Programmable OTP
Unique device number
Protection Register Lock210
AI06181
17/70
Page 18
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
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.
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
V
PP
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 Status Regi ster
command, all other commands w ill be ignored . A
Bank Erase operation cannot be suspended.
For optimum performance, Bank Erase commands should be limited to a maximum of 100 Program/Erase cycles per Block. After 100 Program/
Erase cycles the internal algorithm will still operate
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.
Programming should not be attempted when V
is not at V
V
is below V
PP
Three bus write cycles are necessary 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 a ccept the Read Status Register command, all other commands will be
ignored. Dual operations are not supported during
Double Word Program operations. It is not recommended to suspend the Double Word Program
command. 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 21, 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.
Programming should not be attempted when V
is not at V
is below V
V
PP
Five bus write cycles are necessary to issue the
Quadruple 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 command can be executed if
PPH
PPH
but the result is not guaranteed.
PPH
IL
. The command can be executed if
but the result is not guaranteed.
PPH
PP
. As data
PP
18/70
Page 19
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
■ 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 Addr es s 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
Status Register command, all other commands
will be igno re d.
Dual operations are not supported during Quadruple Word Program operations. It is not recommended to suspend the Quadruple Word Program
command. Typical Program times are given in Table 14, Program, Erase Times and Program/Erase
Endurance Cycles.
See Appendix C, Figure 22, Quadruple Word Program Flowchart and Pseudo Code, for the flowchart for using the Quadruple Word Program
command.
Table 7. Factory Program Commands
Bus Write Operations
CommandPhase
Cycles
Bank Eras e2BKA80hBKAD0h
(2)
Double Wor d Program
Quadruple Word
Program
Note: 1. WA=Word A dd ress in t arget ed bank, BKA= Bank A d dress, PD = P r ogram Data, WA1 is t h e S t a rt Addr e s s.
(3)
2. Word Addres ses 1 and 2 must be consecutive Addresses differing only for A0.
3. Word Addres ses 1,2,3 and 4 must be consecutive Addresses di ffering onl y for A0 and A1.
3BKA30hWA1PD1 WA2PD2
5BKA55hWA1PD1WA2PD2WA3PD3WA4PD4
1st2nd3rd4th5th
AddDataAddDataAddDataAddDataAddData
19/70
Page 20
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
STATUS REGISTER
The M58CR064 has two Status Registers, one for
each bank. The Status Registers provide information on the current or previous Program or Erase
operations executed in each bank. 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 signals, and can be read until Chip Enable
or Ou tpu t Enable return s to V
. The Status Reg-
IH
ister can only be read using 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
and SR2 give information on the status of the bank
and are set and reset by the device. Bits SR5,
SR4, SR3 and SR1 give information on errors,
they are set by the device but must be reset by issuing a Clear Status Register command or a hard-
ware reset. If an error bit is set to ‘1’ the Status
Register should be reset before issuing another
command.
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 the addressed 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 Prog ram/E rase Cont roller 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-
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 30µs 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 Pr ogram failure. When the
Program Status bit is High (set to ‘1’), the Program/Erase Controller has applied the maximum
number of pulses to the byte and still failed to verify that it has programmed correctly. The Program
Status bit should be read once the 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
or Erase operation. Indeterminate results can occur if V
When the V
age on the V
when the V
pin has a voltage that is below the VPP Lockout
Voltage, V
gram and Erase operations cannot be performed.
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
, the memory is protected and Pro-
PPLK
PP
pin
PP
PP
20/70
Page 21
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Once set High, the VPP 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 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 5µs of the Program/Erase Suspend command being issued therefore the memo-
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.
Reserved Bit (SR0). SR0 is reserved. Its value
must be masked.
ry may still complete the operation rather than
entering the Suspend mode.
Table 8. Status Register Bits
BitNameTypeLogic Level Definition
SR7 P/E.C. Status Status
SR6 Erase Suspend Status Status
SR5 Erase StatusError
’1’Ready
’0’Busy
’1’Erase Suspended
’0’Erase In progress or Completed
’1’Erase Error
’0’Erase Success
SR4 Program StatusError
Status
V
SR3
SR2 Program Suspend Status Status
SR1 Block Protection StatusError
SR0Reserved
Note: Logic level ’1’ is High, ’0’ is Low.
PP
Error
’1’Program Error
’0’Program Success
V
’1’
’0’
’1’Program Suspended
’0’Program In Progress or Completed
’1’Program/Erase on protected Block, Abort
’0’No operation to protected blocks
Invalid, Abort
PP
OK
V
PP
21/70
Page 22
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
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 bit 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
DELAY
is
supplied either one of the following two
equations must be satisfied:
(n + 1) t
(n + 2) tK ≥ t
≥ t
ACC
ACC
- t
AVK_CPU
+ t
DELAY
K
+ 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
Refer to Figure 6, X-Latency and Data Output
Configuration Example.
Power-Do wn Bit (CR10 )
The Power-Down bit is used to enable or di sable
the power-down function.
When the Power-Down bit is set to ‘0’ the powerdown function is disabled. If the Reset/PowerDown, RP
and the supply current, I
standby value, I
When the Power-Down bit is set to ‘1’ the powerdown function is enabled. If the Reset/PowerDown, RP
the power-down state and the supply current, I
is reduced to the power-down value, I
The recovery time after a Reset/Power-Down, RP
pulse is significantly longer when power-down is
enabled (see Table 24).
After a reset the Power-Down Bit is set to ‘0’.
Wait Co nf i gur a tio n B it (CR 8)
In burst mode the Wait bit controls the timing of the
Wait output pin, WAIT
Wait output pin is asserted during th e wait state.
When the Wait bi t is ’1’ (default) the W ait output
pin is asserted one clock cycle before the wait
state.
is asserted during a continuous burst and
WAIT
also during a 4 or 8 burst length if no-wrap configuration is selected. WAIT
asynchronous reads, single synchronous reads or
during latency in synchronous reads.
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
(no wrap). The Wrap Burst bit i s used t o sel ect 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.
, pin goes Low, VIL, the device is reset
is reduced to the
DD,
DD3
.
, pin goes Low, VIL, the device goes into
DD,
.
DD2
. When the Wait bit is ’0’ the
is not asserted during
,
22/70
Page 23
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
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 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 or in 4, 8 words no-wrap,
depending on the starting add ress, the dev ice a s serts the WAIT
output to indicate that a delay is
necessary before the data is output.
Table 9. Configuration Register
BitDescriptionValueDescription
CR15Read Select
CR14Reserved
CR13-CR11 X-Latency
0Synch rono us Re ad
1Asynchronous Read (Default at power-on)
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 positions 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 b oundary, to
indicate that the device needs an internal delay to
read the successive words in the array. WAIT
will
be asserted only once during a continuous burst
access. See also Table 10, Burst Type Definition.
CR14, CR9, CR5 and CR4 are reserved for future
use.
Figure 6. X-Latency a nd Da ta Ou t put C on f ig uration Exam pl e
X-latency
1st cycle2nd cycle3rd cycle4th cycle
K
E
L
A21-A0VALID ADDRESS
tDELAY
DQ15-DQ0
Note. Settings shown: X-latency = 4, Data Output held for one clock cycle
tAVK_CPUtKtQVK_CPU
tACC
Figure 7. Wai t Co nf i g ura tio n Exampl e
E
K
L
A21-A0
VALID ADDRESS
VALID DATA
tQVK_CPUtKQV
VALID DATA
AI90005
DQ15-DQ0
WAIT
CR8 = '0'
WAIT
CR8 = '1'
VALID DATA
VALID DATA NOT VALID VALID DATA
AI90006b
25/70
Page 26
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
READ MODES
Read operations can be performed in two different
ways depending on the settings in the Configuration Register. If the clock s ignal is ‘don’t care’ for
the data output, the read operation is Asynchronous; if the data output is synchronized with clock,
the read operation is Synchronous.
The Read mode and data output format are determined by the Configuration Register. (See Configuration Register section for details). All banks
supports both asynchronous and synchronous
read operations. The Dual Bank architecture allows read operations in one bank, whi le write operations are being executed in the other (see
Tables 11 and 12).
Asynchronous Read Mode
In Asynchronous Read operations the clock signal
is ‘don’t care’. The device outpu ts the dat a corresponding to the address latched, that is the mem ory array, Status Register, Common Flash
Interface or Electronic Signature depending on the
command issued. CR15 in the Configuration Register must be set to ‘1’ for Asynchronous operations .
In Asynchronous Read mode a Page of data is internally read and stored in a Page Buffer. The
Page has a size of 4 Words and is addressed by
A0 and A1 address inputs. The address inputs A0
and A1 are not gated by Latch Enable in Asynchronous Read mode.
The first read operation within the Page has a
longer access time (T
, Random access time),
acc
subsequent reads within the same Page have
much shorter access times. If the Page changes
then the normal, longer timings apply again.
Asynchronous Read operations can be performed
in two different ways, Asynchronous Random Access Read and Asynchronous Page Read. Only
Asynchronous Page Read takes f ull adv antage of
the internal page s torage so different t imings are
applied.
See Table 20, Asynchronous Read AC Characteristics, Figure 10, Asynchrono us Random Access
Read AC Waveform and Figure 11, Asynchronous
Page Read AC Waveform for details.
Synchron ous Burst Rea d M ode
In Synchronous Burst Read mode t he data is output in bursts synchronized with the clock. It i s possible to perform burst reads across bank
boundaries.
Synchronous Burst Read mode can onl y be used
to read the memory array. For other read operations, such as Read Status Register, Read CFI
and Read Electronic Signature, Single Synchronous Read or Asynchronous Random Access
Read must be used.
In Synchronous Burst Read mode the flow o f the
data output depends on param eters that are configured in the Configuration Register.
A burst sequence is started at t he first clo ck edge
(rising or falling depending on Valid Clock Edge bit
CR6 in the Configuration Register) after the falling
edge of Latch Enable or Chip Enable, whichever
occurs last. Addresses are internally incremented
and after a delay of 2 to 5 clock cycles (X latency
bits CR13-CR11) the co rresponding dat a are output on each clock cycle.
The number of Words to be out put during a Synchronous Burst Read operation can be configured
as 4 or 8 Words or Continuous (Burst Length bits
CR2-CR0). The data can be configured to remain
valid for one or two clock cycles (Data Output Configur a tion b it CR9 ) .
The order of the data output can be modified
through the Burst Type and the Wrap Burst bits in
the Configuration Register. The burst sequence
may be configured to be seq uential or i nterleaved
(CR7). The burst reads can be confined inside the
4 or 8 Word boundary (Wrap) or overcome the
boundary (No Wrap). If the starting address is
aligned to the Burst Length (4 or 8 Words), the
wrapped configuration has no impact on the output
sequence. Interleaved mode is not allowed in Continuous Burst Read mode or with No Wrap sequences.
A WAIT
system that an output delay will occur. This delay
will depend on the starting address of the burst sequence; the worst case dela y will o ccur w hen the
sequence is crossing a 64 word boundary and the
starting address was at the end of a four word
boundary.
is asserted during the Wait state and at the
WAIT
end of 4- and 8-Word Burst. It is deasserted during
the X latency and when output data are valid. In
Continuous Burst Read mode a Wait state will occur when crossing the first 64 Word boundary. If
the burst starting address is aligned to a 4 Word
Page, the Wait state will not occur.
The WAIT
meaningful only in Synchronous Burst Read
mode, in other modes, WAIT
cept for Read Array mode).
See Table 21, Synchronous Read AC Characteristics and Figure 12, Synchronous Burst Read AC
Waveform for details.
Single Synchronous Read Mode
Single Synchronous Re ad operations are similar
to Synchronous Burst Read operations except that
only the first data output after the X latency is valid.
Other Configuration Regi ster pa rame ters have no
effect on Single Synchronous Read operations.
signal may be asserted to indicate to the
signal is active Low. The WAIT signal is
is not asserted (ex-
26/70
Page 27
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Synchronous Single Reads are used to read the
Electronic Signature, S tatus Register, CFI, Block
Protection Status, Configuration Register Status
or Protection Register. When t he add ressed bank
is in Read CFI, Read Status Register or Read
Electronic Signature mode, the WAIT signal is always deasserted.
See Table 21, Synchronous Read AC Characteristics and Figure 13, Single Synchronous Read AC
Waveform for details.
DUAL OPERATIONS AND MULTIPLE BANK ARCHITECTURE
The Dual Operations feature simplifies the software management of the device and allows code
to be executed from one bank while the other bank
is being programmed or erased.
The Dual operations feature means that while programming or erasing in one bank, Read operations are possible in the other bank with zero
latency (only one bank at a time is allowed to be in
Program or Erase mode). If a Read operation is required in a bank which is programming or erasing,
the Program or Erase operation can be s uspended. Also if the suspended operation was Erase
then a Program command can be issued to another block, so the device can have one block in
Erase Suspend mode, one prog ramming and the
other bank in Read mode. Bus Read operations
are allowed in the other bank between setup and
confirm cycles of program or erase operations.
The combination of these features means that
read operations are possible at any moment.
Tables 11 and 12 show the dual operations possible in the other bank and in the s am e bank. F or a
complete list of possible comma nds refer to Appendix D, Command Interface State Tables.
ErasingYesYesYesYes––––
Program SuspendedYesYesYesYes–––Yes
Erase SuspendedYesYesYesYesYes––Yes
Table 12. Dual Operations Allowed In Same Bank
Commands allowed in same bank
Status of bank
IdleYesYesYesYesYesYesYesYes
Programming
Erasing
Program Suspended
Erase Suspended
Note: 1. Not allowed in the Block or Word that is bei ng erased or programmed.
Read
Array
–
–
(1)
Yes
(1)
Yes
Read
Status
Register
Yes––––Yes–
Yes––––Yes–
YesYesYe s–––Ye s
YesYesYes
Read
CFI Query
Read
Electronic
Signature
Program
(1)
Yes
Block
Erase
Program/
Erase
Suspend
––Yes
Program/
Erase
Resume
27/70
Page 28
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
BLOCK LOCKING
The M58CR064 features an instant, individual
block locking scheme that allo ws any block to be
locked or unlocked with no latency. This locking
scheme has three levels of protection.
■ Lock/Unlock - this first level allows software-
only control of block locking.
■ Lock-Down - this second level requires
hardware interaction before locking can be
changed.
■ V
PP
≤ V
- the third level offers a complete
PPLK
hardware protection against program and erase
on all blocks (M58CR064C/D only).
The first two levels (Lock/Unlock and Lock-Down)
are available in M58CR064C/D and M58CR064P/
Q. The th ird level (V
PP
≤ V
) is only available
PPLK
for the M58CR064C/D versions, in the
M58CR064P/Q this feature has been disabled.
For all devices the protection status of eac h block
can be set to Locked, Unlocked, and Lo ck-Down.
Table 13, defines all of the possible protection
states (WP
, DQ1, DQ0), and Appendix C, Figure
26, shows a flowchart for the locking operations.
Reading a Block’s Lock Status
The lock status of every block can be read in the
Read Electronic Signature mode of the device. To
enter this mode write 90h t o the device. Subsequent reads at the addres s specified in Table 6,
will output the pr otection sta tus of that bloc k. The
lock status is represented by DQ0 and DQ 1. DQ0
indicates the Block Lock/Unlock status and i s set
by the Lock comm and and cleared by the Unlock
command. It is also automatically set when entering Lock-Down. DQ1 indicates the Lock-Down status and is set by the Lock-Down command. It
cannot be cleared by software, only by a hardware
reset or power-down.
The following sections explain the operation of the
locking system.
Locked State
The default status of all blocks on power-up or after a hardware reset is L ocked (states (0,0,1) or
(1,0,1)). Locked blocks are fully protected from
any program or erase. Any program or erase operations attempted on a locked block will return an
error in the Status Register. The Status of a
Locked block can be changed to Unlocked or
Lock-Down using the appropriate software commands. An Unlocked block can be Locked by issuing the Lock command.
Unlocked State
Unlocked blocks (states (0,0,0), (1,0,0) (1,1,0)),
can be programmed or erased. All unlocked
blocks return to the Locked state after a hardware
reset or when the device is powered-down. The
status of an unlocked block can be changed to
Locked or Locked-Down using the appropriate
software commands. A locked block can be unlocked by issuing the Unlock command.
Lock-Down State
Blocks that are Locked-Down (state (0,1,x))are
protected from program and erase operations (as
for Locked blocks) but th eir protect ion status cannot be changed using software comma nds alone.
A Locked or Unlocked block can be Locked-Down
by issuing the Lock-Down command. LockedDown blocks revert to the Locked state when the
device is reset or powered-down.
The Lock-Down function is depen dent on the WP
input pin. When WP=0 (VIL), the blocks in the
Lock-Down state (0,1,x) are protected from program, erase and protection status changes. When
=1 (VIH) the Lock-Down function is disabled
WP
(1,1,x) and Locked-Down blocks can be individually unlocked to the (1,1,0) state by issuing the software command, where they can be erased and
programmed. These blocks can then be re-locked
(1,1,1) and unlocked (1,1,0) as desired while WP
remains high. When WP is low , blocks that were
previously Locked-Down return to the Lock-Down
state (0,1,x) regardless of any changes made
while WP
resets all blocks , including those in Lock-Down, to
the Locked state.
Locking Operations During Erase Suspend
Changes to block lock status can be performed
during an erase suspend by using the standard
locking command sequences to unlock, lock or
lock-down a block. This is useful in the case when
another block needs to be updated while an erase
operation is in progress.
To change block locking during an erase operation, first write the Erase Suspend command, then
check the status register until it indicates that the
erase operation has been suspended. Next write
the desired Lock com mand sequence to a block
and the lock status will be changed. After completing any desired lock, read, or program operations,
resume the erase operation with the Erase Resume command.
If a block is locked or locked-down during an erase
suspend of the same block, the locking status bits
will be changed immediately, b ut when the erase
is resumed, the erase operation will complete.
Locking operations cannot be performed du ring a
program suspend. Refer to Appendix D, Command Interface State Table, for detailed information on which commands are valid during erase
suspend.
Note: 1. The lock status is defined by the write protect pin and by DQ1 (‘1’ for a locked-down block) and DQ0 (‘1’ for a locked block) as read
in the Read El ectronic S i gnature comm and with A1 = V
2. All bl ocks are locked at power-up, so the default configuration is 001 or 101 according to WP
3. A W P
transition to VIH on a locked block will restore the previous DQ0 value, giving a 111 or 110.
and A0 = VIL.
IH
(1)
After Block
Lock-Down
Command
status.
After
transition
WP
1,1,1 or 1,1,0
(3)
29/70
Page 30
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
PROGRAM AND ERASE TIMES AND ENDURANCE CYCLES
The Program and Erase times and the number of
Program/ Er as e cycl e s p e r b lock are shown in T a ble 14. In the M58CR064 the maximum number of
Table 14. Program, Erase Times and Progr am, Erase End uran ce Cycl es
ParameterCondi tionMinTyp
Parameter Block (4 KWord) Erase
(2)
Program/ Erase cycles depends on the voltage
supply used.
0.312.5s
Typical
after
100k W/E
Cycles
Max
Unit
Main Block (32 KWord) Erase
Preprogrammed0.834s
Not Preprogrammed1.14s
Preprogrammed11s
Bank A (16Mbit) Erase
Not Preprogrammed18s
Preprogrammed33s
Bank B (48Mbit) Erase
DD
= V
Parameter Block (4 KWord) Program
PP
V
Main Block (32 KWord) Program
Word Program
(3)
Not Preprogrammed54s
(3)
(3)
40ms
300ms
1010100µs
Program Suspend Latency 510µs
Erase Suspend Latency520µs
Main Blocks100,000cycles
Program/Erase Cycles (per Block)
Parameter Blocks100,000cycles
Parameter Block (4 KWord) Erase
0.32.5s
Main Block (32 KWord) Erase0.94s
Bank A (16Mbit) Erase13s
Bank B (48Mbit) Erase39s
4Mbit ProgramQuadruple Word510ms
PPH
Word/ Double Word/ Quadruple Word Program
= V
Parameter Block (4 KWord)
PP
V
Program
(3)
Quadruple Word8ms
Word32ms
(3)
8100µs
Quadruple Word64ms
Main Block (32 KWord) Program
(3)
Word256ms
Main Blocks1000cycles
Program/Erase Cycles (per Block)
Parameter Blocks2500cycles
Note: 1. TA = –40 to 85°C; VDD = 1.65V to 2V; V
2. T he di fferenc e between Preprogrammed and not preprogram m ed is not signi ficant (‹30ms).
3. Ex cludes the t i m e needed to execute the com mand seq uence.
= 1.65V to 3.3V .
DDQ
30/70
Page 31
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
MAXI MUM RATI N G
Stressing the device ab ove the rating listed in t he
Absolute Maximum Ratings table m ay cause permanent damage to the device. These are stress
ratings only and operation of the device at these or
any other conditions ab ove those i ndicated in t he
Operating sections of this specificat ion is not im-
Table 15. Absolute Maximum Ratings
SymbolParameterMin MaxUnit
plied. Exposure to Absolute Maximum Rating conditions for extended periods may affect device
reliability. Refer also to the STMicroelectronics
SURE Program and ot her relevant quality documents.
Value
T
T
BIAS
T
STG
V
V
V
DDQ
V
I
t
VPPH
A
IO
DD
PP
O
Ambient Operating Temperature –40 85°C
Temperature Under Bias–40 125°C
Storage Temperature–55 155°C
V
Input or Output Voltage–0.5
DDQ
+0.5
V
Supply Voltage–0.5 2.7V
Input/Output Supply Voltage–0.5 3.6V
Program Voltage–0.513V
Output Short Circuit Current100mA
Time for VPP at V
PPH
100hours
31/70
Page 32
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
DC AND AC PARAMETERS
This section summarizes t he operating m easurement conditions, and the DC and AC characteristics of the device. The parameters in the DC and
AC characteristics Tables that follow, are derived
from tests performed under the Measurement
Table 16. Operating and AC Measurement Conditions
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Conditions summarized in Table 16, Operating
and AC Measurement Conditions. Designers
should check that the operating conditions in their
circuit match the operating conditions when relying on the quoted parameters.
30303030pF
Input Rise and Fall Times4444ns
Input Pulse Voltages
Input and Output Timing Ref. Voltages
0 to V
V
DDQ
DDQ
/2V
0 to V
DDQ
DDQ
/2V
0 to V
DDQ
DDQ
/2V
0 to V
DDQ
DDQ
/2
Figure 8. AC Measurement I/O WaveformFigure 9. AC Measurem ent Load Circuit
V
DDQ
V
DDQ
V
DDQ
V
DD
16.7kΩ
0V
V
DDQ
/2
Unit
V
V
V
AI06161
0.1µF
0.1µF
DEVICE
UNDER
TEST
CL
CL includes JIG capacitance
Table 17. Capacitance
SymbolParameterTest ConditionMinMaxUnit
V
V
IN
OUT
= 0V
= 0V
68pF
812pF
C
IN
C
OUT
Note: Sampled only, not 100% tested.
Input Capacitance
Output Capacitance
32/70
16.7kΩ
AI06162
Page 33
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Table 18. DC Characteristics - Currents
SymbolParameterTest ConditionMinTypMaxUnit
I
Input Leakage Current
LI
I
Output Leakage Current
LO
Supply Current
Asynchron ous Read (f=6MHz)
Supply Current
I
DD1
Synchronous Read (f=40MHz)
Supply Current
Synchronous Read (f=54MHz)
I
DD2
I
DD3
Supply Current
(Power-Down)
Supply Current (Standby)
Supply Current (Program)
(1)
I
DD4
Supply Current (Erase)
DD5
I
DD6
(Dual Operations)
Supply Current Program/ Erase
(1)
Suspended (Standby)
Supply Current
(1,2)
I
VPP Supply Current (Program)
(1)
I
PP1
V
Supply Current (Erase)
PP
I
PP2
I
PP3
Note: 1. Sampled only, not 100% tested.
VPP Supply Current (Read)
(1)
VPP Supply Current (Standby)V
2. V
Dual Operation current is the sum of read and program or er ase current s.
DD
0V ≤ V
0V ≤ V
E
RP
E
Program/Erase in one
Bank, Asynchron ous
Read in another Bank
Program/Erase in one
Bank, Synchronous
Read in another Bank
E
≤ V
IN
≤ V
OUT
= VIL, G = V
DDQ
DDQ
IH
36mA
±1µA
±1µA
4 Word613m A
8 Word814m A
Continuous610mA
4 Word716m A
8 Word1018m A
Continuous132 5m A
= VSS ± 0.2V
= VDD ± 0.2V
V
= V
PP
PPH
V
= V
PP
DD
V
= V
PP
PPH
V
= V
PP
DD
210µA
1050µA
815mA
1020mA
815mA
1020mA
1326mA
1630mA
= VDD ± 0.2V
V
= V
PP
PPH
V
= V
PP
DD
= V
V
PP
PPH
V
= V
PP
DD
V
= V
PP
PPH
V
V
≤
PP
DD
V
≤
PP
DD
1050µA
25mA
0.25µA
25mA
0.25µA
100400µA
0.25µA
0.25µA
33/70
Page 34
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Table 19. DC Characteristics - Voltages
SymbolParameterTest ConditionMinTypMaxUnit
V
V
V
V
V
Input Low Voltage–0.50.4V
IL
V
Input High Voltage
IH
Output Low Voltage
OL
Output High Voltage
OH
VPP Program Voltage-Logic
PP1
I
= 100µA
OL
I
= –100µAV
OH
Program, Erase11.81.95V
–0.4V
DDQ
–0.1
DDQ
+ 0.4
DDQ
0.1V
V
V
V
PPHV
V
PPLK
V
LKO
V
RPH
Program Voltage Factory
PP
Program or Erase Lockout0.9V
VDD Lock Voltage
RP pin Extended High Voltage 3.3V
Program, Erase11.41212.6V
1V
34/70
Page 35
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 10. Asynchronous Rando m Access Read AC Waveforms
VALID
tGHQZ
tEHQZ
tEHQX
tAXQX
tGHQX
AI90009b
tEHTZ
VALID
VALID
A0-A21
tAVAV
tAVLHtLHAX
tGLTV
tGLQV
tGLQX
tLHGL
tLLQV
tLLLH
L
tELLH
tELQV
tELQX
tELTV
Hi-Z
E
G
WAIT
tAVQV
Hi-Z
DQ0-DQ15
Valid Address LatchOutputs Enabled Data Valid Standby
Note. Write Enable, W, is High.
35/70
Page 36
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 11. Asynchronous Page Read AC Waveforms
VALID ADDRESSVALID ADDRESSVALID ADDRESS
AI90048c
VALID ADDRESS
VALID ADDRESS
tAVAV
tLHAX
tAVLH
tLLLH
tLLQV
tLHGL
tELLH
tELQV
tELQX
tGLTV
tELTV
tGLQV
tAVQV1tGLQX
VALID DATAVALID DATAVALID DATAVALID DATA
Valid DataStandby
Outputs
Enabled
Valid Address Latch
36/70
A2-A21
A0-A1
Hi-Z
L
E
G
WAIT
DQ0-DQ15
Page 37
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Table 20. Asynchronous Read AC Characteristics
SymbolAltParameter
t
AVAV
t
AVQV
t
AVQV1
(1)
t
AXQX
t
ELTV
(2)
t
ELQV
(1)
t
ELQX
t
EHTZ
(1)
t
EHQX
Read Timings
Latch Timings
Note: 1. Sampled only, not 100% tested.
2. G
(1)
t
EHQZ
(2)
t
GLQV
(1)
t
GLQX
t
GLTV
(1)
t
GHQX
(1)
t
GHQZ
t
AVLH
t
ELLH
t
LHAX
t
LLLH
t
LLQV
t
LHGL
may be delayed by up to t
t
RC
t
ACC
t
PAGE
t
OH
t
CE
t
LZ
t
OH
t
HZ
t
OE
t
OLZ
t
OH
t
DF
t
AV ADVH
t
ELADVH
t
ADVHAX
t
ADVLADVH
t
ADVLQV
t
ADVHGL
Address Valid to Next Address ValidMin8590100120ns
Address Valid to Output Valid (Random)Max8590100120ns
Address Valid to Output Valid (Page)Max30304545ns
Address Transition to Output Transition Min0000ns
Chip Enable Low to Wait ValidMax14141418ns
Chip Enable Low to Output ValidMax8590100120ns
Chip Enable Low to Output TransitionMin0000ns
Chip Enable High to Wait Hi-ZMax20202020ns
Chip Enable High to Output TransitionMin0000ns
Chip Enable High to Output Hi-ZMax20202020ns
Output Enable Low to Output ValidMax25252525ns
Output Enable Low to Output TransitionMin0000ns
Output Enable Low to Wait ValidMax14141418ns
Output Enable High to Output TransitionMin0000ns
Output Enable High to Output Hi-ZMax20202020ns
Address Valid to Latch Enable High Min10101010ns
Chip Enable Low to Latch Enable HighMin10101010ns
Latch Enable High to Address TransitionMin10101010ns
Latch Enable Pulse WidthMin10101010ns
Latch Enable Low to Output Valid (Random) Max8590100120ns
Latch Enable High to Output Enable Low Min10101010ns
- t
ELQV
after the fal ling edge of E without increasi ng t
GLQV
M58CR064
8590100120
.
ELQV
Unit
37/70
Page 38
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 12. Synchronous Burst Read AC Waveforms
VALID
tKHQX
tKHQV
NOT VALID
VALID
tKHQX
VALID
tEHQX
tKHQXtKHQV
tEHQZ
tKHKLtKLKH
tEHEL
tKHKH
tGHQZ
tGHQX
tKHTX
tKHTXtKHTV
tEHTZ
Note 2
Note 2
Standby
Valid
Data
Boundary
Crossing
AI90010b
VALID
Hi-Z
DQ0-DQ15
tKHQV
tLLLH
tAVLH
VALID ADDRESS
A0-A21
Note 1
tGLQX
tLLKH
tAVKH
tELKHtKHAX
L
K
E
tGLTV
X LatencyValid Data Flow
tELTV
Address
Latch
Hi-Z
G
WAIT
Note 1. The number of clock cycles to be inserted depends on the X latency set in the Configuration Register.
2. The WAIT signal can be configured to be active during wait state or one cycle before.
3. Address latched and data output on the rising clock edge.
38/70
Page 39
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 13. Single Synchronous Read AC Waveforms
tEHQZ
tEHQX
NOT VALID NOT VALID
NOT VALID
NOT VALID
tEHEL
tGHQZ
tGHQX
AI06232
tEHTZ
VALID NOT VALID
Hi-Z
DQ0-DQ15
tLLLH
tAVLH
VALID ADDRESS
A0-A21
tKHKHtKHKLtKLKH
Note 3
tKHQV
tLLKH
Note 1
tAVKH
tGLQX
tGLQV
tGLTV
tELTV
tELKHtKHAX
Hi-Z
(2)
L
(4)
K
E
G
WAIT
Note 1. The number of clock cycles to be inserted depends on the X latency set in the Configuration Register.
2. The WAIT signal is configured to be active during wait state.
3. WAIT is always deasserted when addressed bank is in Read CFI, Read SR or Read electronic signature mode.
WAIT signals valid data if the addressed bank is in Read Array mode.
4. Address latched and data output on the rising clock edge.
39/70
Page 40
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Table 21. Synchronous Read AC Characteristics
SymbolAltParameter
M58CR064
Unit
859 0100120
Synchronous Read Timings
t
AVKH
t
ELKH
t
ELTV
t
EHEL
t
EHTZ
t
KHAX
t
KHQV
t
KHTV
t
KHQX
t
KHTX
t
LLKH
t
AVCLKH
t
ELCLKH
t
CLKHAX
t
CLKHQV
t
CLKHQX
t
ADVLCLKH
Address Valid to Clock HighMin7777ns
Chip Enable Low to Clock HighMin7777ns
Chip Enable Low to Wait ValidMax14141418ns
Chip Enable Pulse Width
(subsequent synchronous reads)
Chip Enable High to Wait Hi-ZMax20202020ns
Clock High to Address TransitionMin10101010ns
Clock High to Output Valid
Clock High to WAIT Valid
Clock High to Output Transition
Clock High to WAIT Transition
Latch Enable Low to Clock HighMin7777ns
Clock Period (f=40MHz)Min25ns
t
KHKH
t
CLK
Clock Period (f=54MHz)Min181818ns
t
KHKL
t
KLKH
Clock Specifications
Note: 1. Sampled only, not 100% tested.
2. For other tim in gs please ref er to Table 20, Asynchr onous Read AC Charact eristics.
t
CLKHCLKL
t
CLKLCLKH
Clock High to Clock LowMin5555ns
Clock Low to Clock HighMax5555ns
Min20202020ns
Max14141418ns
Min4444ns
40/70
Page 41
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 14. Write AC Waveforms, Write Enable Controlled
AI90011b
VALID ADDRESS
PROGRAM OR ERASE
tWHAV
tWHAX
tAVAV
VALID ADDRESSA0-A21
tAVWH
tWHGL
tELQV
tWHQV
tWHEL
tQVWPL
STATUS REGISTER
tWHWPL
tQVVPL
READ
1st POLLING
STATUS REGISTER
tWHVPL
tWHKV
OR DATA INPUT
tLHAX
tLLLH
BANK ADDRESS
tAVLH
L
tWHLL
tELLH
E
tELWLtWHEH
G
tWHWL
tGHWL
W
tWHDX
tWLWH
tDVWH
tWPHWH
DQ0-DQ15COMMANDCMD or DATA
WP
tVPHWH
PP
V
SET-UP COMMANDCONFIRM COMMAND
K
41/70
Page 42
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Table 22. Write AC Characteristics, Write Enable Controlled
SymbolAltParameter
M58CR064
Unit
859010012 0
t
AVAV
t
AVLH
t
AVWH
t
DVWH
t
ELLH
t
ELWL
t
ELQV
t
GHWL
t
LHAX
t
LLLH
t
WHAV
t
WHAX
t
WHDX
t
WHEH
Write Enable Controlled Timings
t
WHEL
t
WHGL
t
WHLL
t
WHKV
t
WHWLtWPH
t
WHQV
t
WLWHtWP
t
QVVPL
t
QVWPL
t
VPHWHtVPSVPP
t
WHVPL
t
WHWPL
Protection Timings
t
WPHWH
Note: 1. Sampled only, not 100% tested.
2. t
WHEL
software No-Op i nstructi on to dela y the firs t read in the sam e bank aft er issuin g a command. If the read operatio n i s in a d i fferent
bank t
t
Address Valid to Next Address ValidMin8590100120ns
WC
Address Valid to Latch Enable HighMin10101010ns
t
Address Valid to Write Enable HighMin60606060ns
WC
t
Input Valid to Write Enable HighMin40404040ns
DS
Chip Enable Low to Latch Enable HighMin10101010ns
t
Chip Enable Low to Write Enable LowMin0000ns
CS
Chip Enable Low to Output ValidMin8590100120ns
Output Enable High to Write Enable LowMin20202020ns
Latch Enable High to Address TransitionMin10101010ns
Latch Enable Pulse WidthMin10101010ns
Write Enable High to Address ValidMin0000ns
t
Write Enable High to Address TransitionMin0000ns
AH
t
Write Enable High to Input TransitionMin0000ns
DH
t
Write Enable High to Chip Enable HighMin0000ns
CH
(2)
Write Enable High to Chip Enable LowMin50505050ns
Write Enable High to Output Enable LowMin0000ns
Write Enable High to Latch Enable LowMin0000ns
Write Enable High to Clock ValidMin25252525ns
Write Enable High to Write Enable LowMin30303030ns
Write Enable High to Output ValidMin105110120140ns
Write Enable Low to Write Enable HighMin50505050ns
Output (Status Register) Valid to VPP Low
Output (Status Register) Valid to Write Protect LowMin0000ns
High to Write Enable High
Write Enable High to VPP Low
Write Enable High to Write Protect LowMin200200200200ns
Write Protect High to Write Enable HighMin200200200200ns
has the values show n when reading in the targeted bank. System designe rs should take this i nto accou nt and may i nsert a
is 0ns.
WHEL
Min0000ns
Min200200200200ns
Min20 02 00200200ns
42/70
Page 43
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 15. Write AC Waveforms, Chip Enable Controlled
AI90012b
VALID ADDRESS
PROGRAM OR ERASE
tEHAX
tAVAV
VALID ADDRESSA0-A21
tAVEH
tEHGL
tELQV
tWHEL
tQVWPL
STATUS REGISTER
tEHWPL
tQVVPL
READ
1st POLLING
STATUS REGISTER
tEHVPL
tWHKV
OR DATA INPUT
tLHAX
tLLLH
BANK ADDRESS
tAVLH
L
tEHWH
tELLH
WP
tVPHEH
PP
V
SET-UP COMMANDCONFIRM COMMAND
K
tWPHEH
tEHEL
tWLEL
W
tGHEL
G
tEHDX
tELEH
tDVEH
E
DQ0-DQ15COMMANDCMD or DATA
43/70
Page 44
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Table 23. Write AC Characteristics, Chip Enable Controlled
SymbolAltParameter
M58CR064
Unit
8590100120
t
AVAV
t
AVEH
t
AVLH
t
DVEH
t
EHAX
t
EHDX
t
EHELtWPH
t
EHGL
t
EHWH
t
ELEH
t
ELLH
t
ELQV
Chip Enable Controlled Timings
t
GHEL
t
LHAX
t
LLLH
t
WHEL
t
WHKV
t
WLEL
t
EHVPL
t
EHWPL
t
QVVPL
t
QVWPL
t
VPHEHtVPSVPP
Protection Timings
t
WPHEH
Note: 1. Sampled only, not 100% tested.
2. t
WHEL
software No-Op i nstructi on to dela y the firs t read in the sam e bank aft er issuin g a command. If the read operatio n i s in a d i fferent
bank t
t
Address Valid to Next Address ValidMin8590100120ns
WC
t
Address Valid to Chip Enable HighMin60606060ns
WC
Address Valid to Latch Enable HighMin10101010ns
t
Input Valid to Write Enable HighMin40404040ns
DS
t
Chip Enable High to Address TransitionMin0000ns
AH
t
Chip Enable High to Input TransitionMin0000ns
DH
Chip Enable High to Chip Enable LowMin30303030ns
Chip Enable High to Output Enable LowMin0000ns
t
Chip Enable High to Write Enable HighMin0000ns
CH
t
Chip Enable Low to Chip Enable HighMin60606060ns
WP
Chip Enable Low to Latch Enable HighMin10101010ns
Latch Enable Low to Output ValidMin8590100120ns
Output Enable High to Chip Enable LowMin20202020ns
Latch Enable High to Address TransitionMin10101010ns
Latch Enable Pulse WidthMin10101010ns
(2)
Write Enable High to Chip Enable LowMin50505050ns
Write Enable High to Clock ValidMin25252525ns
t
Write Enable Low to Chip Enable LowMin0000ns
CS
Chip Enable High to VPP Low
Chip Enable High to Write Protect LowMin200200200200ns
Output (Status Register) Valid to VPP Low
Output (Status Register) Valid to Write Protect Low Min0000ns
High to Chip Enable High
Write Protect High to Chip Enable HighMin200200200200ns
has the values show n when reading in the targeted bank. System designe rs should take this i nto accou nt and may i nsert a
is 0ns.
WHEL
Min200200200200ns
Min0000ns
Min200200200200ns
44/70
Page 45
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 16. Reset and Power-up AC Waveforms
W,RPE, G,
VDD, VDDQ
L
tVDHPHtPLPH
Power-UpReset
tPLWL
tPLEL
tPLGL
tPLLL
Table 24. Reset and Power-up AC Characteristics
SymbolParameterTest Condition859010 0120Unit
t
PLWL
t
PLEL
t
PLGL
t
PLLL
t
PLPH
t
VDHPH
Note: 1. The devi ce Reset is possible but not guaranteed if t
Devices are shipped from the factory with the memory content bits erased to ’1’.
For a list of available options (Speed, Package, etc.) or for further information on any aspect of this device,
please contact the ST Sales Office nearest to you.
49/70
Page 50
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
APPENDIX A. BLOCK ADDRESS TABLES
Table 28. Top Boot Block Addresses,
M58CR064C, M58CR064P
The Common Flash Interface is a JEDEC approved, standardized data structure that can be
read from the Flash memory device. It allows a
system software to query the device to det ermine
various electrical and t iming parameters, density
information and functions supported by the memory. The system can interface easily with the device, enabling the software to upgrade itself when
necessary.
When the Read CFI Query Command is issued
the device enters CFI Query mode and the data
structure is read from the memory. Tables 30 , 31,
Table 30. Query Structure Overview
OffsetSub-section NameDescription
00hReservedReserved for algorithm-specific information
10hCFI Query Identification StringCommand set ID and algorithm data offset
1BhSystem Interface InformationDevice timing & voltage information
27hDevice Geometry DefinitionFlash device layout
Note: The F l ash memory displ ay the CFI data structure when CFI Query command i s issued. In t hi s table are listed th e main sub-sections
detailed in Tables 31, 32, 33, 34 and 35. Query data is always presented on t he l owest orde r data outputs.
32, 33, 34 and 35 show the addresses used to retrieve the data. The Query data is always presented on the lowest order da ta outputs (DQ0-DQ7 ),
the other outputs (DQ8-DQ15) are set to 0.
The CFI data structure also contains a security
area where a 64 bit unique security number is written (see Figure 5, Security Block and Protection
Register Memory Map). Thi s area c an be ac cessed only in Read mode by the final user. It is impossible to change the security number after it has
been written by ST. Issue a Read Array command
to return to Read mode.
Additional information specific to the Primary
Algorithm (optional)
Additional information specific to the Alternate
Algorithm (optional)
Lock Protection Register
Unique device Number and
User Programmable OTP
Table 31. CFI Query Identification String
OffsetSub-section NameDescriptionValue
00h0020hManufacturer CodeST
88CAh
01h
02hreservedReserved
03hreservedReserved
04h-0FhreservedReserved
10h0051h
11h0052h"R"
12h0059h"Y"
13h0003h
14h0000h
15hoffset = P = 0039h
16h0000h
17h0000h
18h0000h
19hvalue = A = 0000h
1Ah0000h
88CBh
8801h
8802h
Device Code (M58CR064C/D/P/Q)
Query Unique ASCII String "QRY"
Primary Algorithm Command Set and Control Interface ID code 16
bit ID code defining a specific algorithm
Address for Primary Algorithm extended Query table (see Table 33)p = 39h
Alternate Vendor Command Set and Control Interface ID Code
second vendor - specified algorithm supported
Address for Alternate Algorithm extended Query tableNA
Top
Bottom
"Q"
NA
54/70
Page 55
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Table 32. CFI Query System Interface Information
OffsetDataDescriptionValue
V
Logic Supply Minimum Program/Erase or Write voltage
bit 7 to 4BCD value in volts
bit 3 to 0BCD value in 100 millivolts
Logic Supply Maximum Program/Erase or Write voltage
V
DD
bit 7 to 4BCD value in volts
bit 3 to 0BCD value in 100 millivolts
V
[Programming] Supply Minimum Program/Erase voltage
PP
bit 7 to 4HEX value in volts
bit 3 to 0BCD value in 100 millivolts
[Programming] Supply Maximum Program/Erase voltage
V
PP
bit 7 to 4HEX value in volts
bit 3 to 0BCD value in 100 millivolts
Typical time-out per single byte/word program = 2
Typical time-out for quadruple word program = 2
Typical time-out per individual block erase = 2
Typical time-out for full chip erase = 2
Maximum time-out for word program = 2
n
ms
n
times typical
Maximum time-out for quadruple word = 2
Maximum time-out per individual block erase = 2
Maximum time-out for chip erase = 2
n
times typical
n
µs
n
µs
n
ms
n
times typical
n
times typical
1.7V
2.0V
1.7V
12V
16µs
8µs
1s
NA
128µs
128µs
4s
NA
Table 33. Device Geometry Definition
Offset Word
Mode
27h0017h
28h
29h
2Ah
2Bh
2Ch0002hNumber of identical sized erase block regions within the device
2Dh
2Eh
2Fh
30h
31h
32h
33h
M58CR064C/P
34h
35h
38h
DataDescriptionValue
n
in number of bytes
0001h
0000h
0003h
0000h
Device Size = 2
Flash Device Interface Code description
Maximum number of bytes in multi-byte program or page = 2
bit 7 to 0 = x = number of Erase Block Regions
007Eh
0000h
0000h
0001h
0007h
0000h
0020h
0000h
Region 1 Information
Number of identical-size erase blocks = 007Eh+1
Region 1 Information
Block size in Region 1 = 0100h * 256 byte
Region 2 Information
Number of identical-size erase blocks = 000Eh+1
Region 2 Information
Block size in Region 2 = 0020h * 256 byte
0000hReserved for future erase block region informationNA
8 MByte
x16
Async.
n
8 Byte
2
127
64 KByte
8
8 KByte
55/70
Page 56
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Offset Word
Mode
2Dh
2Eh
2Fh
30h
31h
32h
33h
M58CR064D/Q
34h
35h
38h
DataDescriptionValue
0007h
0000h
0020h
0000h
007Eh
0000h
0000h
0001h
0000hReserved for future erase block region informationNA
Region 1 Information
Number of identical-size erase block = 0007h+1
Region 1 Information
Block size in Region 1 = 0020h * 256 byte
Region 2 Information
Number of identical-size erase block = 007Eh+1
Region 2 Information
Block size in Region 2 = 0100h * 256 byte
8 KByte
64 KByte
Table 34. Primary Algorithm-Specific Extended Qu ery Ta bl e
OffsetDataDescriptionValue
(P)h = 39h0050h
0052h"R"
0049h"I"
(P+3)h = 3Ch0031hMajor version number, ASCII"1"
(P+4)h = 3Dh0030hMinor version number, ASCII"0"
(P+5)h = 3Eh00E6hExtended Query table contents for Primary Algorithm. Address (P+5)h
bit 0Chip Erase supported(1 = Yes, 0 = No)
bit 1Erase Suspend supported(1 = Yes, 0 = No)
bit 2Program Suspend supported(1 = Yes, 0 = No)
bit 3Legacy Lock/Unlock supported(1 = Yes, 0 = No)
bit 4Queued Erase supported(1 = Yes, 0 = No)
bit 5Instant individual block locking supported (1 = Yes, 0 = No)
bit 6Protection bits supported(1 = Yes, 0 = No)
bit 7Page mode read supported(1 = Yes, 0 = No)
bit 8Synchronous read supported(1 = Yes, 0 = No)
bit 9Simultaneous operation supported(1 = Yes, 0 = No)
bit 10 to 31 Reserved; undefined bits are ‘0’. If bit 31 is ’1’ then another 31
bit field of optional features follows at the end of the bit-30
field.
8
127
"P"
No
Yes
Yes
No
No
Yes
Yes
Yes
Yes
Yes
(P+9)h = 42h0001hSupported Functions after Suspend
(P+A)h = 43h0003hBlock Protect Status
(P+B)h = 44h0000h
(P+C)h = 45h0018h
56/70
Read Array, Read Status Register and CFI Query
bit 0Program supported after Erase Suspend (1 = Yes, 0 = No)
bit 7 to 1Reserved; undefined bits are ‘0’
Defines which bits in the Block Status Register section of the Query are
implemented.
bit 0Block protect Status Register Lock/Unlock
bit active(1 = Yes, 0 = No)
bit 1Block Lock Status Register Lock-Down bit active (1 = Yes, 0 = No)
bit 15 to 2Reserved for future use; undefined bits are ‘0’
Logic Supply Optimum Program/Erase voltage (highest performance)
V
DD
bit 7 to 4HEX value in volts
bit 3 to 0BCD value in 100 mV
bit 7 to 4HEX value in volts
bit 3 to 0BCD value in 100 mV
bits 0-7’n’ such that 2
page bytes. See offset 28h for device word width to
determ ine page-m ode data outpu t width.
bit 3-7Reserved
bit 0-2’n’ such that 2
number of continuous synchronous reads when the device is
configured for its maximum word width. A value of 07h
indicates that the device is capable of continuous linear bursts
that will output data until the internal burst counter reaches
the end of the device’s burstable address space. This field’s
3-bit value can be written directly to the read configuration
register bit 0-2 if the device is configured for its maximum
word width. See offset 28h for word width to determine the
burst data output width.
writeToFlash (addressToProgram1, dataToProgram1) ;
/*see note (3) */
writeToFlash (addressToProgram2, dataToProgram2) ;
/*see note (3) */
/*Memory enters read status state after
the Program command*/
do {
status_register=readFlash (bank_address) ;
/* E or G must be toggled*/
} while (status_register.b7== 0) ;
if (status_register.SR3==1) /*VPP invalid error */
error_handler ( ) ;
if (status_register.SR4==1) /*program error */
error_handler ( ) ;
YES
NO
SR1 = 0
YES
End
Note: 1. Status check of b1 (Protected Blo ck ), b3 (VPP Invalid) and b4 (Program Error) ca n be made after eac h program operation or after
a sequence.
2. If an error is found, the Stat us Register must be cl eared before furthe r Program/E rase ope rations.
3. Address 1 an d Address 2 mus t be consec utive addresses differing only for bit A0.
Program to Protected
Block Error (1, 2)
if (status_register.SR1==1) /*program to protect block error */
error_handler ( ) ;
}
AI06171
59/70
Page 60
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 22. Qua dr upl e Word Program Fl owchart and Pseudo Code
/* read status register to check if
program has already completed */
do {
status_register=readFlash (bank_address) ;
/* E or G must be toggled*/
SR7 = 1
YES
SR2 = 1
YES
Write FFh
Read data from
another address
Write D0h
Program Continues
NO
NO
Program Complete
Write FFh
Read Data
} while (status_register.SR7== 0) ;
if (status_register.SR2==0) /*program completed */
{ writeToFlash (bank_address, 0xFF) ;
read_data ( ) ; /*read data from another block*/
/*The device returns to Read Array
(as if program/erase suspend was not issued).*/
}
else
{ writeToFlash (bank_address, 0xFF) ;
read_data ( ); /*read data from another address*/
writeToFlash (any_address, 0xD0) ;
/*write 0xD0 to resume program*/
}
}
writeToFlash (bank_address, 0x70) ;
/* read status register to check if
erase has already completed */
do {
status_register=readFlash (bank_address) ;
/* E or G must be toggled*/
} while (status_register.SR7== 0) ;
if (status_register.SR6==0) /*erase completed */
{ writeToFlash (bank_address, 0xFF) ;
read_data ( ) ;
/*read data from another block*/
/*The device returns to Read Array
(as if program/erase suspend was not issued).*/
}
else
{ writeToFlash (bank_address, 0xFF) ;
read_program_data ( );
/*read or program data from another address*/
writeToFlash (bank_address, 0xD0) ;
/*write 0xD0 to resume erase*/
}
}
AI06175
63/70
Page 64
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Figure 26. Lo ck i ng Ope rations Fl ow c hart and Pseud o C od e
1/08/01-03Reset AC Characteristics clarification (Table 24)
Reset AC Waveforms diagram change (Figure 1)
3/02/01-04Document type: from Target Specification to Product Preview
Read Status Register clarification
Read Electronic Signature clarification
Protection Register Program clarification
Write Configuration Register clarification
Wait Configuration Sequence change (Figure 7)
CFI Query System Interface clarification (Table 32)
CFI Device Geometry change (Table 33)
Asynchronous Read AC Waveforms change (Figure 10)
Page Read AC Waveforms added (Figure 11)
Write AC Waveforms W Contr. and E Contr. change (Figure 14, 15)
Reset and Power-up AC Characteristics and Waveform change (Table 24, Figure 1)
TFBGA Package Mechanical Data and Outline added (Table 25, Figure 17)
4/05/01-05TFBGA Connections change
X-Latency Configuration Sequence change
Reset and Power-up AC Characteristics clarification
clarification
V
DDQ
23-Jul-2001-06Complete rewrite and restructure
23-Oct-2001-0785ns speed class added, document classified as Preliminary Data
15-Mar-2002-08Part numbers M58CR064P/Q added. CFI information clarified: Table 31,data
modified at Offset 13h. Table 32, data modified at Offsets 20h, 23h, 24h and 25h.
Table 35, Offset addresses modified. DC Characteristics table modified, Program,
Erase Times and Program, Erase Endurance Cycles table modified.
23-May-2002-09Document changed to new structure
27-Aug-20029.1Revision numbering modified: a minor revision will be indicated by incrementing the
digit after the dot, and a major revision, by incrementing the digit before the dot.
(revision version 09 equals 9.0).
Document status changed from Preliminary Data to Datasheet.
Minimum V
DD
and V
supply voltages for 85ns speed class changed to 1.8V in
DDQ
Table16, Operating and AC Measurement Conditions.
68/70
Page 69
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
DateVersionRevision Details
24-Feb-20039.2Revision History moved to end of document.
90ns Speed Class added. Bank Erase Command moved to Factory Program
Commands section. Bank Erase cycles limited to 100 per Block.
signal modified in Figure 7, Wait Configuration Example. WAIT behavior
WAIT
modified. Burst sequence in wrapped configuration and Burst sequence start
specified in Synchronous Burst Read Mode paragraph. Erase replaced by Block
Erase in Tables 11 and 12, Dual Operations allowed in Other Bank and in Same
Bank, respectively. Latch signal corrected in Figure 11, Asynchronous Page Read
AC Waveforms. Daisy Chain added.
06-Jun-20039.3V
and V
DD
and AC Measurement Conditions. Minor text changes.
minimum values changed for 90ns speed class in T able 16, Operating
DDQ
69/70
Page 70
M58CR064C, M58CR064D, M58CR064P, M58CR064Q
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implic ation or o therwise under any patent or patent rights of STMicroelectronics. Specifications menti oned in th i s publicati on ar e subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as c ri t i cal components in life support dev i ces or systems without express writ t en approval of STMicro el ectronics.
The ST log o i s registered tradem ark of STMicroelectronics
All other nam es are the property of th ei r respect ive owners