APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 1. Introduction Macronix offers MX29GL_E high performance parallel flash in densities from 32Mb to 512Mb. MX29GL_E and Spansion S29GL_P devices have similar features, performance, and command codes, but there are differences. This application note highlights these differences so that the system designer can accommodate them if necessary when migrating from Spansion S29GL_P devices to equivalent Macronix MX29GL_E parallel flash products. The information in this document is based on datasheets listed in Section 11. 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 Macronix MX29GL_E Spansion S29GL_P Vcc voltage range 2.7V ~ 3.6V 2.7V ~ 3.6V *1 2.7V ~ 3.6V (H/L type ) 2.7V ~ 3.6V (01/02 type*1) I/O voltage range 1.65V ~ 3.6V (U/D type*2) 1.65V ~ 3.6V (V1/V2 type*2) Bus Width x16 / x8 x16 / x8 Sector Size 128KB 128KB Page Read buffer 8Words / 16Bytes 8Words / 16Bytes Write buffer 32Words / 64Bytes 32Words / 64Bytes WP# pin function Highest/Lowest address sector Highest/Lowest address sector Password (64bits) Password (64bits) Software Protected Mode Solid Protection*3 Non-volatile Protection*3 OTP Security Region 128Words / 256Bytes 128Words / 256Bytes Manufacture ID C2h 01h 128Mb 227E/2221/2201 227E/2221/2201 Device ID 256Mb 227E/2222/2201 227E/2222/2201 512Mb 227E/2223/2201 227E/2223/2201 56-TSOP (14x20mm) 56-TSOP (14x20mm) Package 64-LFBGA (11x13mm) 64-LFBGA (11x13mm) Note: 1. Macronix ‘H/L’ is same as Spansion ‘01/02’ definition. H / 01 type is “VI/O = Vcc = 2.7 ~ 3.6V, highest address sector protected.” L / 02 type is “VI/O = Vcc = 2.7 ~ 3.6V, lowest address sector protected.” 2. Macronix ‘U/D’ is same as Spansion ‘V1/V2’ definition. Macronix: 128Mb~256Mb; Spansion: 128Mb~512Mb U / V1 type is “VI/O = 1.65 ~ Vcc, Vcc = 2.7 ~ 3.6V, highest address sector protected.” D / V2 type is “VI/O = 1.65 ~ Vcc, Vcc = 2.7 ~ 3.6V, lowest address sector protected.” 3. Solid Protection and Persistent Protection perform the same function. P/N: AN0191 1 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 3. Performance Table 3-1 shows MX29GL_E series and S29GL_P series Read/Write performance. Table 3-1: Read Function Performance (Random Read and Page Read) Read function Macronix MX29GL_E Spansion® S29GL_P 90ns (H/L type) 100ns (01/02 type) 128Mb 110ns (U/D type) 110ns (V1/V2 type) Random Read 100ns (H/L type) 100ns (01/02 type) 256Mb Access time 110ns (U/D type) 110ns (V1/V2 type) 110ns (01/02 type) 512Mb 110ns (H/L type) * 120ns (V1/V2 type) 25ns (H/L type ) Page Access time 25ns 30ns (U/D type) Note: 1. Macronix 512Mb device only offers VI/O = Vcc (H/L type). 2. System needs to align read speed for compared 3. Align ‘wait state’ setting of the controller or SoC, if speed is critical factor in system. Table 3-2: Write Function Performance (Program and Erase) Write Function Macronix MX29GL_E Write Buffer Program time 200us Word Program time 11us Sector Erase time 0.6s 128Mb 64s Chip Erase time 256Mb 128s 512Mb 256s Write/Erase Cycles (Endurance) 100,000 Spansion® S29GL_P 480us 60us 0.5s 64s 128s 256s 100,000 Note: 1. All values shown in Table 3-2 are typical values. P/N: AN0191 2 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 4. DC Characteristics Both flash series characteristics are similar in primary features and functions. However, there are minor differences in DC characteristics (Table 4-1). Designers should evaluate these differences to determine if they would be a concern in their application. Table 4-1: Read / Write Current DC Characteristic Read Current @ 5MHz Page Read Current @ 33MHz 128Mb Standby Current 256Mb 512Mb 128Mb Deep Power Down 256Mb Current 512Mb Write Current Macronix MX29GL_E Spansion® S29GL_P 50mA 20mA 100uA 100uA 200uA 10uA (typ) 10uA (typ) 20uA (typ) 30mA 55mA 120mA 5uA 5uA 5uA 90mA Note: All currents in Table 4-1 are maximum values unless otherwise indicated. Generally, both have similar input and output voltage ranges, but there are some differences which are highlighted in blue in Table 4-2 below. Designers should consider these differences during system design. Table 4-2: Input / Output Voltage DC Characteristic Macronix MX29GL_E Very High Voltage Input Low 128Mb/256Mb Voltage 512Mb Input High 128Mb/256Mb Voltage 512Mb Output Low Voltage Output 128Mb/256Mb High 512Mb Voltage 9.5V ~ 10.5V*1 -0.1V (Min) / 0.3VI/O (Max) -0.1V (Min) / 0.3VCC (Max)*2 0.7VI/O (Min) / VI/O+0.3V (Max) 0.7VCC (Min) / VCC+0.3V(Max)* 2 0.45V (Max) 0.85VI/O (Min) 0.85VCC (Min)*2 Spansion® S29GL_P 11.5V ~ 12.5V*1 -0.1V(Min) / 0.3VI/O(Max) -0.1V(Min) / 0.3VI/O(Max) 0.7VI/O (Min) / VI/O+0.3V (Max) 0.7VI/O(Min) / VI/O+0.3V(Max) 0.15VI/O (Max) 0.85VI/O (Min) 0.85VI/O (Min) Note: 1. The major difference is Very High Voltage range, which may damage the flash device if the maximum level is exceeded. 2. Macronix 512Mb devices only offer VI/O = VCC option, the Input and Output Voltage are defined by VCC range. P/N: AN0191 3 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 5. Hardware Consideration The Macronix device has a similar footprint with the Spansion® device. Refer to the 56-TSOP and 64-LFBGA diagrams in Figure 5-1. Note: Macronix 512Mb devices are only available with the VI/O = Vcc option; VI/O = 1.65 ~ Vcc is not supported. Figure 5-1: Package and Pin Layout Comparison 56-TSOP (14x20mm) A23 A22 A15 A14 A13 A12 A11 A10 A9 A8 A19 A20 WE# RESET# A21 WP#/ACC RY/BY# A18 A17 A7 A6 A5 A4 A3 A2 A1 NC NC 1 NC on MX29GL128E 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 NC for MX29GL128E/256E 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 MX29GL_E A24 NC A16 BYTE# GND Q15/A-1 Q7 Q14 Q6 Q13 Q5 Q12 Q4 VCC Q11 Q3 Q10 Q2 Q9 Q1 Q8 Q0 OE# GND CE# A0 NC VI/O A23 A22 A15 A14 A13 A12 A11 A10 A9 A8 A19 A20 WE# RESET# A21 WP#/Acc RY/BY# A18 A17 A7 A6 A5 A4 A3 A2 A1 NC NC 1 NC on S29GL128P 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 NC on S29GL128P/256P 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 S29GL_P A24 RFU A16 BYTE# VSS DQ15/A-1 DQ7 DQ14 DQ6 DQ13 DQ5 DQ12 DQ4 VCC DQ11 DQ3 DQ10 DQ2 DQ9 DQ1 DQ8 DQ0 OE# VSS CE# A0 NC VI/O Macronix GND (Pin 52, Pin 33) = Spansion VSS ( Pin 52, Pin 33) 64-LFBGA (11x13mm) MX29GL_E S29GL_P 8 NC A22 A23 VIO GND A24 RFU NC 8 NC A22 A23 VIO VSS A24 NC NC 7 A13 A12 A14 A15 A16 BYTE # Q15/ A-1 GND 7 A13 A12 A14 A15 A16 BYTE # Q15/ A-1 VSS 6 A9 A8 A10 A11 Q7 Q14 Q13 Q6 6 A9 A8 A10 A11 D7 D14 D13 D6 5 WE# RESET# A21 A19 Q5 Q12 VCC Q4 5 WE# RESET# A21 A19 D5 D12 VCC D4 4 RY/ BY# WP#/ ACC A18 A20 Q2 Q10 Q11 Q3 4 RY/ BY# WP#/ Acc A18 A20 D2 D10 D11 D3 3 A7 A17 A6 A5 Q0 Q8 Q9 Q1 3 A7 A17 A6 A5 D0 D8 D9 D1 2 A3 A4 A2 A1 A0 CE# OE# GND 2 A3 A4 A2 A1 A0 CE# OE# VSS 1 NC NC NC NC NC VIO NC NC 1 NC NC NC NC NC VIO NC NC E F G H E F G H A B C D C8: NC on MX29GL128E F8: NC on MX29GL128E/256E P/N: AN0191 A B C D C8: NC on S29GL128P F8: NC on S29GL128P/256P 4 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 6. Software Considerations Basic command sets and write-status checking methods are similar between both flash families. The algorithm descriptions may be slightly different, but the concepts are the same. 6-1 Basic Command Table (Word Mode) MX29GL_E and S29GL_P have the same basic command set. The Read operation and Write command could be used directly without any modification. Table 6-1 below shows the command set in Word mode. Table 6-1: Basic Command Table Write Chip Sector to Erase Erase Buffer Program/ Erase Suspend Program/ Erase Resume 555h XXX XXX AAh AAh B0h 30h 2AAh 2AAh 2AAh 55h 55h 55h 55h Addr 555h SA*1 555h 555h Data A0h 25h 80h 80h Addr Addr SA 555h 555h Data Data N-1*2 AAh AAh Addr WA*3 2AAh 2AAh Data WD*4 55h 55h Addr WBL*5 555h SA Data WD 10h 30h Command Read Reset Program 1st Bus Cycle 2nd Bus Cycle 3rd Bus Cycle 4th Bus Cycle 5th Bus Cycle 6th Bus Cycle Addr Addr XXX 555h 555h 555h Data Data F0h AAh AAh Addr 2AAh Data Note: 1. SA: Sector Address 2. N-1: Word Count 3. WA: Write Address 4. WD: Write Data 5. WBL: Write Buffer Location P/N: AN0191 5 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 6-2 Write Status Checking Method When a flash program/erase operation is in progress, either the “Polling Method” or “Toggle Bit Method” may be used to monitor the operation. Both are standard algorithms in parallel flash and can be used for both device families. Polling Method: Polling method checks Q7 (data complement bit) and Q5 (time out bit) values during the operation. After the operation has finished, Q7 will output true data. Toggle Bit Method: The toggle bit method checks the Q6 (toggle bit) value during writes. When the write operation ends, Q6 will stop toggling. Start Start Read Q7~Q0 Twice Read Q7~Q0 at valid address No Q6 Toggle ? No Q7 = Data# ? Yes Yes No No Q5 = 1 ? Q5 = 1 ? Yes Yes Read Q7~Q0 Twice Read Q7~Q0 at valid address Q7 = Data# ? No No Q6 Toggle? Yes Yes Fail Fail Pass Polling Method P/N: AN0191 Pass Toggle Bit Method 6 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 7. Manufacturer ID & Device ID Command Manufacturer IDs are different and permit software to identify the device manufacturer. The same command set is used read the different Manufacturer IDs. Device IDs are the same. Table 7-1: Manufacturer and Device ID Command Definitions Manufacturer ID Device ID Flash Vender MX29GL_E S29GL_P MX29GL_E S29GL_P 1st Bus Cycle (command) 2nd Bus Cycle (command) 3rd Bus Cycle (command) 4th Bus Cycle (ID output) Address Data Address Data Address Data Address Data Address 555h AAh 2AAh 55h 555h 90h X00h C2h 555h AAh 2AAh 55h 555h 90h X00h 01h 555h AAh 2AAh 55h 555h 90h X01h 227Eh X0Eh 5th Bus Cycle (ID output) Data 2221h (128Mb) 2222h (256Mb) 2223h (512Mb) 6th Bus Cycle (ID output) Address Data X0Fh 2201h 555h AAh 2AAh 55h 555h 90h X01h 227Eh X0Eh 2221h (128Mb) 2222h (256Mb) 2223h (512Mb) X0Fh 2201h Note. 1. Device ID can be read out after Manufacturer ID with proper address and does not need another command sequence. 2. Use Reset command (F0h) to return to normal read mode. P/N: AN0191 7 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 8. Power-Up timing Macronix and Spansion power-up sequences are similar, but the timing is slightly different. Check the system timing to determine if a timing adjustment is needed. Table 8-1: Power-Up Timing H/W Timing Characteristic Tvr (Vcc Rise Time) Tvcs or tVCS(Vcc Setup Time) Tvios or tVIOS (Vio Setup time) Macronix MX29GL_E 20us/V (min.) / 500ms/V (max.) 500us (min) 500us (min) Vcc VI/O Spansion® S29GL_P N/A 300us (min) 300us (min) Tvcs/tVCS Tvr Tvios/tVIOS Tvr CE AC timing at device power up 9. Hardware Reset# Pin Timing Macronix and Spansion both offer a hardware reset function. The operation is the same, but the timing is slightly different. System timing may need to be adjusted for the auto algorithm and non-auto algorithm (Figure 9-1). Table 9-1: Reset# Timing Hardware Timing Characteristic Trh or tRH (Reset# high to Read) During Auto Trp1 or tRP Algorithm mode*1 (Reset# pulse width) Tready1 (Reset# low to read or write) During Non-Auto Trp2 or tRP Algorithm mode*1 (Reest# pulse width) Tready2 (Reset# low to read or write) Macronix MX29GL_E 200ns (min) Spansion® S29GL_P 200ns (min) 10us (min) 200ns (min) 20us (max) N/A 500ns (min) 200ns (min) 500ns (max) N/A Macronix defines different reset timing between auto and non-auto algorithm; Spansion® defines the same value in both. P/N: AN0191 8 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E Fig 9-1: Reset Timing Needed for Auto vs. Non-Auto Algorithm Mode CE#, OE# || CE#, OE# Trb Trh/tRH WE# || RY/BY# Trb Tready1 RY/BY# Reset # || || Reset # Tready2 Trp1/tRP Trp2/tRP During auto algorithm mode During non-auto algorithm 10. Summary Macronix MX29GL_E and Spansion S29GL_P Parallel Flash occupy the same PCB footprint and have similar features. Overall, the S29GL_P to MX29GL_E migration may only require minimal firmware modifications if any. 11. Data Sheet Version Table 11-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 11-1: Datasheet Version Datasheet Location Date Issue Revision MX29GL128E MX29GL256E MX29GL512E S29GL_P Website Website Website Website Dec. 21, 2011 Jul. 26, 2011 Jun. 12, 2012 Nov. 17, 2011 Rev. 1.5 Rev. 1.4 Rev. 1.2 Rev. A13 Note: 1. Macronix data sheet is subject to change without notice. 2. For more functional and parametric specifications, please refer to the datasheet on the Macronix Website at http://www.macronix.com/ and go to: Products/Flash Memory/Parallel Flash. P/N: AN0191 9 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 12. Appendix Cross Reference Table 12-1 shows basic part number and package information for the Macronix MX29GL_E and Spansion® S29GL_P product families. Table 12-1: Part Number Cross Reference Density Macronix Part Spansion Part MX29GL128EHT2I-90G S29GL128P10TFI01 MX29GL128ELT2I-90G S29GL128P10TFI02 MX29GL128EUT2I-11G S29GL128P11TFIV1 MX29GL128EDT2I-11G S29GL128P11TFIV2 128Mb MX29GL128EHXFI-90G S29GL128P10FFI01 MX29GL128ELXFI-90G S29GL128P10FFI02 MX29GL128EUXFI-11G S29GL128P11FFIV1 MX29GL128EDXFI-11G S29GL128P11FFIV2 MX29GL256EHT2I-90Q S29GL256P10TFI01 MX29GL256ELT2I-90Q S29GL256P10TFI02 MX29GL256EUT2I-11G S29GL256P11TFIV1 MX29GL256EDT2I-11G S29GL256P11TFIV2 256Mb MX29GL256EHXFI-90Q S29GL256P10FFI01 MX29GL256ELXFI-90Q S29GL256P10FFI02 MX29GL256EUXFI-11G S29GL256P11FFIV1 MX29GL256EDXFI-11G S29GL256P11FFIV2 MX29GL512EHT2I-10Q S29GL512P11TFI01 MX29GL512ELT2I-10Q S29GL512P11TFI02 512Mb MX29GL512EHXFI-10Q S29GL512P11FFI01 MX29GL512ELXFI-10Q S29GL512P11FFI02 Package Dimension 56-TSOP 14x20mm 64-LFBGA 11x13x14mm 0.6mm ball 56-TSOP 14x20mm 64-LFBGA 11x13x14mm 0.6mm ball 56-TSOP 14x20mm 64-LFBGA 11x13x14mm 0.6mm ball Note: 1. MX29GL512E only offers VI/O=Vcc option, can’t cover Spansion® VI/O range. P/N: AN0191 10 Ver.1, Jun. 07, 2012 APPLICATION NOTE Comparing Spansion® S29GL_P with Macronix MX29GL_E 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. 2011~2012. 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: AN0191 11 Ver.1, Jun. 07, 2012