M95320-MB3
M95320 M95320-W M95320-R M95320-S M95640 M95640-W M95640-R M95640-S
32Kbit and 64Kbit Serial SPI Bus EEPROMs With High Speed Clock
FEATURES SUMMARY
■Compatible with SPI Bus Serial Interface (Positive Clock SPI Modes)
■Single Supply Voltage:
–4.5 to 5.5V for M95320 and M95640
–2.5 to 5.5V for M95320-W and M95320-W
–1.8 to 5.5V for M95320-R and M95640-R
–1.65 to 5.5V for M95320-S and M95640-S
■20MHz, 10MHz, 5MHz or 2MHz clock rates
■5ms or 10ms Write Time
■Status Register
■Hardware Protection of the Status Register
■BYTE and PAGE WRITE (up to 32 Bytes)
■Self-Timed Programming Cycle
■Adjustable Size Read-Only EEPROM Area
■Enhanced ESD Protection
■More than 100000 or 1 million Erase/Write Cycles (depending on ordering options)
■More than 40-Year Data Retention
Table 1. Product List
Reference |
Part Number |
M95320
M95320-W
M95320
M95320-R
M95320-S
M95640
M95640-W
M95640
M95640-R
M95640-S
Figure 1. Packages
8
1
PDIP8 (BN) 0.25 mm frame
8
1
SO8 (MN) 150 mil width
TSSOP8 (DW) 169 mil width
MLP8 (MB) 2x3 mm
May 2005 |
1/42 |
M95640, M95320
TABLE OF CONTENTS
FEATURES SUMMARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table 1. Product List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 1. Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
SUMMARY DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Table 2. How to Identify Previous, Current and New Products by the Process Identification Letter 5 Figure 2. Logic Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Figure 3. 8 Pin Package Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Table 3. Signal Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
SIGNAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Serial Data Output (Q). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Serial Data Input (D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Serial Clock (C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Chip Select (S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Hold (HOLD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Write Protect (W) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
CONNECTING TO THE SPI BUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 4. Bus Master and Memory Devices on the SPI Bus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
SPI Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 5. SPI Modes Supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
OPERATING FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Power-Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Power On Reset: VCC Lock-Out Write Protect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Power-down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Active Power and Standby Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Hold Condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 6. Hold Condition Activation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
WIP bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 WEL bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 BP1, BP0 bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 SRWD bit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Table 4. Status Register Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Data Protection and Protocol Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 5. Write-Protected Block Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
MEMORY ORGANIZATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2/42
M95640, M95320
Figure 7. Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 6. Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Write Enable (WREN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 8. Write Enable (WREN) Sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Write Disable (WRDI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 9. Write Disable (WRDI) Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Read Status Register (RDSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
WIP bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 WEL bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 BP1, BP0 bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 SRWD bit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Figure 10.Read Status Register (RDSR) Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Write Status Register (WRSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 7. Protection Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Table 8. Address Range Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Figure 11.Write Status Register (WRSR) Sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Read from Memory Array (READ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 12.Read from Memory Array (READ) Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Write to Memory Array (WRITE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 13.Byte Write (WRITE) Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Figure 14.Page Write (WRITE) Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
POWER-UP AND DELIVERY STATE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Power-up State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
INITIAL DELIVERY STATE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
MAXIMUM RATING. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 9. Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
DC AND AC PARAMETERS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 10. Operating Conditions (M95320 and M95640) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table 11. Operating Conditions (M95320-W and M95640-W) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table 12. Operating Conditions (M95320-R and M95640-R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table 13. Operating Conditions (M95320-S and M95640-S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table 14. AC Measurement Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Figure 15.AC Measurement I/O Waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Table 15. Capacitance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Table 16. DC Characteristics (M95320 and M95640, Device Grade 6) . . . . . . . . . . . . . . . . . . . . . 24 Table 17. DC Characteristics (M95320 and M95640, Device Grade 3) . . . . . . . . . . . . . . . . . . . . . 25 Table 18. DC Characteristics (M95320-W and M95640-W, Device Grade 6) . . . . . . . . . . . . . . . . . 26 Table 19. DC Characteristics (M95320-W and M95640-W, Device Grade 3) . . . . . . . . . . . . . . . . . 27 Table 20. DC Characteristics (M95320-R and M95640-R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Table 21. DC Characteristics (M95320-S and M95640-S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3/42
M95640, M95320
Table 22. AC Characteristics (M95320 and M95640, Device Grade 6). . . . . . . . . . . . . . . . . . . . . . 28 Table 23. AC Characteristics (M95320 and M95640, Device Grade 3). . . . . . . . . . . . . . . . . . . . . . 29 Table 24. AC Characteristics (M95320-W and M95640-W, Device Grade 6) . . . . . . . . . . . . . . . . . 30 Table 25. AC Characteristics (M95320-W and M95640-W, Device Grade 3) . . . . . . . . . . . . . . . . . 31 Table 26. AC Characteristics (M95320-R and M95640-R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Table 27. AC Characteristics (M95320-S and M95640-S, Device Grade 3) . . . . . . . . . . . . . . . . . . 33 Figure 16.Serial Input Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Figure 17.Hold Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Figure 18.Output Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
PACKAGE MECHANICAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 19.PDIP8 – 8 pin Plastic DIP, 0.25mm lead frame, Package Outline . . . . . . . . . . . . . . . . . 36 Table 28. PDIP8 – 8 pin Plastic DIP, 0.25mm lead frame, Package Mechanical Data . . . . . . . . . . 36 Figure 20.SO8 narrow – 8 lead Plastic Small Outline, 150 mils body width, Package Outline . . . . 37 Table 29. SO8 narrow – 8 lead Plastic Small Outline, 150 mils body width, Package Mechanical Data 37
Figure 21.TSSOP8 – 8 lead Thin Shrink Small Outline, Package Outline . . . . . . . . . . . . . . . . . . . 38 Table 30. TSSOP8 – 8 lead Thin Shrink Small Outline, Package Mechanical Data . . . . . . . . . . . . 38 Figure 22.MLP8 - 8-lead Ultra thin Fine pitch Dual Flat No Lead, Package Outline . . . . . . . . . . . . 39 Table 31. MLP8 - 8-lead Ultra thin Fine pitch Dual Flat No Lead, Package Mechanical Data . . . . 39
PART NUMBERING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Table 32. Ordering Information Scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
REVISION HISTORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Table 33. Document Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4/42
M95640, M95320
SUMMARY DESCRIPTION
These electrically erasable programmable memory (EEPROM) devices are accessed by a high speed SPI-compatible bus.
The M95320, M95320-W, M95320-R and M95320-S are 32Kbit devices organized as 4096 x 8 bits. The M95640, M95640-W, M95640-R and M95640-S are 64Kbit devices organized as 8192 x 8 bits.
The device is accessed by a simple serial interface that is SPI-compatible. The bus signals are C, D and Q, as shown in Table 3. and Figure 2..
The device is selected when Chip Select (S) is taken Low. Communications with the device can be interrupted using Hold (HOLD).
The devices are available in three different versions identified by a specific marking (see Table 2.).
Table 2. How to Identify Previous, Current and New Products by the Process Identification Letter
|
Markings on |
Markings on |
Markings on |
|
Devices Root Part Numbers |
Previous |
Current |
New |
|
|
Products1 |
Products1 |
Products1 |
|
M95320, M95640, M95320-W, M95640-W |
xxxxS |
xxxxV |
xxxxP |
|
Device Grade 6 |
||||
|
|
|
||
|
|
|
|
|
M95320, M95640, M95320-W, M95640-W Device Grade 3 |
xxxxS |
xxxxB |
xxxxP |
|
|
|
|
|
|
M95320-R, M95640-R |
- |
- |
xxxxP |
|
|
|
|
|
|
M95320-S, M95640-S |
- |
- |
xxxxP |
|
|
|
|
|
Note: 1. For further information, please ask your ST Sales Office for Process Change Notices.
Figure 2. Logic Diagram
|
VCC |
D |
Q |
C |
|
S |
M95xxx |
W |
|
HOLD |
|
|
VSS |
AI01789C
Figure 3. 8 Pin Package Connections
|
|
|
|
M95xxx |
|
|
|
|
|
1 |
8 |
VCC |
|||
|
|
S |
|
||||
|
Q |
2 |
7 |
HOLD |
|
||
|
|
|
|
|
|
||
W |
3 |
6 |
C |
||||
VSS |
4 |
5 |
D |
||||
|
|
|
|
|
AI01790D |
|
|
Note: 1. See PACKAGE MECHANICAL section for package dimensions and how to identify pin-1.
2. NC, Not Connected.
Table 3. Signal Names
|
|
C |
|
Serial Clock |
|||
|
|
|
|
|
|||
|
|
D |
|
Serial data Input |
|||
|
|
|
|
|
|||
|
|
Q |
|
Serial data Output |
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Chip Select |
|
|
|
S |
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
Write Protect |
|
|
W |
|
|
|||
|
|
|
|
||||
|
|
|
|
|
|
|
Hold |
|
HOLD |
|
|||||
|
|
|
|
||||
|
VCC |
|
Supply Voltage |
||||
|
VSS |
|
Ground |
5/42
M95640, M95320
SIGNAL DESCRIPTION
During all operations, VCC must be held stable and within the specified valid range: VCC(min) to VCC(max).
All of the input and output signals must be held High or Low (according to voltages of VIH, VOH, VIL or VOL, as specified in Table 16. to Table 20.). These signals are described next.
Serial Data Output (Q). This output signal is used to transfer data serially out of the device. Data is shifted out on the falling edge of Serial Clock (C).
Serial Data Input (D). This input signal is used to transfer data serially into the device. It receives instructions, addresses, and the data to be written. Values are latched on the rising edge of Serial Clock (C).
Serial Clock (C). This input signal provides the timing of the serial interface. Instructions, addresses, or data present at Serial Data Input (D) are latched on the rising edge of Serial Clock (C). Data on Serial Data Output (Q) changes after the falling edge of Serial Clock (C).
Chip Select (S). When this input signal is High, the device is deselected and Serial Data Output
(Q) is at high impedance. Unless an internal Write cycle is in progress, the device will be in the Standby Power mode. Driving Chip Select (S) Low selects the device, placing it in the Active Power mode.
After Power-up, a falling edge on Chip Select (S) is required prior to the start of any instruction.
Hold (HOLD). The Hold (HOLD) signal is used to pause any serial communications with the device without deselecting the device.
During the Hold condition, the Serial Data Output
(Q) is high impedance, and Serial Data Input (D) and Serial Clock (C) are Don’t Care.
To start the Hold condition, the device must be selected, with Chip Select (S) driven Low.
Write Protect (W). The main purpose of this input signal is to freeze the size of the area of memory that is protected against Write instructions (as specified by the values in the BP1 and BP0 bits of the Status Register).
This pin must be driven either High or Low, and must be stable during all write operations.
6/42
M95640, M95320
CONNECTING TO THE SPI BUS
These devices are fully compatible with the SPI protocol.
All instructions, addresses and input data bytes are shifted in to the device, most significant bit first. The Serial Data Input (D) is sampled on the first rising edge of the Serial Clock (C) after Chip Select (S) goes Low.
All output data bytes are shifted out of the device, most significant bit first. The Serial Data Output
(Q) is latched on the first falling edge of the Serial Clock (C) after the instruction (such as the Read from Memory Array and Read Status Register instructions) have been clocked into the device.
Figure 4. shows three devices, connected to an MCU, on a SPI bus. Only one device is selected at a time, so only one device drives the Serial Data Output (Q) line at a time, all the others being high impedance.
Figure 4. Bus Master and Memory Devices on the SPI Bus
|
|
|
|
|
|
|
|
|
|
|
|
VCC |
|
|
|
SDO |
|
|
|
|
|
|
|
|
|
SPI Interface with |
SDI |
|
|
|
|
|
|
|
|
|
||
(CPOL, CPHA) = |
|
|
|
|
|
|
|
|
|
|||
SCK |
|
|
|
|
|
|
|
|
|
|||
(0, 0) or (1, 1) |
|
|
|
|
|
|
|
|
|
|
||
Bus Master |
|
C Q D VCC |
|
C Q D |
|
VCC |
|
C Q D VCC |
||||
|
|
|
|
|
|
|
|
|
|
|||
(ST6, ST7, ST9, |
|
|
|
|
|
|
|
|
|
|
||
ST10, Others) |
|
|
|
|
|
|
|
|
|
|
||
|
|
|
R |
SPI Memory |
R |
|
SPI Memory |
R |
|
SPI Memory |
||
|
|
|
|
Device |
|
|
Device |
|
|
|
Device |
|
CS3 |
CS2 |
CS1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
S |
W |
HOLD |
S |
W |
HOLD |
S |
W |
HOLD |
|
|
|
|
|
|
|
|
|
|
|
|
|
AI03746e |
Note: The Write Protect (W) and Hold (HOLD) signals should be driven, High or Low as appropriate.
7/42
M95640, M95320
SPI Modes
These devices can be driven by a microcontroller with its SPI peripheral running in either of the two following modes:
–CPOL=0, CPHA=0
–CPOL=1, CPHA=1
For these two modes, input data is latched in on the rising edge of Serial Clock (C), and output data
is available from the falling edge of Serial Clock
(C).
The difference between the two modes, as shown in Figure 5., is the clock polarity when the bus master is in Stand-by mode and not transferring data:
–C remains at 0 for (CPOL=0, CPHA=0)
–C remains at 1 for (CPOL=1, CPHA=1)
Figure 5. SPI Modes Supported
CPOL |
CPHA |
|
|
0 |
0 |
C |
|
1 |
1 |
C |
|
|
|
D |
MSB |
|
|
Q |
MSB |
|
|
|
AI01438B |
8/42
M95640, M95320
OPERATING FEATURES
Power-Up
When the power supply is turned on, VCC rises from VSS to VCC.
During this time, the Chip Select (S) must be allowed to follow the VCC voltage. It must not be allowed to float, but should be connected to VCC via a suitable pull-up resistor.
As a built in safety feature, Chip Select (S) is edge sensitive as well as level sensitive. After Powerup, the device does not become selected until a falling edge has first been detected on Chip Select
(S). This ensures that Chip Select (S) must have been High, prior to going Low to start the first operation.
Power On Reset: VCC Lock-Out Write Protect
In order to prevent inadvertent Write operations during Power-up, each device include a Power On Reset (POR) circuit. At Power-up, the device will not respond to any instruction until VCC has reached the Power On Reset threshold voltage. This threshold is lower than the VCC min operating voltage defined in Tables 10, 11, 12 and 13.
Similarly, as soon as VCC drops from the normal operating voltage, below the Power On Reset threshold voltage, the device stops responding to any instruction sent to it.
Prior to selecting and issuing instructions to the memory, a valid stable VCC voltage must be applied. This voltage must remain stable and valid until the end of the transmission of the instruction and, for a Write instruction, until the completion o the internal write cycle (tW).
Power-down
At Power-down, the device must be deselected. Chip Select (S) should be allowed to follow the voltage applied on VCC.
Active Power and Standby Power Modes
When Chip Select (S) is Low, the device is selected, and in the Active Power mode. The device consumes ICC, as specified in Table 16. to Table 20..
When Chip Select (S) is High, the device is deselected. If an Erase/Write cycle is not currently in progress, the device then goes in to the Standby Power mode, and the device consumption drops to ICC1.
Hold Condition
The Hold (HOLD) signal is used to pause any serial communications with the device without resetting the clocking sequence.
During the Hold condition, the Serial Data Output
(Q) is high impedance, and Serial Data Input (D) and Serial Clock (C) are Don’t Care.
To enter the Hold condition, the device must be selected, with Chip Select (S) Low.
Normally, the device is kept selected, for the whole duration of the Hold condition. Deselecting the device while it is in the Hold condition, has the effect of resetting the state of the device, and this mechanism can be used if it is required to reset any processes that had been in progress.
The Hold condition starts when the Hold (HOLD) signal is driven Low at the same time as Serial Clock (C) already being Low (as shown in Figure 6.).
The Hold condition ends when the Hold (HOLD) signal is driven High at the same time as Serial Clock (C) already being Low.
Figure 6. also shows what happens if the rising and falling edges are not timed to coincide with Serial Clock (C) being Low.
9/42
M95640, M95320
Figure 6. Hold Condition Activation
C
HOLD
Hold |
Hold |
Condition |
Condition |
AI02029D
Status Register
Figure 7. shows the position of the Status Register in the control logic of the device. The Status Register contains a number of status and control bits that can be read or set (as appropriate) by specific instructions.
WIP bit. The Write In Progress (WIP) bit indicates whether the memory is busy with a Write or Write Status Register cycle.
WEL bit. The Write Enable Latch (WEL) bit indicates the status of the internal Write Enable Latch.
BP1, BP0 bits. The Block Protect (BP1, BP0) bits are non-volatile. They define the size of the area to be software protected against Write instructions.
SRWD bit. The Status Register Write Disable (SRWD) bit is operated in conjunction with the Write Protect (W) signal. The Status Register Write Disable (SRWD) bit and Write Protect (W) signal allow the device to be put in the Hardware Protected mode. In this mode, the non-volatile bits of the Status Register (SRWD, BP1, BP0) become read-only bits.
Table 4. Status Register Format
b7 |
|
|
|
|
|
b0 |
||
|
|
|
|
|
|
|
|
|
SRWD |
0 |
0 |
0 |
BP1 |
BP0 |
WEL |
WIP |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Status Register Write Protect
Block Protect Bits
Write Enable Latch Bit
Write In Progress Bit
Data Protection and Protocol Control
Non-volatile memory devices can be used in environments that are particularly noisy, and within applications that could experience problems if memory bytes are corrupted. Consequently, the device features the following data protection mechanisms:
■Write and Write Status Register instructions are checked that they consist of a number of clock pulses that is a multiple of eight, before they are accepted for execution.
■All instructions that modify data must be preceded by a Write Enable (WREN) instruction to set the Write Enable Latch (WEL) bit. This bit is returned to its reset state by the following events:
–Power-up
–Write Disable (WRDI) instruction completion
–Write Status Register (WRSR) instruction completion
–Write (WRITE) instruction completion
■The Block Protect (BP1, BP0) bits allow part of the memory to be configured as read-only. This is the Software Protected Mode (SPM).
■The Write Protect (W) signal allows the Block Protect (BP1, BP0) bits to be protected. This is the Hardware Protected Mode (HPM).
For any instruction to be accepted, and executed, Chip Select (S) must be driven High after the rising edge of Serial Clock (C) for the last bit of the instruction, and before the next rising edge of Serial Clock (C).
Two points need to be noted in the previous sentence:
10/42
M95640, M95320
–The ‘last bit of the instruction’ can be the eighth bit of the instruction code, or the eighth bit of a data byte, depending on the instruction (except for Read Status Register (RDSR) and Read (READ) instructions).
Table 5. Write-Protected Block Size
–The ‘next rising edge of Serial Clock (C)’ might (or might not) be the next bus transaction for some other device on the SPI bus.
Status Register Bits |
|
Array Addresses Protected |
|||
|
|
Protected Block |
|
|
|
BP1 |
BP0 |
M95640, M95640-W, |
M95320, M95320-W, |
||
|
|||||
|
M95640-R, M95640-S |
M95320-R, M95320-S |
|||
|
|
|
|||
|
|
|
|
|
|
0 |
0 |
none |
none |
none |
|
|
|
|
|
|
|
0 |
1 |
Upper quarter |
1800h - 1FFFh |
0C00h - 0FFFh |
|
|
|
|
|
|
|
1 |
0 |
Upper half |
1000h - 1FFFh |
0800h - 0FFFh |
|
|
|
|
|
|
|
1 |
1 |
Whole memory |
0000h - 1FFFh |
0000h - 0FFFh |
|
|
|
|
|
|
11/42
M95640, M95320
MEMORY ORGANIZATION
The memory is organized as shown in Figure 7..
Figure 7. Block Diagram
HOLD |
|
High Voltage |
|
W |
Control Logic |
|
|
Generator |
|
||
|
|
|
|
S |
|
|
|
C |
|
|
|
D |
|
I/O Shift Register |
|
Q |
|
|
|
|
|
|
|
|
Address Register |
Data |
|
|
and Counter |
Register |
|
|
|
Status |
|
|
|
Register |
Size of the |
|
|
|
Read only |
|
|
|
EEPROM |
|
|
|
area |
|
|
Y Decoder |
|
|
|
1 Page |
|
|
|
X Decoder |
|
|
|
|
AI01272C |
12/42
M95640, M95320
INSTRUCTIONS
Each instruction starts with a single-byte code, as summarized in Table 6..
If an invalid instruction is sent (one not contained in Table 6.), the device automatically deselects itself.
Table 6. Instruction Set
Instruc |
Description |
Instruction |
|
tion |
Format |
||
|
|||
|
|
|
|
WREN |
Write Enable |
0000 0110 |
|
|
|
|
|
WRDI |
Write Disable |
0000 0100 |
|
|
|
|
|
RDSR |
Read Status Register |
0000 0101 |
|
|
|
|
|
WRSR |
Write Status Register |
0000 0001 |
|
|
|
|
|
READ |
Read from Memory Array |
0000 0011 |
|
|
|
|
|
WRITE |
Write to Memory Array |
0000 0010 |
|
|
|
|
13/42