APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F 1. Introduction This application note serves as a guide to replace the Micron N25Q032A and N25Q064A with the Macronix MX25U3235F and MX25U6435F 1.8V 32Mb and 64Mb Serial Flash. The document does not provide detailed information on each individual device, but highlights the similarities and differences between them. The comparison covers the general features, performance, command codes, and other differences. If common features are used in standard traditional modes, the replacement may need only minimal software modification. The information provided in this document is based on datasheets listed in Section 9. Newer versions of the datasheets may override the contents of this document. 2. Features Both flash device families have similar features and functions as shown in Table 2-1. Table 2-1: Feature Comparison Feature VCC Voltage Range Normal Read Clock Frequency Fast Read (1-1-1) Dual Output (DREAD) (1-1-2) Dual I/O (2READ) (1-2-2) Dual Peripheral Interface (2-2-2) Quad Output (QREAD) (1-1-4) Quad I/O (4READ) (1-4-4) Quad Peripheral Interface (QPI) (4-4-4) XIP / Performance Enhanced Mode Sector Size Program Buffer Size Security OTP Program/Erase Suspend & Resume Wrap Around Burst Read Mode Configurable Dummy Cycle Adjustable Output Driver Deep Power Down S/W Reset Command HOLD#/RESET# Pin Block Protection Mode (BP bits) Individual Sector Protection Mode (Volatile) Program/Erase Cycles Notes: P/N: AN-0242 Macronix MX25U_35F 1.65V-2.0V 50MHz(1) Yes Yes Yes Yes Yes 4KB/32KB/64KB 256Byte 512Byte Yes Yes Yes Yes Yes Reset# Yes Yes 100K Micron N25Q_A 1.7V-2.0V 54MHz Yes Yes Yes Yes Yes Yes Yes Yes 4KB/64KB 256Byte 64Byte Yes Yes Yes Yes Yes Yes Hold#/Reset# Yes Yes 100K 1) The maximum clock rate=33MHz when reading secured OTP area. 1 Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F Table 2-2: Read Performance Macronix MX25_35F I/O Mode Fast Read (1-1-1) Dual Output (DREAD) ( 1-1-2) Dual I/O (2READ) (1-2-2) Dual Peripheral Interface (2-2-2) Quad Output (QREAD) (1-1-4) Quad I/O (4READ) (1-4-4) Quad Peripheral Interface (QPI) ( 4-4-4) P/N: AN-0242 Micron N25Q_A Default Dummy Cycles Max Speed @ Default Dummy Cycles Default Dummy Cycles Max Speed @ Default Dummy Cycles 8 104MHz 8 108MHz - - 8 108MHz 4 84MHz 8 108MHz - - 9 108MHz - - 8 108MHz 6 104MHz 10 108MHz 6 104MHz 11 108MHz 2 Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F 3. Package and Pinout Both devices are available in 8-pin SOP and 8-WSON packages with similar footprints. Pinout definitions are identical with the two exceptions shown in Table 3-2. Where Macronix has a RESET#/SIO3 pin, Micron has either a HOLD#/DQ3 or a RESET#/DQ3 pin. If the Micron device has a RESET# pin, then the devices are pin compatible. If the Micron device has a HOLD# pin, but the HOLD# function is not used, then the devices are also pin compatible. Macronix does not support the VPP (10V Fast Programming Voltage) function available on Micron’s W#/VPP/DQ2 pin. This function is normally only used on external programmers to accelerate Program/Erase operations and is generally not used for “in-circuit” programming. Please consult the latest Macronix datasheet for any possible package additions. Table 3-1: Packages Packages 8-WSON (6x5mm) 8-WSON (8x6mm) 8-SOP (209mil) 16-SOP (300mil) 24-TFBGA MX25U_35F YES YES - N25Q_A YES YES YES YES YES Table 3-2: Pin Definition Comparison Pin Number P/N: AN-0242 Macronix MX25U_35F Micron N25Q_A Pin #1 Pin #2 Pin #3 Pin #4 Pin #5 Pin #6 CS# SO/SIO1 WP#/SIO2 GND SI/SIO0 SCLK S# DQ1 W#/ VPP /DQ2 VSS DQ0 C Pin #7 RESET#/SIO3 HOLD#/DQ3 or RESET#/SIO3 Pin #8 VCC VCC Comments Macronix does not support VPP HOLD# not supported by Macronix. Dedicated Micron part numbers offer RESET# instead of HOLD#. - 3 Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F 4. Key Feature and Operational Differences 4-1 Status Register and Configuration Register Differences Both devices use registers to control device behavior and report status. The registers and bits used are similar but not identical. Both the Micron and Macronix devices use BP bits to select groups of memory areas for protection. The N25Q032/64A Block Protection bits BP[2:0] are located in Status Register (bits [4:2]). The Top/Bottom bit is located in Status Register bit 5 and selects whether block protection starts at the top or bottom of memory. The BP[2:0] and Top/Bottom bits are nonvolatile and reprogrammable. The MX25U32/6435F Block Protection bits BP[3:0] are located in Status Register bits [5:2]. The block protection starts at the top of memory, and the protected upper areas are the same. The BP[3:0] bits are all nonvolatile and reprogrammable. The granularity of Write protection is different between the Macronix and Micron devices if block protection starts at the bottom of memory, but the same if protection starts at the top of memory. 4-2 QPI Differences Micron’s Quad I/O mode is entered by setting a bit in the Nonvolatile Configuration Register (NVCR), which remembers this mode after power cycles, or by setting a bit in the Enhanced Volatile Configuration Register (VCR) and is reset after a power cycle. The MX25U32/6435F requires an EQIO (35h) command to enter the equivalent QPI mode. This mode can be terminated by a RSTQIO (F5h) command or by a power cycle or software reset. 4-3 XIP Differences The XIP (eXecute In Place) feature (Macronix refers to this as Performance Enhance Mode) is only used during Fast Read operations and eliminates the need to input read commands prior to entering an address and reading data. This is an overhead reduction feature that increases data throughput. Both devices offer this feature, but entry and exit methods are different. P/N: AN-0242 4 Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F 4-4 Individual Sector Protection Differences Both devices have the ability to write protect individual 64KB sectors/blocks of memory. Individual Sector Protection does not use the nonvolatile BP bits in the Status Register. With the Micron flash, it is possible to use both methods of write protection (BP bits and Individual Sector Protection) simultaneously, and the protected area is the combination of the two. When using the Macronix flash, either BP bit Protection or Individual Sector Protection can be selected exclusively, with the default being the use of the BP bits. The N25Q_A have one volatile Lock Register for each 64KB sector to control the sector’s program/erase protection status. The protection can be turned on or off at any time unless the sector’s Lock Register has been locked by the application. Once locked, its associated sector will remain in the protected or unprotected state until the next power cycle or reset. All sectors not protected by the Status Register BP configuration will be unprotected after power up and all Lock Registers will be unlocked. The MX25U_35F have one volatile protection register for each of the top sixteen 4KB sectors, bottom sixteen 4KB sectors, and the remaining middle 64KB blocks (the MX25U3235F has 62 middle blocks and the MX25U6435F has 126 middle blocks). These protection registers can only be used after permanently disabling the Status Register BP protection bits. This is done by executing the WPSEL instruction once. Please note that this irreversible and Individual Sector Protection method will be permanently selected. After permanently selecting the Individual Sector Protection method for the MX25U_35F, all sectors and blocks will be locked by default on power up. Sectors/blocks must be unlocked before they can be programmed or erased. Unlocking sectors/blocks can be done on an individual basis with the SBULK (Single Block Unlock) command or on all sectors/blocks with the GBULK (Global Block Unlock) command. Sectors and blocks can be relocked as necessary with the SBLK (Single Block Lock) command or GBLK (Global Block Lock) command. Since the smallest individual sector protection size in the N25Q_A is 64KB, if an application is currently locking/unlocking the top and/or bottom 64KB sector(s), it will need to lock/unlock each of the 16 top and/or bottom 4KB sectors in the MX25U_35F for equivalent results. P/N: AN-0242 5 Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F 5. Performance Table 5-1 and 5-2 show that the two devices have similar AC and DC performance. Table 5-1: AC Parameter Comparison Clock High / Low Time Symbol Macronix Micron tCH / tCL tCH / tCL Clock Low to Output Valid tCLQV tCLQV Data In Setup Time Data In Hold Time Page Program Time (256 Bytes) Erase 4KB Subsector/Sector tDVCH tCHDX tDVCH tCHDX tPP tPP tSSE tSE Erase 32KB Sector tBE32 - Erase 64KB Sector/Block tBE tSE tCE tBE tCE tBE Parameter Bulk Erase / Chip Erase (32Mb) Bulk Erase / Chip Erase (64Mb) Condition min max @10pF max @15pF max @30pF min min typ max typ max typ max typ max typ max typ max Macronix MX25U_35F 4.5ns 6ns 8ns 2ns 3ns 1.2ms 3ms 60ms 200ms 250ms 1s 500ms 2s 25s 50s 50s 100s Micron N25Q_A 4ns 5ns 7ns 2ns 3ns 0.5ms 5ms 250ms 800ms 700ms 3s 30s 60s 60s 120s Macronix MX25U_35F +/- 2uA 80uA 5uA 20uA Micron N25Q_A +/- 2uA 100uA 10uA - 20mA 20mA - 15mA 25mA 6mA 20mA Table 5-2: DC Parameter Comparison Parameter Leakage Current Standby Current Deep Power Down Current VCC Read Current (Fast Read) VCC Program Current VCC Write Status Register Current VCC Erase Current P/N: AN-0242 Symbol Macronix Micron ILI/ILO ILI/ILO ISB1 ICC1 Condition ICC2 ICC4 max max typ max max @108MHz (Quad I/O) max @104MHz (Quad I/O) max @ 84MHz max @ 54MHz max ICC3 ICC5 max 20mA 20mA ICC4,5 ICC6 max 25mA 20mA ISB2 ICC1 ICC2 ICC3 6 Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F 6. Command Code Both devices use the same basic command set, but there are a few minor differences highlighted in Table 6-1. Table 6-1: Command Code Comparison Instruction Type Read ID Read Instruction RDID REMS READ FAST_READ DOFR DIOFR QOFR QIOFR W4READ RDSFDP Write OTP QPI P/N: AN-0242 WREN WRDI PP 4PP SE BE 32K SE 64K CE ENSO EXSO ROTP POTP EQIO RSTQIO QPIID Description Read Identification Read Electronic Manufacturer ID & Read Data Bytes Read Data Bytes at Higher Speed Dual Output Fast Read Dual Input/Output Fast Read Quad Output Fast Read Quad Input/Output Fast Read Quad Input/Output Fast Read Read Serial Flash Discoverable Parameters Write Enable Write Disable Page Program Dual Input Fast Program (1-1-2) Dual I/O Fast Program (1-2-2) Quad Input Fast Program (1-1-4) Quad Page Program (1-4-4) Sector Erase 4KB Block Erase 32KB Block Erase 64KB Chip Erase Enter Secured OTP Exit Secured OTP Read OTP Area Program OTP Area Enable QPI Reset (Exit) QPI QPI ID Read 7 Macronix MX25U3_35F 9Fh 90h 03h 0Bh BBh EBh E7h Micron N25Q_A 9Eh/9Fh 03h 0Bh 3Bh BBh 6Bh EBh - 5Ah 5Ah 06h 04h 02h 38h 20h 52h D8h 60 or C7h B1h C1h 35h F5h AFh 06h 04h 02h A2h D2h 32h 12h 20h D8h C7h 4Bh 42h AFh Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F Table 6-1: Command Code Comparison - Continued Instruction Type Instruction RDSR WRSR RDSCUR WRSCUR RDLR WRLR RFSR CLFSR - Registers PGM/ERS Suspend PGM/ERS Resume RSTEN RST SBL NOP DP RDP WPSEL GBLK GBULK SBLK SBULK RDBLOCK Macronix MX25U_35F Micron N25Q_A Read Status Register Write Status Register Read Security Register Write Security Register Read Lock Register Write Lock Register Read Flag Status Register Clear Flag Status Register Read Non-volatile Configuration Register Write Non-volatile Configuration Register Read Volatile Configuration Write Volatile Configuration Read Enhance Volatile Configuration Register Write Enhance Volatile Configuration Register 05h 01h 2Bh 2Fh - 05h 01h E8h E5h 70h 50h - B5h - B1h - 85h 81h - 65h - 61h Program or Erase Suspend B0h 75h Program or Erase Resume 30h 7Ah Reset Enable Reset Memory Set Burst Length No Operation Deep Power Down Release From Deep Power Down Write Protect Selection (OTP) Gang Block Lock Gang Block Unlock Single Block Lock Single Block UnLock Read Block Lock 66h 99h C0h 00h B9h ABh 68h 7Eh 98h 36h 39h 3Ch 66h 99h Note 1 B9h ABh - Description Note 1: Micron uses a Volatile Configuration Register to control this function. P/N: AN-0242 8 Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F 7. Manufacturer and Device ID Table 7-1: Manufacturer and Device ID Comparison ID Type Manufacturer ID JEDEC ID Unique ID Macronix MX25U3235F C2h 2536h N/A Micron MX25U6435F C2h 2537h N/A N25Q32A 20h BB16h 17 Bytes N25Q64A 20h BB17h 17 Bytes 8. Summary The Macronix MX25U3235F/6435F and Micron N25Q032/64A have similar commands, functions, and features. The devices are command compatible for basic read, program, and erase (4KB and 64KB) operations. The devices are essentially pin compatible if the HOLD# function is not used. A more detailed analysis should be done if “special” functions such as XIP, Suspend/Resume, or Accelerated Programming are used. If common features are used in standard traditional modes, the replacement may need only minimal software modification. 9. References Table 9-1 shows the datasheet versions used for comparison in this application note. For the most current, detailed Macronix specification, please refer to the Macronix Website at http://www.macronix.com/. Table 9-1: Datasheet Version Datasheet Location Date Issued Version MX25U3235F Macronix Website FEB. 3, 2012 1.0 MX25U6435F Macronix Website FEB. 3, 2012 1.0 n25q_32mb_1_8v_65nm Micron Website APR. 2013 G n25q_64mb_1_8v_65nm Micron Website APR. 2013 G P/N: AN-0242 9 Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F 10. Appendix Table 10-1 shows the basic part number and package information cross reference between Macronix MX25U3235F and Micron N25Q032A parts. Table 10-2 shows the basic part number and package information cross reference between Macronix MX25U6435F and Micron N25Q064A parts. Table 10-1: 32Mb Part Number Cross Reference Macronix Part No. MX25U3235FM2I-10G MX25U3235FM2I-10G MX25U3235FM2I-10G MX25U3235FM2I-10G MX25U3235FZNI-10G MX25U3235FZNI-10G MX25U3235FZNI-10G MX25U3235FZNI-10G Micron Part No. N25Q032A11ESE40 N25Q032A21ESE40 N25Q032A31ESE40 N25Q032A41ESE40 N25Q032A11EF640 N25Q032A21EF640 N25Q032A31EF640 N25Q032A41EF640 Package 8-SOP 8-SOP 8-SOP 8-SOP 8-WSON 8-WSON 8-WSON 8-WSON Dimension 209 mil 209 mil 209 mil 209 mil 6x5 mm 6x5 mm 6x5 mm 6x5 mm Note Hold# pin, Micron XIP Hold# pin, basic XIP Reset# pin, Micron XIP Reset# pin, basic XIP Hold# pin, Micron XIP Hold# pin, basic XIP Reset# pin, Micron XIP Reset# pin, basic XIP Table 10-2: 64Mb Part Number Cross Reference Macronix Part No. MX25U6435FM2I-10G MX25U6435FM2I-10G MX25U6435FM2I-10G MX25U6435FM2I-10G MX25U6435FZNI-10G MX25U6435FZNI-10G MX25U6435FZNI-10G MX25U6435FZNI-10G Micron Part No. N25Q064A11ESE40 N25Q064A21ESE40 N25Q064A31ESE40 N25Q064A41ESE40 N25Q064A11EF640 N25Q064A21EF640 N25Q064A31EF640 N25Q064A41EF640 Package 8-SOP 8-SOP 8-SOP 8-SOP 8-WSON 8-WSON 8-WSON 8-WSON Dimension 209 mil 209 mil 209 mil 209 mil 6x5 mm 6x5 mm 6x5 mm 6x5 mm Note Hold# pin, Micron XIP Hold# pin, basic XIP Reset# pin, Micron XIP Reset# pin, basic XIP Hold# pin, Micron XIP Hold# pin, basic XIP Reset# pin, Micron XIP Reset# pin, basic XIP 11. Revision History Revision 1.0 P/N: AN-0242 Description Initial Release 10 Date June 4, 2013 Ver. 01, July 5, 2013 APPLICATION NOTE Replacing Micron N25Q032A / N25Q064A with Macronix MX25U3235F / MX25U6435F Except for customized products which have been expressly identified in the applicable agreement, Macronix's products are designed, developed, and/or manufactured for ordinary business, industrial, personal, and/or household applications only, and not for use in any applications which may, directly or indirectly, cause death, personal injury, or severe property damages. In the event Macronix products are used in contradicted to their target usage above, the buyer shall take any and all actions to ensure said Macronix's product qualified for its actual use in accordance with the applicable laws and regulations; and Macronix as well as it’s suppliers and/or distributors shall be released from any and all liability arisen therefrom. Copyright© Macronix International Co., Ltd. 2013. All rights reserved, including the trademarks and tradename thereof, such as Macronix, MXIC, MXIC Logo, MX Logo, Integrated Solutions Provider, NBit, Nbit, NBiit, Macronix NBit, eLiteFlash, HybridNVM, HybridFlash, XtraROM, Phines, KH Logo, BE-SONOS, KSMC, Kingtech, MXSMIO, Macronix vEE, Macronix MAP, Rich Au-dio, Rich Book, Rich TV, and FitCAM. The names and brands of third party referred thereto (if any) are for identification purposes only For the contact and order information, please visit Macronix’s Web site at: http://www.macronix.com P/N: AN-0242 11 Ver. 01, July 5, 2013