APPLICATION NOTE Replacing Atmel AT26DF with Macronix MX25L_06E 1. Introduction Macronix offers MX25L_06E dual I/O mode serial flash in densities from 8Mb to 32Mb. The MX25L_06E and Atmel AT26DF devices have similar features, performance, and command codes, but there are differences. This application note explains how to accommodate those differences when replacing Atmel AT26DF devices with equivalent Macronix MX25L_06E series flash products. The information in this document is based on datasheets listed in Section 8. Newer versions of the datasheets may override the contents of this document. 2. Feature Comparison Both flash device families have similar features and functions as shown in Table 2-1. Significant differences are highlighted in blue and may require special considerations. Table 2-1: Features Feature Vcc voltage range I/O mode*2 Sector Size Program Buffer Size Security OTP Hold# Pin Individual Block Protection Manufacturer ID 8Mb Device ID Macronix MX25L_06E 2.7V ~ 3.6V 1-1-1/1-1-2 4KB/64KB 256 Byte 512b Yes -C2h 20h/14h 16Mb 20h/15h 32Mb 20h/16h Atmel AT26DF*1 2.7V ~ 3.6V 1-1-1 4KB/32KB/64KB 256 Byte -Yes*3 Yes*4 1Fh 45h/01h 46h/00h – AT26DF161 46h/01h – AT26DF161A 47h/00h Note: 1. Atmel AT26DF series is divided into two families. One is AT26DF_A and the other is AT26DF_ (without “A”). 2. x-y-z in I/O mode indicates the number of active pins used for opcode(x), address(y) and data(z). 3. AT26DF161 and AT26DF321 don’t support HOLD# Pin. 4. Every physical sector of the Atmel device has a corresponding single-bit Sector Protection Register. P/N: AN-0238 1 Ver 01. June 21, 2013 APPLICATION NOTE 3. Performance Comparison Tables 3-1 and 3-2 show MX25L_06E series and AT26DF series AC performance which should be used as a reference for the design. Table 3-1: Read Performance Parameter Macronix MX25L_06E Normal Read (Max.) Fast Read (Max.) 15pf tCLQV / tV (Max.) 30pf 33MHz 86MHz 6ns 8ns Atmel AT26DF AT26DF_A AT26DF_ 33MHz 70MHz 66MHz 6ns*1*2 Note: 1. AT26DF081A/AT26DF161A tV condition is 15pF load at 70MHz, and 30pF load at 66MHz. 2. AT26DF161/AT26DF321 tV condition is 30pF. Table 3-2: Write Performance Parameter 4KB (typ.) Erase 32KB (typ.) 64KB (typ.) 8Mb (typ.) Chip Erase 16Mb (typ.) 32Mb (typ.) Byte Program Page Write/Erase Endurance P/N: AN-0238 Macronix MX25L_06E 60ms -0.7s 7s 14s 25s 9us 1.4ms 100,000 2 Atmel AT26DF AT26DF_A 50ms 250ms 0.4s 6s 12s -7us 1.2ms AT26DF161 50ms 350ms 0.7s -18s --1.5ms 100,000 AT26DF321 50ms 350ms 0.6s --36s 6us 1.5ms Ver 01. June 21, 2013 APPLICATION NOTE 4. DC Characteristics Comparison DC characteristics are similar for both device families. Table 4-1: Read / Write Current Parameter Macronix MX25L_06E Atmel AT26DF 8Mb 12mA (Max.) @ 86MHz 16Mb 25mA (Max.) @ 86MHz 32Mb 8Mb Standby Current 16Mb 32Mb Program Current 25mA (Max.) @ 86MHz 25uA (Max.) 25uA (Max.) 40uA (Max.) 20mA (Max.) 16mA (Max.) @ 70MHz 15mA (Max.) @ 66MHz*1 16mA (Max.) @ 70MHz*2 15mA (Max.) @ 66MHz 35uA (Max.) 35uA (Max.) 35uA (Max.) 18mA (Max.) Read Current @ 1xI/O Note: 1. Read Current of AT26DF161. 2. Read Current of AT26DF161A. Table 4.2 shows both families have similar Input/Output voltage ranges. Table 4-2: Input / Output Voltage Parameter Macronix MX25L_06E Atmel AT26DF Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage -0.5V (Min.) / 0.3VCC (Max.) 0.7VCC (Min.) / VCC+0.4V (Max.) 0.4V (Max.) VCC-0.2 (Min.) 0.3Vcc(Max.) 0.7Vcc (Min.) 0.4V (Max.) Vcc-0.2 (Min.) P/N: AN-0238 3 Ver 01. June 21, 2013 APPLICATION NOTE 5. Hardware Considerations Both devices are available in 8-SOP, 16-SOP, and 8-WSON packages with identical footprints. The figures below show the common packages and the pinout assignments for the Macronix and Atmel devices. A pull-up resistor needs to be added to the Macronix HOLD# pin when replacing an Atmel device that does not support the HOLD# function. Table 5-1: Packages Macronix 8Mb 16Mb 32Mb 8Mb MX25L8006E MX25L1606E MX25L3206E AT26DF081A Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes - Package 8-SOP (150mil) 8-SOP (200mil) 16-SOP (300mil) 8-WSON (6x5mm) Atmel 16Mb AT26DF161 AT26DF161A Yes Yes Yes Yes 32Mb AT26DF321 Yes Yes - 8-SOP (150mil & 200mil) CS# SO/SIO1 1 2 WP# 3 GND MX25L_06E 4 8 VCC CS# 7 6 HOLD# SO 1 2 SCLK WP# 3 5 SI/SIO0 GND AT26DF_A 4 CS# 8 VCC 7 6 HOLD# SO 1 2 SCK WP# 3 5 SI GND 4 AT26DF_ 8 VCC 7 6 NC 5 SI 16-SOP (300mil): NC 1 16 SCK VCC 2 15 SI NC NC 3 14 NC 13 NC NC 4 13 NC 12 NC NC 5 12 NC 6 11 NC NC 6 11 NC CS# 7 10 GND CS# 7 10 GND SO/SIO1 8 9 WP# SO 8 9 WP# HOLD#/SIO3 16 SCLK 3 15 14 SI/SIO0 NC 4 NC 5 NC VCC 1 2 NC MX25L3206E AT26DF321 8-WSON (6x5mm): CS# 1 8 VCC CS# 1 8 VCC SO/SIO1 2 7 HOLD# SO 2 7 HOLD# WP# 3 6 SCLK WP# p 3 6 SCK 5 SI/SIO0 GND 4 5 SI GND P/N: AN-0238 4 MX251606E 4 AT26DF161A Ver 01. June 21, 2013 SCLK APPLICATION NOTE 6. Software Considerations 6-1. Command Definition Basic command sets of both flash families are similar. Status Register and Configuration Register definitions may be slightly different, but the concepts are the same. Minor modifications to the algorithm may be necessary depending on your application. See the Macronix datasheet for a complete list of commands, as additional features are provided and not shown. Table 6-1: Command Comparison Instruction Instruction Type Read ID Read Write Register Other Command RDID READ FAST_READ DREAD WREN WRDI PP SP SE (4KB) BE (32KB) BE (64KB) CE RDSR WRSR RDSCUR WRSCUR PS US RSPR DP RES Description Read Identification Read Data Bytes Read Data Bytes at Higher Speed Dual Output Mode Read Write Enable Write Disable Byte/Page Program Sequential program Sector Erase (4KB) Block Erase (32KB) Block Erase (64KB) Chip Erase Read Status Register Write Status Register Read Security Register Write Security Register Protect Sector Unprotect Sector Read Sector Protection Registers Deep Power Down Release from Deep Power Down Macronix MX25L_06E Atmel AT26DF 9Fh 9Fh 03h 03h 0Bh 0Bh -3Bh 06h 06h 04h 04h 02h 02h -ADh or AFh*1 20h 20h -52h 52h or D8h D8h 60h or C7h 60h or C7h 05h 05h 01h 01h 2Bh -2Fh --36h -39h -3Ch B9h B9h ABh ABh Note: 1. AT26DF161 and AT26DF321 don’t support sequential program. P/N: AN-0238 5 Ver 01. June 21, 2013 APPLICATION NOTE 6-2. Status Register, and Security Register Both devices use registers to setup flash conditions, but there are some differences that designers need to be aware of as modifications to software may be needed. A detailed register comparison is shown in Table 6-2 and Table 6-3. If a detailed functional description of register bits is required please refer to the datasheets listed in Section 8. Status Register bits 0 (RDY/BSY), 1 (WEL), and 7 (SPRL) have the same function in the Atmel and Macronix devices. However, Status Register bits 2 through 6 are different, primarily due to differences in Write Protection methods. Table 6-2: Status Register Register Bit Macronix MX25L_06E Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Atmel AT26DF WIP; 1=write operation WEL; 1=write enable BP0; BP protection BP1; BP protection BP2; BP protection BP3; BP protection*1 0 SRWD; 1=SR write disable RDY/BSY; 1=busy WEL; 1=write enable SWP; Software Protection Status SWP; Software Protection Status WPP; 1=WP# deasserted EPE; 1=Erase/Program error SPM; Sequential Program Mode status*2 SPRL; Sector Protection Register Locked Note: 1. Bit5 of MX25L8006E is reserved, and value is 0. 2. Bit6 of AT26DF161 and AT26DF321 is reserved. Table 6-3: Security Register Register Bit Macronix MX25L_06E Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 P/N: AN-0238 Secured OTP indicator bit; 1=factory lock LDSO; 1=OTP lock down Reserved Reserved Reserved Reserved Reserved Reserved 6 Atmel AT26DF - - Ver 01. June 21, 2013 APPLICATION NOTE 6-3. Manufacturer ID and Device ID Manufacturer IDs are different. This permits software to identify the device manufacturer. The Device IDs are different from 8Mb to 32Mb densities. The same command is used to read the different IDs. Table 6-4: Manufacturer and Device ID Command Type Macronix MX25L_06E 8Mb 16Mb 32Mb C2h/20h/14h C2h/20h/15h C2h/20h/16h RDID 9Fh Atmel AT26DF AT26DF_A 1Fh/45h/01h 1Fh/46h/01h -- AT26DF_ -1Fh/46h/00h 1Fh/47h/00h 7. Summary The Macronix MX25L_06E and Atmel AT26DF have similar commands, functions, and features. Additionally, the supported package types have identical footprints and nearly identical pinout definitions. A pull-up resistor needs to be added to the Macronix HOLD# pin when replacing an Atmel device that does not support the HOLD# function. A more detailed analysis should be done if any of the “special” functions not supported by the Macronix flash are used, such as the Atmel 32KB erase size, Individual Block Write Protection or Sequential Programming. If common features are used in standard traditional modes, the replacement may need only minimal software modification. 8. References Table 8-1 shows the datasheet versions used for comparison in this application note. For the most current, detailed specification, please refer to the Macronix Website at http://www.macronix.com Table 8-1: Datasheet Version P/N: AN-0238 Datasheet Location Data Issued Version MX25L8006E MX25L1606E MX25L3206E AT26DF081A AT26DF161 AT26DF161A AT26DF321 Website Website Website Website Website Website Website FEB. 10, 2012 FEB. 23, 2012 FEB. 23, 2012 JUN, 2009 AUG, 2009 AUG, 2009 MAY, 2008 Rev. 1.2 Rev. 1.4 Rev. 1.4 Rev. G Rev. H Rev. D Rev. F 7 Ver 01. June 21, 2013 APPLICATION NOTE 9. Appendix Table 9-1 shows the basic part number and package information cross reference between Macronix MX25L_06E and Atmel AT26DF parts. Table 9-1: Part Number Cross Reference Density 8Mb Macronix Part No. MX25L8006EM1I-12G MX25L8006EM2I-12G MX25L1606EM1I-12G 16Mb MX25L1606EM2I-12G MX25L1606EZNI-12G MX25L3206EMI-12G MX25L3206EM2I-12G 32Mb Atmel Part No. AT26DF081A-SSU AT26DF081A-SU AT26DF161A-SSU AT26DF161-SU AT26DF161A-SU AT26DF161A-MU AT26DF321-S3U AT26DF321-SU Package 8-SOP 8-SOP 8-SOP Dimension 150 mil 208 mil 150 mil 8-SOP 208 mil 8-WSON 16-SOP 8-SOP 6x5mm 300 mil 208 mil 10. Revision Table 10-1: Revision History Revision Rev. 1.0 P/N: AN-0238 Description Date Issued Initial Release Jun. 21, 2013 8 Ver 01. June 21, 2013 APPLICATION NOTE 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-0238 9 Ver 01. June 21, 2013