S25FL032A 32 Megabit CMOS 3.0 Volt Flash Memory with 50-MHz SPI (Serial Peripheral Interface) Bus Data Sheet S25FL032A Cover Sheet This product has been retired and is not recommended for designs. For new and current designs, S25FL032P supercedes S25FL032A. This is the factory-recommended migration path. Please refer to the S25FL032P data sheet for specifications and ordering information. Availability of this document is retained for reference and historical purposes only. Notice to Readers: This document states the current technical specifications regarding the Spansion product(s) described herein. Each product described herein may be designated as Advance Information, Preliminary, or Full Production. See Notice On Data Sheet Designations for definitions. Publication Number S25FL032A_00 Revision C Amendment 3 Issue Date February 27, 2009 D at a S hee t Notice On Data Sheet Designations Spansion Inc. issues data sheets with Advance Information or Preliminary designations to advise readers of product information or intended specifications throughout the product life cycle, including development, qualification, initial production, and full production. In all cases, however, readers are encouraged to verify that they have the latest information before finalizing their design. The following descriptions of Spansion data sheet designations are presented here to highlight their presence and definitions. Advance Information The Advance Information designation indicates that Spansion Inc. is developing one or more specific products, but has not committed any design to production. Information presented in a document with this designation is likely to change, and in some cases, development on the product may discontinue. Spansion Inc. therefore places the following conditions upon Advance Information content: “This document contains information on one or more products under development at Spansion Inc. The information is intended to help you evaluate this product. Do not design in this product without contacting the factory. Spansion Inc. reserves the right to change or discontinue work on this proposed product without notice.” Preliminary The Preliminary designation indicates that the product development has progressed such that a commitment to production has taken place. This designation covers several aspects of the product life cycle, including product qualification, initial production, and the subsequent phases in the manufacturing process that occur before full production is achieved. Changes to the technical specifications presented in a Preliminary document should be expected while keeping these aspects of production under consideration. Spansion places the following conditions upon Preliminary content: “This document states the current technical specifications regarding the Spansion product(s) described herein. The Preliminary status of this document indicates that product qualification has been completed, and that initial production has begun. Due to the phases of the manufacturing process that require maintaining efficiency and quality, this document may be revised by subsequent versions or modifications due to changes in technical specifications.” Combination Some data sheets contain a combination of products with different designations (Advance Information, Preliminary, or Full Production). This type of document distinguishes these products and their designations wherever necessary, typically on the first page, the ordering information page, and pages with the DC Characteristics table and the AC Erase and Program table (in the table notes). The disclaimer on the first page refers the reader to the notice on this page. Full Production (No Designation on Document) When a product has been in production for a period of time such that no changes or only nominal changes are expected, the Preliminary designation is removed from the data sheet. Nominal changes may include those affecting the number of ordering part numbers available, such as the addition or deletion of a speed option, temperature range, package type, or VIO range. Changes may also include those needed to clarify a description or to correct a typographical error or incorrect specification. Spansion Inc. applies the following conditions to documents in this category: “This document states the current technical specifications regarding the Spansion product(s) described herein. Spansion Inc. deems the products to have been in sufficient production volume such that subsequent versions of this document are not expected to change. However, typographical or specification corrections, or modifications to the valid combinations offered may occur.” Questions regarding these document designations may be directed to your local sales office. 2 S25FL032A S25FL032A_00_C3 February 27, 2009 S25FL032A 32 Megabit CMOS 3.0 Volt Flash Memory with 50-MHz SPI (Serial Peripheral Interface) Bus Data Sheet This product has been retired and is not recommended for designs. For new and current designs, S25FL032P supercedes S25FL032A. This is the factory-recommended migration path. Please refer to the S25FL032P data sheet for specifications and ordering information. Distinctive Characteristics Process Technology Architectural Advantages – Manufactured on 0.20 µm MirrorBit® process technology Single power supply operation – Full voltage range: 2.7 to 3.6 V read and program operations Package Option – Industry Standard Pinouts – 16-pin SO package (300 mils) Memory Architecture – 64 sectors with 512 Kb each Program Performance Characteristics – Page Program (up to 256 bytes) in 1.4 ms (typical) – Program operations are on a page by page basis Speed – 50 MHz clock rate (maximum) Erase Power Saving Standby Mode – 0.5 s typical sector erase time – Bulk erase function – Standby Mode 50 µA (max) – Deep Power Down Mode 2 µA (typical) Cycling Endurance – 100,000 cycles per sector typical Memory Protection Features Data Retention Memory Protection – 20 years typical Device ID – JEDEC standard two-byte electronic signature – RES command one-byte electronic signature for backward compatibility – W# pin works in conjunction with Status Register Bits to protect specified memory areas – Status Register Block Protection bits (BP2, BP1, BP0) in status register configure parts of memory as read-only Software Features – SPI Bus Compatible Serial Interface General Description The S25FL032A is a 3.0 Volt (2.7 V to 3.6 V), single-power-supply Flash memory device. The device consists of 64 sectors, each with 512 Kb memory. The device accepts data written to SI (Serial Input) and outputs data on SO (Serial Output). The devices are designed to be programmed in-system with the standard system 3.0 volt VCC supply. The memory can be programmed 1 to 256 bytes at a time, using the Page Program command. The device supports Sector Erase and Bulk Erase commands. Each device requires only a 3.0 volt power supply (2.7 V to 3.6 V) for both read and write functions. Internally generated and regulated voltages are provided for the program operations. This device does not require a VPP supply. Publication Number S25FL032A_00 Revision C Amendment 3 Issue Date February 27, 2009 D at a S hee t Table of Contents Distinctive Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 1. Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2. Connection Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3. Input/Output Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4. Logic Symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5. Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 5.1 Valid Combinations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 6. Spansion SPI Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 7. Device Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 Byte or Page Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Sector Erase / Bulk Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3 Monitoring Write Operations Using the Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4 Active Power and Standby Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.5 Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6 Data Protection Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.7 Hold Mode (HOLD#) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8. Sector Address Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 9. Command Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.1 Read Data Bytes (READ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2 Read Data Bytes at Higher Speed (FAST_READ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.3 Read Identification (RDID) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.4 Write Enable (WREN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.5 Write Disable (WRDI). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.6 Read Status Register (RDSR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.7 Write Status Register (WRSR). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.8 Page Program (PP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.9 Sector Erase (SE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.10 Bulk Erase (BE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.11 Deep Power Down (DP). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.12 Release from Deep Power Down (RES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10. Power-up and Power-down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 11. Initial Delivery State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 12. Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 13. Operating Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 14. DC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 15. Test Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 16. AC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 17. Physical Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 17.1 SO3 016—16-pin Wide Plastic Small Outline Package (300-mil Body Width) . . . . . . . . . . . 33 18. Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 S25FL032A 11 11 11 11 11 11 12 13 15 16 17 18 19 19 20 21 22 23 23 24 25 S25FL032A_00_C3 February 27, 2009 Data She et Figures Figure 2.1 Figure 6.1 Figure 6.2 Figure 7.1 Figure 9.1 Figure 9.2 Figure 9.3 Figure 9.4 Figure 9.5 Figure 9.6 Figure 9.7 Figure 9.8 Figure 9.9 Figure 9.10 Figure 9.11 Figure 9.12 Figure 9.13 Figure 10.1 Figure 12.1 Figure 12.2 Figure 15.1 Figure 16.1 Figure 16.2 Figure 16.3 Figure 16.4 Figure 16.5 16-pin Plastic Small Outline Package (SO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Bus Master and Memory Devices on the SPI Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 SPI Modes Supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Hold Mode Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Read Data Bytes (READ) Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Read Data Bytes at Higher Speed (FAST_READ) Command Sequence . . . . . . . . . . . . . . . 17 Read Identification (RDID) Command Sequence and Data-Out Sequence . . . . . . . . . . . . . 18 Write Enable (WREN) Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Write Disable (WRDI) Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Read Status Register (RDSR) Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Write Status Register (WRSR) Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Page Program (PP) Command Sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Sector Erase (SE) Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Bulk Erase (BE) Command Sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Deep Power Down (DP) Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Release from Deep Power Down (RES) Command Sequence . . . . . . . . . . . . . . . . . . . . . . . 25 Release from Deep Power Down and Read Electronic Signature (RES) Command Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Power-Up Timing Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Maximum Negative Overshoot Waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Maximum Positive Overshoot Waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 AC Measurements I/O Waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 AC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 SPI Mode 0 (0,0) Input Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 SPI Mode 0 (0,0) Output Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 HOLD# Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Write Protect Setup and Hold Timing during WRSR when SRWD=1 . . . . . . . . . . . . . . . . . . 32 February 27, 2009 S25FL032A_00_C3 S25FL032A 5 D at a S hee t Tables Table 5.1 Table 7.1 Table 8.1 Table 8.2 Table 9.1 Table 9.2 Table 9.3 Table 9.4 Table 10.1 Table 12.1 Table 13.1 Table 14.1 Table 15.1 6 S25FL032A Valid Combinations Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 S25FL032A Protected Area Sizes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 S25FL032A Device Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 S25FL032A Sector Address Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 Read Identification (RDID) Data-Out Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 S25FL032A Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 Protection Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Command Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Power-Up Timing Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 Operating Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 DC Characteristics (CMOS Compatible) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 Test Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et 1. Block Diagram SRAM PS X D E C Array - L Array - R Logic RD DATA PATH HOLD# VCC GND SO SI SCK CS# IO 2. Connection Diagrams Figure 2.1 16-pin Plastic Small Outline Package (SO) February 27, 2009 S25FL032A_00_C3 HOLD# 1 16 SCK VCC 2 15 SI NC 3 14 NC NC 4 13 NC NC 5 12 NC NC 6 11 NC CS# 7 10 GND SO 8 9 S25FL032A W# 7 D at a S hee t 3. Input/Output Descriptions Signal I/O Description SO Output SI Input Serial Data Input: Transfers data serially into the device. Device latches commands, addresses, and program data on SI on the rising edge of SCK. SCK Input Serial Clock: Provides serial interface timing. Latches commands, addresses, and data on SI on rising edge of SCK. Triggers output on SO after the falling edge of SCK. CS# Input Chip Select: Places device in active power mode when driven low. Deselects device and places SO at high impedance when high. After power-up, device requires a falling edge on CS# before any command is written. Device is in standby mode when a program, erase, or Write Status Register operation is not in progress. HOLD# Input Hold: Pauses any serial communication with the device without deselecting it. When driven low, SO is at high impedance, and all input at SI and SCK are ignored. Requires that CS# also be driven low. W# Input Write Protect: Protects the memory area specified by Status Register bits BP2:BP0. When driven low, prevents any program or erase command from altering the data in the protected memory area. VCC Input Supply Voltage GND Input Ground Signal Data Output: Transfers data serially out of the device on the falling edge of SCK. 4. Logic Symbol VCC SO SI SCK CS# W# HOLD# GND 8 S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et 5. Ordering Information This product has been retired and is not recommended for designs. For new and current designs, S25FL032P supercedes S25FL032A. This is the factory-recommended migration path. Please refer to the S25FL032P data sheet for specifications and ordering information. The ordering part number is formed by a valid combination of the following: S25FL 032 A 0L M A I 00 1 PACKING TYPE (Note 1) 0 = Tray 1 = Tube 3 = 13” Tape and Reel MODEL NUMBER (Additional Ordering Options) 00 = No additional ordering options TEMPERATURE RANGE I = Industrial (–40°C to + 85°C) PACKAGE MATERIALS A = Standard F = Lead (Pb)-free PACKAGE TYPE M = 16-pin SO package SPEED 0L = 50 MHz DEVICE TECHNOLOGY A = 0.20 µm MirrorBit® Process Technology DENSITY 032 = 32 Mbit DEVICE FAMILY S25FL SpansionTM Memory 3.0 Volt-only, Serial Peripheral Interface (SPI) Flash Memory Table 5.1 S25FL032A Valid Combinations Table S25FL032A Valid Combinations Base Ordering Part Number Speed Option Package & Temperature Model Number Packing Type S25FL032A 0L MAI, MFI 00 1, 3 (Note 1) Package Marking (Note 2) FL032A + (Temp) + (Note 3) Notes 1. Contact your local sales office for availability. 2. Package marking omits leading “S25” and speed, package, and model number form. 3. A for standard package (non-Pb free); F for Pb-free package. 5.1 Valid Combinations Table 5.1 lists the valid combinations configurations planned to be supported in volume for this device. February 27, 2009 S25FL032A_00_C3 S25FL032A 9 D at a S hee t 6. Spansion SPI Modes A microcontroller can use either of its two SPI modes to control Spansion SPI Flash memory devices: CPOL = 0, CPHA = 0 (Mode 0) CPOL = 1, CPHA = 1 (Mode 3) Input data is latched in on the rising edge of SCK, and output data is available from the falling edge of SCK for both modes. When the bus master is in standby mode, SCK is as shown in Figure 6.2 for each of the two modes: SCK remains at 0 for (CPOL = 0, CPHA = 0 Mode 0) SCK remains at 1 for (CPOL = 1, CPHA = 1 Mode 3) Figure 6.1 Bus Master and Memory Devices on the SPI Bus SO SPI Interface with (CPOL, CPHA) = (0, 0) or (1, 1) SI SCK SCK SO SI SCK SO SI SCK SO SI Bus Master SPI Memory Device CS3 CS2 SPI Memory Device SPI Memory Device CS1 CS# W# HOLD# CS# W# HOLD# CS# W# HOLD# Note The Write Protect (W#) and Hold (HOLD#) signals should be driven high (logic level 1) or low (logic level 0) as appropriate. Figure 6.2 SPI Modes Supported CS# CPOL CPHA Mode 0 0 0 SCK Mode 3 1 1 SCK SI MSB SO 10 MSB S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et 7. Device Operations All Spansion SPI devices (S25FL-A) accept and output data in bytes (8 bits at a time). 7.1 Byte or Page Programming Programming data requires two commands: Write Enable (WREN), which is one byte, and a Page Program (PP) sequence, which consists of four bytes plus data. The Page Program sequence accepts from 1 byte up to 256 consecutive bytes of data (which is the size of one page) to be programmed in one operation. Programming means that bits can either be left at 0, or programmed from 1 to 0. Changing bits from 0 to 1 requires an erase operation. Before this can be applied, the bytes of the memory need to be first erased to all 1’s (FFh) before any programming. 7.2 Sector Erase / Bulk Erase The Sector Erase (SE) and Bulk Erase (BE) commands set all the bits in a sector or the entire memory array to 1. While bits can be individually programmed from a 1 to 0, erasing bits from 0 to 1 must be done on a sector-wide (SE) or array-wide (BE) level. 7.3 Monitoring Write Operations Using the Status Register The host system can determine when a Write Status Register, program, or erase operation is complete by monitoring the Write in Progress (WIP) bit in the Status Register. The Read from Status Register command provides the state of the WIP bit. 7.4 Active Power and Standby Power Modes The device is enabled and in the Active Power mode when Chip Select (CS#) is Low. When CS# is high, the device is disabled, but may still be in the Active Power mode until all program, erase, and Write Status Register operations have completed. The device then goes into the Standby Power mode, and power consumption drops to ISB. The Deep Power Down (DP) command provides additional data protection against inadvertent signals. After writing the DP command, the device ignores any further program or erase commands, and reduces its power consumption to IDP. 7.5 Status Register The Status Register contains the status and control bits that can be read or set by specific commands (Table 9.2, S25FL032A Status Register on page 20): Write In Progress (WIP): Indicates whether the device is performing a Write Status Register, program or erase operation. Write Enable Latch (WEL): Indicates the status of the internal Write Enable Latch. Block Protect (BP2, BP1, BP0): Non-volatile bits that define memory area to be software-protected against program and erase commands. Status Register Write Disable (SRWD): Places the device in the Hardware Protected mode when this bit is set to 1 and the W# input is driven low. In this mode, the non-volatile bits of the Status Register (SRWD, BP2, BP1, BP0) become read-only bits. February 27, 2009 S25FL032A_00_C3 S25FL032A 11 D at a 7.6 S hee t Data Protection Modes Spansion SPI Flash memory devices provide the following data protection methods: The Write Enable (WREN) command: Must be written prior to any command that modifies data. The WREN command sets the Write Enable Latch (WEL) bit. The WEL bit resets (disables writes) on power-up or after the device completes the following commands: – Page Program (PP) – Sector Erase (SE) – Bulk Erase (BE) – Write Disable (WRDI) – Write Status Register (WRSR) Software Protected Mode (SPM): The Block Protect (BP2, BP1, BP0) bits define the section of the memory array that can be read but not programmed or erased. Table 7.1 shows the sizes and address ranges of protected areas that are defined by Status Register bits BP2:BP0. Hardware Protected Mode (HPM): The Write Protect (W#) input and the Status Register Write Disable (SRWD) bit together provide write protection. Clock Pulse Count: The device verifies that all program, erase, and Write Status Register commands consist of a clock pulse count that is a multiple of eight before executing them. Table 7.1 S25FL032A Protected Area Sizes Status Register Block Protect Bits BP2 12 BP1 BP0 Memory Array Protected Address Range Protected Sectors Unprotected Address Range Unprotected Sectors Protected Portion of Total Memory Area 0 0 0 None (0) 000000h–3FFFFFh SA63:SA0 0 0 0 1 3F0000h–3FFFFFh (1) SA63 000000h–3EFFFFh SA62:SA0 1/64 0 1 0 3E0000h–3FFFFFh (2) SA63:SA62 000000h–3DFFFFh SA61:SA0 1/32 0 1 1 3C0000h–3FFFFFh (4) SA63:SA60 000000h–3BFFFFh SA59:SA0 1/16 1 0 0 380000h–3FFFFFh (8) SA63:SA56 000000h–37FFFFh SA55:SA0 1/8 1 0 1 300000h–3FFFFFh (16) SA63:SA48 000000h–2FFFFFh SA47:SA0 1/4 1 1 0 200000h–3FFFFFh (32) SA63:SA32 000000h–1FFFFFh SA31:SA0 1/2 1 1 1 000000h–3FFFFFh (64) SA63:SA0 None None All S25FL032A S25FL032A_00_C3 February 27, 2009 Data 7.7 She et Hold Mode (HOLD#) The Hold input (HOLD#) stops any serial communication with the device, but does not terminate any Write Status Register, program or erase operation that is currently in progress. The Hold mode starts on the falling edge of HOLD# if SCK is also low (see Figure 7.1, standard use). If the falling edge of HOLD# does not occur while SCK is low, the Hold mode begins after the next falling edge of SCK (non-standard use). The Hold mode ends on the rising edge of HOLD# signal (standard use) if SCK is also low. If the rising edge of HOLD# does not occur while SCK is low, the Hold mode ends on the next falling edge of CLK (nonstandard use) See Figure 7.1. The SO output is high impedance, and the SI and SCK inputs are ignored (don’t care) for the duration of the Hold mode. CS# must remain low for the entire duration of the Hold mode to ensure that the device internal logic remains unchanged. If CS# goes high while the device is in the Hold mode, the internal logic is reset. To prevent the device from reverting to the Hold mode when device communication is resumed, HOLD# must be held high, followed by driving CS# low. Figure 7.1 Hold Mode Operation SCK HOLD# Hold Condition (standard use) Hold Condition (non-standard use) 8. Sector Address Table Table 8.1 shows the size of the memory array, sectors, and pages. The device uses pages to cache the program data before the data is programmed into the memory array. Each page or byte can be individually programmed (bits are changed from 1 to 0). The data is erased (bits are changed from 0 to 1) on a sector- or device-wide basis using the SE or BE commands. Table 8.2 shows the starting and ending address for each sector. The complete set of sectors comprises the memory array of the Flash device. Table 8.1 S25FL032A Device Organization Each Device has Each Sector has Each Page has 4,194,304 65,536 256 16,384 256 — pages 64 — — sectors February 27, 2009 S25FL032A_00_C3 S25FL032A bytes 13 D at a S hee t Table 8.2 S25FL032A Sector Address Table (Sheet 1 of 2) Sector 14 Address Range SA63 3F0000h 3FFFFFh SA62 3E0000h 3EFFFFh SA61 3D0000h 3DFFFFh SA60 3C0000h 3CFFFFh SA59 3B0000h 3BFFFFh SA58 3A0000h 3AFFFFh SA57 390000h 39FFFFh SA56 380000h 38FFFFh SA55 370000h 37FFFFh SA54 360000h 36FFFFh SA53 350000h 35FFFFh SA52 340000h 34FFFFh SA51 330000h 33FFFFh SA50 320000h 32FFFFh SA49 310000h 31FFFFh SA48 300000h 30FFFFh SA47 2F0000h 2FFFFFh SA46 2E0000h 2EFFFFh SA45 2D0000h 2DFFFFh SA44 2C0000h 2CFFFFh SA43 2B0000h 2BFFFFh SA42 2A0000h 2AFFFFh SA41 290000h 29FFFFh SA40 280000h 28FFFFh SA39 270000h 27FFFFh SA38 260000h 26FFFFh SA37 250000h 25FFFFh SA36 240000h 24FFFFh SA35 230000h 23FFFFh SA34 220000h 22FFFFh SA33 210000h 21FFFFh SA32 200000h 20FFFFh SA31 1F0000h 1FFFFFh SA30 1E0000h 1EFFFFh SA29 1D0000h 1DFFFFh SA28 1C0000h 1CFFFFh SA27 1B0000h 1BFFFFh SA26 1A0000h 1AFFFFh SA25 190000h 19FFFFh SA24 180000h 18FFFFh SA23 170000h 17FFFFh SA22 160000h 16FFFFh SA21 150000h 15FFFFh SA20 140000h 14FFFFh SA19 130000h 13FFFFh SA18 120000h 12FFFFh SA17 110000h 11FFFFh SA16 100000h 10FFFFh S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et Table 8.2 S25FL032A Sector Address Table (Sheet 2 of 2) Sector Address Range SA15 0F0000h 0FFFFFh SA14 0E0000h 0EFFFFh SA13 0D0000h 0DFFFFh SA12 0C0000h 0CFFFFh SA11 0B0000h 0BFFFFh SA10 0A0000h 0AFFFFh SA9 090000h 09FFFFh SA8 080000h 08FFFFh SA7 070000h 07FFFFh SA6 060000h 06FFFFh SA5 050000h 05FFFFh SA4 040000h 04FFFFh SA3 030000h 03FFFFh SA2 020000h 02FFFFh SA1 010000h 01FFFFh SA0 000000h 00FFFFh 9. Command Definitions The host system must shift all commands, addresses, and data in and out of the device, beginning with the most significant bit. On the first rising edge of SCK after CS# is driven low, the device accepts the one-byte command on SI (all commands are one byte long), most significant bit first. Each successive bit is latched on the rising edge of SCK. Table 9.4 on page 26 lists the complete set of commands. Every command sequence begins with a one-byte command code. The command may be followed by address, data, both, or nothing, depending on the command. CS# must be driven high after the last bit of the command sequence has been written. The Read Data Bytes (READ), Read Status Register (RDSR), Read Data Bytes at Higher Speed (FAST_READ) and Read Identification (RDID) command sequences are followed by a data output sequence on SO. CS# can be driven high after any bit of the sequence is output to terminate the operation. The Page Program (PP), Sector Erase (SE), Bulk Erase (BE), Write Status Register (WRSR), Write Enable (WREN), or Write Disable (WRDI) commands require that CS# be driven high at a byte boundary, otherwise the command is not executed. Since a byte is composed of eight bits, CS# must therefore be driven high when the number of clock pulses after CS# is driven low is an exact multiple of eight. The device ignores any attempt to access the memory array during a Write Status Register, program, or erase operation, and continues the operation uninterrupted. February 27, 2009 S25FL032A_00_C3 S25FL032A 15 D at a 9.1 S hee t Read Data Bytes (READ) The Read Data Bytes (READ) command reads data from the memory array at the frequency (fSCK) presented at the SCK input, with a maximum speed of 33 MHz. The host system must first select the device by driving CS# low. The READ command is then written to SI, followed by a 3-byte address (A23-A0). Each bit is latched on the rising edge of SCK. The memory array data, at that address, are output serially on SO at a frequency fSCK, on the falling edge of SCK. Figure 9.1 and Table 9.4 on page 26 detail the READ command sequence. The first byte specified can be at any location. The device automatically increments to the next higher address after each byte of data is output. The entire memory array can therefore be read with a single READ command. When the highest address is reached, the address counter reverts to 00000h, allowing the read sequence to continue indefinitely. The READ command is terminated by driving CS# high at any time during data output. The device rejects any READ command issued while it is executing a program, erase, or Write Status Register operation, and continues the operation uninterrupted. Figure 9.1 Read Data Bytes (READ) Command Sequence CS# Mode 3 SCK 0 1 2 3 4 5 6 7 8 9 10 28 29 30 31 32 33 34 35 36 37 38 39 Mode 0 Command 24-Bit Address 23 22 21 SI 3 2 1 0 MSB SO Hi-Z Data Out 1 7 6 5 4 3 2 Data Out 2 1 0 7 MSB 16 S25FL032A S25FL032A_00_C3 February 27, 2009 Data 9.2 She et Read Data Bytes at Higher Speed (FAST_READ) The FAST_READ command reads data from the memory array at the frequency (fSCK) presented at the SCK input, with a maximum speed of 50 MHz. The host system must first select the device by driving CS# low. The FAST_READ command is then written to SI, followed by a 3-byte address (A23-A0) and a dummy byte. Each bit is latched on the rising edge of SCK. The memory array data, at that address, are output serially on SO at a frequency fSCK, on the falling edge of SCK. The FAST_READ command sequence is shown in Figure 9.2 and Table 9.4 on page 26. The first byte specified can be at any location. The device automatically increments to the next higher address after each byte of data is output. The entire memory array can therefore be read with a single FAST_READ command. When the highest address is reached, the address counter reverts to 00000h, allowing the read sequence to continue indefinitely. The FAST_READ command is terminated by driving CS# high at any time during data output. The device rejects any FAST_READ command issued while it is executing a program, erase, or Write Status Register operation, and continues the operation uninterrupted. Figure 9.2 Read Data Bytes at Higher Speed (FAST_READ) Command Sequence CS# Mode 3 SCK 0 1 2 3 4 5 7 8 9 10 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 Mode 0 Command 24-Bit Address 23 22 21 SI SO 6 3 2 Hi-Z Dummy Byte 1 0 7 6 5 4 3 2 1 0 7 MSB February 27, 2009 S25FL032A_00_C3 S25FL032A 6 5 4 3 DATA OUT 1 2 1 0 7 MSB DATA OUT 2 17 D at a 9.3 S hee t Read Identification (RDID) The Read Identification (RDID) command outputs the one-byte manufacturer identification, followed by the two-byte device identification, to the host system. JEDEC assigns the manufacturer identification byte; for Spansion devices it is 01h. The device manufacturer assigns the device identification: the first byte provides the memory type; the second byte indicates the memory capacity. See Table 9.1 or Table 9.4 on page 26 for device ID data. The host system must first select the device by driving CS# low. The RDID command is then written to SI, and each bit is latched on the rising edge of SCK. The 24-bit device identification data is output from the memory array on SO at a frequency fSCK, on the falling edge of SCK. The RDID command sequence is shown in Figure 9.3 and Table 9.4 on page 26. Driving CS# high after the device identification data has been read at least once terminates the READ_ID command. Driving CS# high at any time during data output also terminates the RDID operation. The device rejects any RDID command issued while it is executing a program, erase, or Write Status Register operation, and continues the operation uninterrupted. Figure 9.3 Read Identification (RDID) Command Sequence and Data-Out Sequence CS# SCK Mode 3 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 28 29 30 31 Mode 0 Command SI Manufacturer Identification SO Hi-Z Device Identification 15 14 13 3 2 1 0 MSB Table 9.1 Read Identification (RDID) Data-Out Sequence Device Identification 18 Manufacturer Identification Memory Type Memory Capacity 01h 02h 15h S25FL032A S25FL032A_00_C3 February 27, 2009 Data 9.4 She et Write Enable (WREN) The Write Enable (WREN) command (see Figure 9.4) sets the Write Enable Latch (WEL) bit to a 1, which enables the device to accept a Write Status Register, program, or erase command. The WEL bit must be set prior to every Page Program (PP), Erase (SE or BE) and Write Status Register (WRSR) command. The host system must first drive CS# low, write the WREN command, and then drive CS# high. Figure 9.4 Write Enable (WREN) Command Sequence CS# 0 1 Mode 3 SCK 2 3 4 5 6 7 Mode 0 Command SI Hi-Z SO 9.5 Write Disable (WRDI) The Write Disable (WRDI) command (see Figure 9.5) resets the Write Enable Latch (WEL) bit to a 0, which disables the device from accepting a Write Status Register, program, or erase command. The host system must first drive CS# low, write the WRDI command, and then drive CS# high. Any of following conditions resets the WEL bit: Power-up Write Disable (WRDI) command completion Write Status Register (WRSR) command completion Page Program (PP) command completion Sector Erase (SE) command completion Bulk Erase (BE) command completion Figure 9.5 Write Disable (WRDI) Command Sequence CS# Mode 3 0 1 2 3 4 5 6 7 SCK Mode 0 Command SI Hi-Z SO February 27, 2009 S25FL032A_00_C3 S25FL032A 19 D at a 9.6 S hee t Read Status Register (RDSR) The Read Status Register (RDSR) command outputs the state of the Status Register bits. Table 9.2 shows the status register bits and their functions. The RDSR command may be written at any time, even while a program, erase, or Write Status Register operation is in progress. The host system should check the Write In Progress (WIP) bit before sending a new command to the device if an operation is already in progress. Figure 9.6 shows the RDSR command sequence, which also shows that it is possible to read the Status Register continuously until CS# is driven high. Table 9.2 S25FL032A Status Register Bit Status Register Bit Bit Function 7 SRWD Status Register Write Disable 6 — — Not used 5 — — Not used 4 BP2 3 BP1 2 BP0 1 WEL Block Protect Write Enable Latch Description 1 = Protects when W# is low 0 = No protection, even when W# is low 000–111 = Protects upper half of address range in 5 sizes. See Table 7.1 on page 12. 1 = Device accepts Write Status Register, program, or erase commands 0 = Ignores Write Status Register, program, or erase commands 0 WIP Write in Progress 1 = Device Busy. A Write Status Register, program, or erase operation is in progress 0 = Ready. Device is in standby mode and can accept commands. Figure 9.6 Read Status Register (RDSR) Command Sequence CS# Mode 3 SCK 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Mode 0 Command SI SO Hi-Z 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 MSB Status Register Out MSB Status Register Out The following describes the status and control bits of the Status Register. Write In Progress (WIP) bit: Indicates whether the device is busy performing a Write Status Register, program, or erase operation. This bit is read-only, and is controlled internally by the device. If WIP is 1, one of these operations is in progress; if WIP is 0, no such operation is in progress. Write Enable Latch (WEL) bit: Determines whether the device will accept and execute a Write Status Register, program, or erase command. When set to 1, the device accepts these commands; when set to 0, the device rejects the commands. This bit is set to 1 by writing the WREN command, and set to 0 by the WRDI command, and is also automatically reset to 0 after the completion of a Write Status Register, program, or erase operation. WEL cannot be directly set by the WRSR command. Block Protect (BP2, BP1, BP0) bits: Define the portion of the memory area that will be protected against any changes to the stored data. The Write Status Register (WRSR) command controls these bits, which are non-volatile. When one or more of these bits is set to 1, the corresponding memory area (see Table 7.1 20 S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et on page 12) is protected against Page Program (PP) and Sector Erase (SE) commands. If the Hardware Protected mode is enabled, BP2:BP0 cannot be changed. The Bulk Erase (BE) command is executed only if all Block Protect (BP2, BP1, BP0) bits are 0. Status Register Write Disable (SRWD) bit: Provides data protection when used together with the Write Protect (W#) signal. When SRWD is set to 1 and W# is driven low, the device enters the Hardware Protected mode. The non-volatile bits of the Status Register (SRWD, BP2, BP1, BP0) become read-only bits and the device ignores any Write Status Register (WRSR) command. 9.7 Write Status Register (WRSR) The Write Status Register (WRSR) command changes the bits in the Status Register. A Write Enable (WREN) command, which itself sets the Write Enable Latch (WEL) in the Status Register, is required prior to writing the WRSR command. Table 9.2, S25FL032A Status Register on page 20 shows the status register bits and their functions. The host system must drive CS# low, write the WRSR command, and the appropriate data byte on SI (Figure 9.7). The WRSR command cannot change the state of the Write Enable Latch (bit 1). The WREN command must be used for that purpose. Bit 0 is a status bit controlled internally by the Flash device. Bits 6 and 5 are always read as 0 and have no user significance. The WRSR command also controls the value of the Status Register Write Disable (SRWD) bit. The SRWD bit and W# together place the device in the Hardware Protected Mode (HPM). The device ignores all WRSR commands once it enters the Hardware Protected Mode (HPM). Table 9.3 shows that W# must be driven low and the SRWD bit must be 1 for this to occur. Figure 9.7 Write Status Register (WRSR) Command Sequence CS# Mode 3 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 SCK Mode 0 Command Status Register In 7 SI 6 5 4 3 2 1 0 MSB SO Hi-Z Table 9.3 Protection Modes W# Signal SRWD Bit 1 1 1 0 0 0 0 1 Mode Write Protection of the Status Register Protected Area (See Note) Unprotected Area (See Note) Software Protected (SPM) Status Register is writable (if the WREN command has set the WEL bit). The values in the SRWD, BP2, BP1 and BP0 bits can be changed. Protected against program and erase commands Ready to accept Page Program and Sector Erase commands Hardware Protected (HPM) Status Register is Hardware write protected. The values in the SRWD, BP2, BP1 and BP0 bits cannot be changed. Protected against program and erase commands Ready to accept Page Program and Sector Erase commands Note As defined by the values in the Block Protect (BP2, BP1, BP0) bits of the Status Register, as shown in Table 7.1 on page 12. Table 9.3 shows that neither W# or SRWD bit by themselves can enable HPM. The device can enter HPM either by setting the SRWD bit after driving W# low, or by driving W# low after setting the SRWD bit. However, the device disables HPM only when W# is driven high. Note that HPM only protects against changes to the status register. Since BP2:BP0 cannot be changed in HPM, the size of the protected area of the memory array cannot be changed. Note that HPM provides no protection to the memory array area outside that specified by BP2:BP0 (Software Protected Mode, or SPM). February 27, 2009 S25FL032A_00_C3 S25FL032A 21 D at a S hee t If W# is permanently tied high, HPM can never be activated, and only the SPM (BP2:BP0 bits of the Status Register) can be used. 9.8 Page Program (PP) The Page Program (PP) command changes specified bytes in the memory array (from 1 to 0 only). A WREN command is required prior to writing the PP command. The host system must drive CS# low, and then write the PP command, three address bytes, and at least one data byte on SI. CS# must be driven low for the entire duration of the PP sequence. The command sequence is shown in Figure 9.8 and Table 9.4 on page 26. The device programs only the last 256 data bytes sent to the device. If the number of data bytes exceeds this limit, the bytes sent before the last 256 bytes are discarded, and the device begins programming the last 256 bytes sent at the starting address of the specified page. This may result in data being programmed into different addresses within the same page than expected. If fewer than 256 data bytes are sent to device, they are correctly programmed at the requested addresses. The host system must drive CS# high after the device has latched the 8th bit of the data byte, otherwise the device does not execute the PP command. The PP operation begins as soon as CS# is driven high. The device internally controls the timing of the operation, which requires a period of tPP. The Status Register may be read to check the value of the Write In Progress (WIP) bit while the PP operation is in progress. The WIP bit is 1 during the PP operation, and is 0 when the operation is completed. The device internally resets the Write Enable Latch to 0 before the operation completes (the exact timing is not specified). The device does not execute a Page Program (PP) command that specifies a page that is protected by the Block Protect bits (BP2:BP0) (see Table 7.1 on page 12). Figure 9.8 Page Program (PP) Command Sequence CS# 0 Mode 3 5 4 3 6 8 7 28 29 30 31 32 33 34 35 36 37 38 9 10 39 Mode 0 24-Bit Address 3 23 22 21 2 1 0 MSB 6 5 4 3 2 1 0 2078 2079 2076 55 2077 51 52 53 54 2072 MSB CS# 40 41 42 43 44 45 46 47 48 49 50 7 2075 SI Data Byte 1 2074 Command 2073 SCK 2 1 SCK Data Byte 2 SI 7 MSB 22 6 5 4 3 2 Data Byte 3 1 0 7 6 5 4 MSB S25FL032A 3 2 Data Byte 256 1 0 7 6 5 4 3 2 1 0 MSB S25FL032A_00_C3 February 27, 2009 Data 9.9 She et Sector Erase (SE) The Sector Erase (SE) command sets all bits at all addresses within a specified sector to a logic 1. A WREN command is required prior to writing the PP command. The host system must drive CS# low, and then write the SE command plus three address bytes on SI. Any address within the sector (see Table 7.1 on page 12) is a valid address for the SE command. CS# must be driven low for the entire duration of the SE sequence. The command sequence is shown in Figure 9.9 and Table 9.4 on page 26. The host system must drive CS# high after the device has latched the 8th bit of the SE command, otherwise the device does not execute the command. The SE operation begins as soon as CS# is driven high. The device internally controls the timing of the operation, which requires a period of tSE. The Status Register may be read to check the value of the Write In Progress (WIP) bit while the SE operation is in progress. The WIP bit is 1 during the SE operation, and is 0 when the operation is completed. The device internally resets the Write Enable Latch to 0 before the operation completes (the exact timing is not specified). The device does not execute an SE command that specifies a sector that is protected by the Block Protect bits (BP2:BP0) (see Table 7.1 on page 12). Figure 9.9 Sector Erase (SE) Command Sequence CS# Mode 3 SCK 0 1 2 3 4 5 6 7 8 9 10 28 29 30 31 1 0 Mode 0 Command SI 24-bit Address 23 22 21 3 2 MSB SO 9.10 Hi-Z Bulk Erase (BE) The Bulk Erase (BE) command sets all the bits within the entire memory array to logic 1s. A WREN command is required prior to writing the PP command. The host system must drive CS# low, and then write the BE command on SI. CS# must be driven low for the entire duration of the BE sequence. The command sequence is shown in Figure 9.10 and Table 9.4 on page 26. The host system must drive CS# high after the device has latched the 8th bit of the CE command, otherwise the device does not execute the command. The BE operation begins as soon as CS# is driven high. The device internally controls the timing of the operation, which requires a period of tBE. The Status Register may be read to check the value of the Write In Progress (WIP) bit while the BE operation is in progress. The WIP bit is 1 during the BE operation, and is 0 when the operation is completed. The device internally resets the Write Enable Latch to 0 before the operation completes (the exact timing is not specified). The device only executes a BE command if all Block Protect bits (BP2:BP0) are 0 (see Table 7.1 on page 12). Otherwise, the device ignores the command. February 27, 2009 S25FL032A_00_C3 S25FL032A 23 D at a S hee t Figure 9.10 Bulk Erase (BE) Command Sequence CS# 0 Mode 3 SCK 1 2 3 4 5 6 7 Mode 0 Command SI SO 9.11 Hi-Z Deep Power Down (DP) The Deep Power Down (DP) command provides the lowest power consumption mode of the device. It is intended for periods when the device is not in active use, and ignores all commands except for the Release from Deep Power Down (RES) command. The DP mode therefore provides the maximum data protection against unintended write operations. The standard standby mode, which the device goes into automatically when CS# is high (and all operations in progress are complete), should generally be used for the lowest power consumption when the quickest return to device activity is required. The host system must drive CS# low, and then write the DP command on SI. CS# must be driven low for the entire duration of the DP sequence. The command sequence is shown in Figure 9.11 and Table 9.4 on page 26. The host system must drive CS# high after the device has latched the 8th bit of the DP command, otherwise the device does not execute the command. After a delay of tDP, the device enters the DP mode and current reduces from ISB to IDP (see Table 14.1 on page 29). Once the device has entered the DP mode, all commands are ignored except the RES command (which releases the device from the DP mode). The RES command also provides the Electronic Signature of the device to be output on SO, if desired (see Section 9.12 and 9.12.1). DP mode automatically terminates when power is removed, and the device always powers up in the standard standby mode. The device rejects any DP command issued while it is executing a program, erase, or Write Status Register operation, and continues the operation uninterrupted. Figure 9.11 Deep Power Down (DP) Command Sequence CS# tDP Mode 3 SCK 0 1 2 3 4 5 6 7 Mode 0 Command SI SO Hi-Z Standby Mode 24 S25FL032A Deep Power-down Mode S25FL032A_00_C3 February 27, 2009 Data 9.12 She et Release from Deep Power Down (RES) The device requires the Release from Deep Power Down (RES) command to exit the Deep Power Down mode. When the device is in the Deep Power Down mode, all commands except RES are ignored. The host system must drive CS# low and write the RES command to SI. CS# must be driven low for the entire duration of the sequence. The command sequence is shown in Figure 9.12 and Table 9.4 on page 26. The host system must drive CS# high tRES(max) after the 8-bit RES command byte. The device transitions from DP mode to the standby mode after a delay of tRES (see Table 16.1 on page 30). In the standby mode, the device can execute any read or write command. Figure 9.12 Release from Deep Power Down (RES) Command Sequence CS# Mode 3 SCK 0 1 2 3 4 5 6 7 Mode 0 Command tRES SI SO Hi-Z Deep Power-down Mode 9.12.1 Standby Mode Release from Deep Power Down and Read Electronic Signature (RES) The device features an 8-bit Electronic Signature, which can be read using the RES command. See Figure 9.13 and Table 9.4 on page 26 for the command sequence and signature value. The Electronic Signature is not to be confused with the identification data obtained using the RDID command. The device offers the Electronic Signature so that it can be used with previous devices that offered it; however, the Electronic Signature should not be used for new designs, which should read the RDID data instead. After the host system drives CS# low, it must write the RES command followed by 3 dummy bytes to SI (each bit is latched on SI during the rising edge of SCK). The Electronic Signature is then output on SO; each bit is shifted out on the falling edge of SCK. The RES operation is terminated by driving CS# high after the Electronic Signature is read at least once. Additional clock cycles on SCK with CS# low cause the device to output the Electronic Signature repeatedly. When CS# is driven high, the device transitions from DP mode to the standby mode after a delay of tRES, as previously described. The RES command always provides access to the Electronic Signature of the device and can be applied even if DP mode has not been entered. Any RES command issued while an erase, program, or WRSR operation is in progress not executed, and the operation continues uninterrupted. February 27, 2009 S25FL032A_00_C3 S25FL032A 25 D at a S hee t Figure 9.13 Release from Deep Power Down and Read Electronic Signature (RES) Command Sequence CS# 0 1 2 3 4 5 6 8 7 9 10 28 29 30 31 32 33 34 35 36 37 38 SCK tRES 3 Dummy Bytes Command SI 23 22 21 3 2 1 0 MSB SO Hi-Z 7 6 MSB 5 4 3 2 1 0 Electronic ID out Standby Mode Deep Power-down Mode Table 9.4 Command Definitions Operation One-Byte Command Code Address Bytes Dummy Byte Data Bytes Read Data Bytes 03H (0000 0011) 3 0 1 to ∞ Read Data Bytes at Higher Speed 0BH (0000 1011) 3 1 1 to ∞ Read Identification (Note 1) 9FH (1001 1111) 0 0 1 to 3 WREN Write Enable 06H (0000 0110) 0 0 0 WRDI Write Disable 04H (0000 0100) 0 0 0 SE Sector Erase D8H (1101 1000) 3 0 0 BE Bulk (Chip) Erase C7H (1100 0111) 0 0 0 PP Command READ Read FAST_READ RDID Description Write Control Erase Program Page Program 02H (0000 0010) 3 0 1 to 256 RDSR Read from Status Register 05H (0000 0101) 0 0 1 to ∞ WRSR Write to Status Register 01H (0000 0001) 0 0 1 Deep Power Down B9H (1011 1001) 0 0 0 Release from Deep Power Down ABH (1010 1011) 0 0 0 Release from Deep Power Down and Read Electronic Signature (Note 2) ABH (1010 1011) 0 3 1 to ∞ Status Register DP Power Saving RES Notes 1. The S25FL032A has a manufacturer ID of 01h, and a device ID consisting of the memory type (02h) and the memory capacity (15h). 2. The S25FL032A has an Electronic Signature ID of 15h. 10. Power-up and Power-down During power-up and power-down, certain conditions must be observed. CS# must follow the voltage applied on VCC, and must not be driven low to select the device until VCC reaches the allowable values as follows (see Figure 10.1 and Table 10.1 on page 27): At power-up, VCC (min) plus a period of tPU At power-down, VSS A pull-up resistor on Chip Select (CS#) typically meets proper power-up and power-down requirements. No Write Status Register, program, or erase command should be sent to the device until VCC rises to the VCC min, plus a delay of tPU. At power-up, the device is in standby mode (not Deep Power Down mode) and the WEL bit is reset (0). Each device in the host system should have the VCC rail decoupled by a suitable capacitor close to the package pins (this capacitor is generally of the order of 0.1 µF), as a precaution to stabilizing the VCC feed. When VCC drops from the operating voltage to below the minimum VCC threshold at power-down, all operations are disabled and the device does not respond to any commands. Note that data corruption may result if a power-down occurs while a Write Register, program, or erase operation is in progress. 26 S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et Figure 10.1 Power-Up Timing Diagram Vcc (max) Vcc (min) Vcc t PU Full Device Access Time Table 10.1 Power-Up Timing Characteristics Symbol Parameter Min VCC(min) VCC (minimum) 2.7 Max Unit V tPU VCC (min) to device operation 10 ms 11. Initial Delivery State The device is delivered with all bits set to 1 (each byte contains FFh) upon initial factory shipment. The Status Register contains 00h (all Status Register bits are 0). February 27, 2009 S25FL032A_00_C3 S25FL032A 27 D at a S hee t 12. Absolute Maximum Ratings Do not stress the device beyond the ratings listed in this section, or serious, permanent damage to the device may result. These are stress ratings only and device operation at these or any other conditions beyond those indicated in this section and in the Operating Ranges section of this document is not implied. Device operation for extended periods at the limits listed in this section may affect device reliability. Table 12.1 Absolute Maximum Ratings Description Rating Ambient Storage Temperature –65°C to +150°C –0.5 V to VCC +0.5 V Voltage with Respect to Ground: All Inputs and I/Os Notes 1. Minimum DC voltage on input or I/O pins is –0.5 V. During voltage transitions, inputs or I/O pins may overshoot VSS to –2.0 V for periods of up to 20 ns. See Figure 12.1. Maximum DC voltage on output and I/O pins is 3.6 V. During voltage transitions outputs may overshoot to VCC + 2.0 V for periods up to 20 ns. See Figure 12.2. 2. No more than one output may be shorted to ground at a time. Duration of the short circuit should not be greater than one second. 3. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational sections of this data sheet is not implied. Exposure of the device to absolute maximum rating conditions for extended periods may affect device reliability. Figure 12.1 Maximum Negative Overshoot Waveform 20 ns 20 ns +0.8 V –0.5 V –2.0 V 20 ns Figure 12.2 Maximum Positive Overshoot Waveform 20 ns VCC +2.0 V VCC +0.5 V 2.0 V 20 ns 20 ns 13. Operating Ranges Table 13.1 Operating Ranges Description Rating Ambient Operating Temperature (TA) Industrial Positive Power Supply Voltage Range –40°C to +85°C 2.7 V to 3.6 V Note Operating ranges define those limits between which functionality of the device is guaranteed. 28 S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et 14. DC Characteristics This section summarizes the DC Characteristics of the device. Designers should check that the operating conditions in their circuit match the measurement conditions specified in the Test Specifications in Table 15.1 on page 29, when relying on the quoted parameters. Table 14.1 DC Characteristics (CMOS Compatible) Parameter VCC ICC1 Description Test Conditions (See Note) Supply Voltage SCK = 0.1 VCC/0.9VCC 33 MHz SCK = 0.1 VCC/0.9VCC VCC = 3.0V 50 MHz Min Typ. Max Unit 2.7 3 3.6 V 12 mA 19 mA 28 mA Active Read Current ICC2 Active Page Program Current CS# = VCC 19.5 ICC3 Active WRSR Current CS# = VCC 24 mA ICC4 Active Sector Erase Current CS# = VCC 24 mA ICC5 Active Bulk Erase Current CS# = VCC 24 mA ISB Standby Current VCC = 3.0 V CS# = VCC 20 50 µA IDP Deep Power Down Current VCC = 3.0 V CS# = VCC 1.5 5 µA ILI Input Leakage Current VIN = GND to VCC 1 µA ILO Output Leakage Current VIN = GND to VCC 1 µA V VIL Input Low Voltage –0.3 0.3 VCC VIH Input High Voltage 0.7 VCC VCC + 0.5 V VOL Output Low Voltage IOL = 1.6 mA, VCC = VCC min 0.4 V VOH Output High Voltage IOH = –0.1 mA VCC – 0.2 V Note Typical values are at TA = 25°C and 3.0 V. 15. Test Conditions Figure 15.1 AC Measurements I/O Waveform 0.8 VCC 0.7 VCC 0.5 VCC 0.3 VCC Input Levels 0.2 VCC Input and Output Timing Reference levels Table 15.1 Test Specifications Symbol Parameter CL Load Capacitance Min Max 30 Input Rise and Fall Times February 27, 2009 S25FL032A_00_C3 Unit pF 5 ns Input Pulse Voltage 0.2 VCC to 0.8 VCC V Input Timing Reference Voltage 0.3 VCC to 0.7 VCC V Output Timing Reference Voltage 0.5 VCC V S25FL032A 29 D at a S hee t 16. AC Characteristics Figure 16.1 AC Characteristics Symbol (Notes) Typ (Notes) Max (Notes) Unit D.C. 33 MHz D.C. 50 MHz Parameter Min FSCK SCK Clock Frequency READ command FSCK SCK Clock Frequency for: FAST_READ, PP, SE, BE, DP, RES, WREN, WRDI, RDSR, WRSR tCRT Clock Rise Time (Slew Rate) 0.1 V/ns tCFT Clock Fall Time (Slew Rate) 0.1 V/ns tWH SCK High Time 9 ns tWL SCK Low Time 9 ns tCS CS# High Time 100 ns tCSS (3) CS# Setup Time 5 ns tCSH (3) CS# HOLD Time 5 ns tHD (3) HOLD# Setup Time (relative to SCK) 5 ns tCD (3) HOLD# Hold Time (relative to SCK) 5 ns tHC HOLD# Setup Time (relative to SCK) 5 ns tCH HOLD# Hold Time (relative to SCK) 5 Output Valid 0 tV ns 10 ns tHO Output Hold Time 0 ns tHD:DAT Data in Hold Time 5 ns tSU:DAT Data in Setup Time 5 ns tR Input Rise Time 5 ns tF Input Fall Time 5 ns HOLD# to Output Low Z 10 ns tLZ (3) tHZ (3) HOLD# to Output High Z 10 ns tDIS (3) Output Disable Time 10 ns tWPS (3) Write Protect Setup Time 15 ns tWPH (3) Write Protect Hold Time 15 ns tW Write Status Register Time 150 ms tDP CS# High to Deep Power Down Mode 67 3 μs tRES Release DP Mode 30 μs tPP Page Programming Time 1.5 (1) 3 (2) ms tSE Sector Erase Time 0.5 (1) 3 (2) sec tBE Bulk Erase Time 25 (1) 192 (2) sec Notes 1. Typical program and erase times assume the following conditions: 25°C, VCC = 3.0V; 10,000 cycles; checkerboard data pattern 2. Under worst-case conditions of 90°C; VCC = 2.7V; 100,000 cycles 3. Not 100% tested 30 S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et Figure 16.2 SPI Mode 0 (0,0) Input Timing tCS CS# tCSH tCSH tCSS tCSS SCK tSU:DAT tHD:DAT tCRT SI tCFT MSB IN SO LSB IN Hi-Z Figure 16.3 SPI Mode 0 (0,0) Output Timing CS# tWH SCK tV tHO tWL tV SO February 27, 2009 S25FL032A_00_C3 tDIS tHO LSB OUT S25FL032A 31 D at a S hee t Figure 16.4 HOLD# Timing CS# tCH tHC tHD SCK tCD tHZ tLZ SO SI HOLD# Figure 16.5 Write Protect Setup and Hold Timing during WRSR when SRWD=1 W# tWPS tWPH CS# SCK SI SO 32 Hi-Z S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et 17. Physical Dimensions 17.1 SO3 016—16-pin Wide Plastic Small Outline Package (300-mil Body Width) NOTES: 1. ALL DIMENSIONS ARE IN BOTH INCHES AND MILLMETERS. PACKAGE SO3 016 (inches) SO3 016 (mm) 2. DIMENSIONING AND TOLERANCING PER ASME Y14.5M - 1994. JEDEC MS-013(D)AA MS-013(D)AA 3. DIMENSION D DOES NOT INCLUDE MOLD FLASH, PROTRUSIONS OR GATE BURRS. MOLD FLASH, PROTRUSIONS OR GATE BURRS SHALL NOT EXCEED 0.15 mm PER END. DIMENSION E1 DOES NOT INCLUDE INTERLEAD FLASH OR PROTRUSION INTERLEAD FLASH OR PROTRUSION SHALL NOT EXCEED 0.25 mm PER SIDE. D AND E1 DIMENSIONS ARE DETERMINED AT DATUM H. SYMBOL MIN MAX MIN MAX A 0.093 0.104 2.35 2.65 A1 0.004 0.012 0.10 0.30 A2 0.081 0.104 2.05 2.55 b 0.012 0.020 0.31 0.51 b1 0.011 0.019 0.27 0.48 c 0.008 0.013 0.20 0.33 c1 0.008 0.012 0.20 0.30 D 0.406 BSC 10.30 BSC E 0.406 BSC 10.30 BSC E1 0.295 BSC 7.50 BSC e L .050 BSC 0.016 0.050 1.27 BSC 0.40 .055 REF 1.40 REF L2 .010 BSC 0.25 BSC 16 THE PACKAGE TOP MAY BE SMALLER THAN THE PACKAGE BOTTOM. DIMENSIONS D AND E1 ARE DETERMINED AT THE OUTMOST EXTREMES OF THE PLASTIC BODY EXCLUSIVE OF MOLD FLASH, TIE BAR BURRS, GATE BURRS AND INTERLEAD FLASH. BUT INCLUDING ANY MISMATCH BETWEEN THE TOP AND BOTTOM OF THE PLASTIC BODY. 5. DATUMS A AND B TO BE DETERMINED AT DATUM H. 6. "N" IS THE MAXIMUM NUMBER OF TERMINAL POSITIONS FOR THE SPECIFIED PACKAGE LENGTH. 7. THE DIMENSIONS APPLY TO THE FLAT SECTION OF THE LEAD BETWEEN 0.10 TO 0.25 mm FROM THE LEAD TIP. 8. DIMENSION "b" DOES NOT INCLUDE DAMBAR PROTRUSION. ALLOWABLE DAMBAR PROTRUSION SHALL BE 0.10 mm TOTAL IN EXCESS OF THE "b" DIMENSION AT MAXIMUM MATERIAL CONDITION. THE DAMBAR CANNOT BE LOCATED ON THE LOWER RADIUS OF THE LEAD FOOT. 9. THIS CHAMFER FEATURE IS OPTIONAL. IF IT IS NOT PRESENT, THEN A PIN 1 IDENTIFIER MUST BE LOCATED WITHIN THE INDEX AREA INDICATED. 10. LEAD COPLANARITY SHALL BE WITHIN 0.10 mm AS MEASURED FROM THE SEATING PLANE. 16 h 0.10 0.30 0.25 0.75 θ 0˚ 8˚ 0˚ 8˚ θ1 5˚ 15˚ 5˚ θ2 4. 1.27 L1 N . 0˚ 15˚ 0˚ 3601 \ 16-038.03 \ 8.31.6 February 27, 2009 S25FL032A_00_C3 S25FL032A 33 D at a S hee t 18. Revision History Section Description Revision A (August 10, 2005) Global Initial release. Revision B0 (April 16, 2006) Global Changed document status from Advance Information to Preliminary. Changed title from family of devices to specific device. Revision B1 (June 29, 2006) DC Characteristics Changed typical and maximum specifications for ICC2. Revision C0 (September 1, 2006) Global Rewrote entire document for better flow and clarity. No specifications were changed. Revision C1 (February 23, 2006) Global Changed document status from “Preliminary” to “Full Production”. Absolute Maximum Rating Add overshoot/undershoot spec Revision C2 (July 2, 2007) Device Operations Added sentence to Byte or Page Programming Revision C3 (February 27, 2009) Global 34 Added obsolescence information to Cover Sheet, Distinctive Characteristics, and Ordering Information sections of data sheet. S25FL032A S25FL032A_00_C3 February 27, 2009 Data She et Colophon The products described in this document are designed, developed and manufactured as contemplated for general use, including without limitation, ordinary industrial use, general office use, personal use, and household use, but are not designed, developed and manufactured as contemplated (1) for any use that includes fatal risks or dangers that, unless extremely high safety is secured, could have a serious effect to the public, and could lead directly to death, personal injury, severe physical damage or other loss (i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic control, mass transport control, medical life support system, missile launch control in weapon system), or (2) for any use where chance of failure is intolerable (i.e., submersible repeater and artificial satellite). Please note that Spansion will not be liable to you and/or any third party for any claims or damages arising in connection with above-mentioned uses of the products. Any semiconductor devices have an inherent chance of failure. You must protect against injury, damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and prevention of over-current levels and other abnormal operating conditions. If any products described in this document represent goods or technologies subject to certain restrictions on export under the Foreign Exchange and Foreign Trade Law of Japan, the US Export Administration Regulations or the applicable laws of any other country, the prior authorization by the respective government entity will be required for export of those products. Trademarks and Notice The contents of this document are subject to change without notice. This document may contain information on a Spansion product under development by Spansion. Spansion reserves the right to change or discontinue work on any product without notice. The information in this document is provided as is without warranty or guarantee of any kind as to its accuracy, completeness, operability, fitness for particular purpose, merchantability, non-infringement of third-party rights, or any other warranty, express, implied, or statutory. Spansion assumes no liability for any damages of any kind arising out of the use of the information in this document. Copyright © 2005-2009 Spansion Inc. All rights reserved. Spansion®, the Spansion Logo, MirrorBit®, MirrorBit® Eclipse™, ORNAND™, ORNAND2™, HD-SIM™, EcoRAM™ and combinations thereof, are trademarks of Spansion LLC in the US and other countries. Other names used are for informational purposes only and may be trademarks of their respective owners. February 27, 2009 S25FL032A_00_C3 S25FL032A 35