APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G 1. Introduction This application note compares the Macronix 512Mb 1.8V OctaFlash MX25UM51245G serial flash and the Spansion S26KS512S parallel flash devices. This 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, packaging, command set, and other parameters. The information in this document is based on datasheets listed in Section 9. 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. Table 2-1: Features Feature Supply Voltage Range Frequency (max) READ (1-1-1) (1) FAST_READ (1-1-1)(1) OPI (8-8-8)(1) DTR (Double Transfer Rate) Page Program Size Sector Size Block Size Security OTP Size Program/Erase Suspend & Resume Burst Mode Read Adjustable Output Driver FastBoot Mode Configurable Dummy Cycles S/W Reset Command RESET# Pin Advanced Sector Protection Manufacturer ID Device ID Package Macronix MX25UM51245G Spansion S26KS512S 1.7V ~ 2.0V 1.7V~1.95 200MHz 166MHz Yes Yes Yes, Serial Flash protocol-like Yes, Parallel flash protocol-like Yes Yes 256B 512B 4KB 4KB 64KB 256KB 1KB 1KB Yes Yes Yes Yes Yes Yes Yes Yes Yes C2h 80h/3Ah 24-BGA (5x5 ball) Yes Yes Yes Yes Yes Yes 0001h 007Eh/0070h 24-BGA (5x5 ball) Note: 1. x-y-z in I/O mode indicates the number of active pins used for op-code(x), address(y) and data(z). P/N: AN-0428 1 Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G 3. Performance Comparison Tables 3-1 and 3-2 show MX25UM51245G and S26KS512S AC performance. Table 3-1: Read Performance Parameter Normal Read Fast Read OPI STR Read OPI DTR Read tCLQV / tCKD tQSQV/tDSS tQXQS/tDSH 1-1-1 8-8-8 8-8-8 DTR 15pF 30pF 10pF 100MHz DTR, 30pF 166MHz DTR, 15pF 200MHz DTR, 10pF 30pF 15pF 10pF Macronix MX25UM51245G 50MHz 133MHz(1) 200MHz 200MHz(2) 6ns 8ns 5ns 0ns 0ns 0ns 3.6ns 1.8ns 1.2ns Spansion S26KS512S 166MHz TBD(4) TBD TBD - Note: 1. MX25UM51245G Fast Read runs up to 133MHz with default dummy cycles. 2. MX25UM51245G OPI runs up to 200MHz with 20 dummy cycles and 104MHz with 10 dummy cycles. 3. All values in Table 3-1 are maximum value. 4. S26KS5122S doesn’t disclose this value in current datasheet. Table 3-2: Write Performance Parameter Macronix MX25UM51245G 4KB 30ms(typ) / 400ms(max) Erase 64KB 0.3s(typ) / 2s(max) 256KB Chip Erase / Bulk Erase 200s(typ) / 800s(max) Byte 20us(typ) / 30us(max) Program Word Page 0.2ms(256B)(typ) / 1.5ms(max) Program/Erase Cycles 100,000 (Endurance) P/N: AN-0428 2 Spansion S26KS512S 240ms(typ) / 725ms(max) 0.93s(typ) / 2.9s(max) 220s(typ) / 462s(max) 500us(typ) / 1260us(max) 0.475ms(512B)(typ) / 2.0ms(max) 100,000 Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G 4. DC Characteristics Both flash series characteristics are similar in primary features and functions. However, there are minor differences in DC characteristics which should be evaluated to determine their significance. Table 4-1: Read / Write Current Parameter Read Current @ OPI Standby Current Deep Power Down Current Write Current Macronix MX25UM51245G Spansion S26KS512S 55mA @ 200MHz STR 180mA @ 166MHz DTR - VCC 110mA @ 200MHz DTR 100mA @ 166MHz DTR - VCCQ 200uA 100uA 80uA 50uA @ 85C 60mA 100mA Note: All values in Table 4-1 are maximum. Table 4-2 compares I/O voltage levels between the two families. on some package options while Macronix does not. Spansion supports a Versatile I/O Voltage Table 4-2: Input / Output Voltage Parameter Macronix MX25UM51245G Input Low Voltage (VIL) -0.4V (min.) / 0.3VCC (max.) Input High Voltage (VIH) 0.7VCC (min.) / VCC+0.4V (max.) Output Low Voltage (VOL) 0.2V (max.) Output High Voltage (VOH) VCC-0.2 (min.) Spansion S26KS512S TBD(1) TBD 0.15VCCQ (max.) TBD Note: 1. S26KS5122S doesn’t disclose this value in current datasheet. P/N: AN-0428 3 Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G 5. Hardware Consideration The pin assignments of the 24-BGA package are not included in the S26KS512S datasheet listed in the References Section 8 of this application note. Therefore, the pinout shown in the December 15. 2014 S26KS KL-S PB.01 Product Brief is shown below for comparison. Devices are pin compatible. The S26KS512S has a differential input clock CK# on ball B1 and a RSTO# ball A2 not provided on the MX25UM51245G (these pins are NC (no connect) on the Macronix flash). 24-BGA (5x5 ball) MX25UM51245G A S26KS512S NC NC Reset # DNU B NC SCLK GND VCC NC C VSSQ CS# DQS SIO2 NC D VCCQ SIO1 SIO0 SIO3 SIO4 E SIO7 SIO6 SIO5 VCCQ VSSQ 1 2 3 4 Reset# signal is internal pull high 5 During high frequency access, the time scale may become compressed (as compared with traditional Serial NOR flash) resulting in reduced timing margin. The MX25UM51245G has both an SCLK pin and a DQS pin to control data output synchronously at high speed. Systems which only use the SCLK pin to latch data output, may not have enough timing margin to latch data in specific clock cycle under high frequency. S26KS512S uses differential clock CK pin and CK# pin with R(W)DS pin C3 combination to control data output timing. Both devices adapt different methods of supporting stable and valid data for MCU to access flash data under high frequency operation P/N: AN-0428 4 Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G 6. Octa I/O Protocol and High Frequency Both devices support an Octa I/O interface with low latency access. However, they use different protocols to implement Octa I/O functionality and achieve high frequency operation. In systems which implement an Octa I/O interface, it is necessary to modify H/W and S/W algorithms to achieve Octa I/O operation. 6-1. Octa I/O MX25UM51245G OctaFlash support Single I/O (x1) mode for backward compatibility, and support Octa I/O mode (x8) to significantly reduce flash access time and throughput. Both modes use a serial flash protocol to reduce system H/W and S/W design effort. The S26KS512S device supports Octa I/O mode only. Because it doesn’t support a serial flash protocol it may require more time to revise the command sequence, increasing system design time. Not only is new command protocol verification needed, but also H/W and S/W implementation will require changes. P/N: AN-0428 5 Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G 6-2. Software Considerations MX25UM51245G basic command set and 4-Byte command set follow a serial flash command protocol in STR x1 operation. A CMD/CMD# protocol is needed in STR/DTR x8 operation. In comparison, the S26KS512S does not use a traditional serial flash command protocol. Algorithm modifications are necessary to access both flash devices on the application. The most common commands are shown in Tables 6-1 to 6-9. Table 6-1: MX25UM51245G Basic SPI Command Set (x1) Instructio n Type Read Write Read ID Register Instruction Macronix MX25UM51245G READ3B FAST_READ3B WREN WRDI PP3B SE3B BE3B CE ENSO EXSO RDID RDSR WRSR WRCR RDCR RDCR2 WRCR2 RDSCUR WRSCUR ESFBR RDFBR WRFBR Description Normal Read Fast Read (1-1-1) Write Enable Write Disable Page Program Sector Erase Block Erase 64KB Chip Erase / Bulk Erase Enter Secured OTP Exit Secured OTP Read Identification Read Status Register Write Status Registers Write Configuration Registers Read Configuration Register Read Configuration Register2 Write Configuration Register2 Read Security Register Write Security Register Erase Fast Boot Register Read FastBoot Register Write FastBoot Register Op-code Macronix MX25UM51245G 03h 0Bh 06h 04h 02h 20h D8h 60h or C7h B1h C1h 9Fh 05h 01h 01h 15h 71h 72h 2Bh 2Fh 18h 16h 17h Table 6-2: MX25UM51245G 4-Byte SPI Command Set (x1) Instruction Macronix MX25UM51245G READ4B Read FAST_READ4B PP4B SE4B Write BE4B Notes: Address fields are 4-Bytes. Instruction Type P/N: AN-0428 Description Normal Read Fast Read (1-1-1) Page Program (1-1-1) Sector Erase Block Erase 64KB/256KB 6 Op-code Macronix MX25UM51245G 13h 0Ch 12h 21h DCh Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G Table 6-3: MX25UM51245G Other SPI Command Set (x1) Instruction Type Other Instruction Macronix MX25UM51245G SBL RSTEN RST NOP PGM/ERS Suspend PGM/ERS Resume RDSFDP DP RDP Description Set Burst Length Reset Enable Software Reset Memory No Operation Program/Erase Suspend Program/Erase Resume Read SFDP Deep Power Down Release from Deep Power Down Op-code Macronix MX25UM51245G C0h 66h 99h 00h B0h 30h 5Ah B9h ABh Table 6-4: MX25UM51245G OPI Basic Command Set (x8) Instructio n Type Read Write Read ID Register P/N: AN-0428 Instruction Macronix MX25UM51245G 8READ 8DTRD WREN WRDI PP SE BE CE ENSO EXSO RDID RDSR WRSR WRCR RDCR RDCR2 WRCR2 RDSCUR WRSCUR ESFBR RDFBR WRFBR Description Octa IO Read Octa IO DT Read Write Enable Write Disable Page Program Sector Erase Block Erase 64KB Chip Erase / Bulk Erase Enter Secured OTP Exit Secured OTP Read Identification Read Status Register Write Status Registers Write Configuration Registers Read Configuration Register Read Configuration Register2 Write Configuration Register2 Read Security Register Write Security Register Erase Fast Boot Register Read FastBoot Register Write FastBoot Register 7 Op-code Macronix MX25UM51245G 03h-13h EEh-11h 06h-F9h 04h-FBh 12h-EDh 21h-DEh DCh-23h 60h-9Fh/C7h-38h B1h-4Eh C1h-3Eh 9Fh-60h 05h-FAh 01h-FEh 01h-FEh 15h-EAh 71h-8Eh 72h-8Dh 2Bh-D4h 2Fh-D0h 18h-E7h 16h-E9h 17h-E8h Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G Table 6-5: MX25UM51245G OPI Other Command Set (x8) Instruction Type Other Instruction Macronix MX25UM51245G SBL RSTEN RST NOP PGM/ERS Suspend PGM/ERS Resume RDSFDP DP RDP Description Set Burst Length Reset Enable Software Reset Memory No Operation Program/Erase Suspend Program/Erase Resume Read SFDP Deep Power Down Release from Deep Power Down Op-code Macronix MX25UM51245G C0h-3Fh 66h-99h 99h-66h 00h-FFh B0h-4Fh 30h-CFh 5Ah-A5h B9h-46h ABh-54h Table 6-6: S26KS512S Basic Command Set Basic Command Table of MXS26KS512S Read Reset/ ASO Exit Word Program Write to Buffer Chip Erase Sector Erase Status Register Read Status Register Clear Blank Check Addr RA XXX 555h 555h 555h 555h 555h 555h (SA) 555h Evaluate Erase Status (SA) 555h Data RD F0h/ FFh AAh AAh AAh AAh 70h 71h 33h D0h 2AAh 55h 555h A0h PA *4 PD 2AAh 55h *1 SA 25h SA *2 WC *3 WBL PD WBL PD 2AAh 55h 555h 80h 555h AAh 2AAh 55h 555h 10h 2AAh 55h 555h 80h 555h AAh 2AAh 55h SA 30h XXX RD Command st 1 Bus Cycle nd 2 Bus Cycle rd 3 Bus Cycle th 4 Bus Cycle th 5 Bus Cycle th Addr Data Addr Data Addr Data Addr Data Addr Data 6 Bus Cycle Note: 1. SA: Sector Address 2. WC: Word Count which count number is N-1 3. WBL: Write Buffer Location 4. PD: Write Data P/N: AN-0428 8 Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G Table 6-7: S26KS512S Basic Command Set - 2 Basic Command Table of MXS26KS512S Command st 1 Bus Cycle nd 2 Bus Cycle rd 3 Bus Cycle th 4 Bus Cycle Program POR Timer Register Read POR Timer Register Load Volatile Config Register Read Volatile Config Register Program Non-Volatile Config Register Erase Non-Volatile Config Register 555h AAh 2AAh 55h 555h 34h XXX POR Time 555h AAh 2AAh 55h 555h 3Ch XXX RD POR Time 555h AAh 2AAh 55h 555h 38h XXX 555h AAh 2AAh 55h 555h C7h XXX 555h AAh 2AAh 55h 555h 39h XXX 555h AAh 2AAh 55h 555h C8h VCR RD VCR NVCR Addr Data Addr Data Addr Data Addr Data Read Non-Volatile Config Register 555h AAh 2AAh 55h 555h C6h XXX RD NVCR Table 6-8: S26KS512S Basic Command Set - 3 Basic Command Table of MXS26KS512S Command st 1 Bus Cycle nd 2 Bus Cycle rd 3 Bus Cycle th 4 Bus Cycle P/N: AN-0428 555h AAh 2AAh 55h 555h B9h Addr Data Enter Deep Power Down 555h AAh 2AAh 55h XXX B9h Load Interrupt Config Register 555h AAh 2AAh 55h 555h 36h XXX ICR 9 Read Interrupt Config Register 555h AAh 2AAh 55h 555h C4h XXX RD ICR Load Interrupt Status Register 555h AAh 2AAh 55h 555h 37h XXX ISR Read Interrupt Status Register 555h AAh 2AAh 55h 555h 35h XXX RD ISR Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G Table 6-9: S26KS512S Basic Command Set - 4 Basic Command Table of MXS26KS512S Erase Suspend Erase Resume Program Suspend Program Resume ID Entry Addr XXX XXX XXX XXX 555h Data Addr Data B0h 30h 51h 50h AAh 2AAh 55h (SA) 555h 90h Command st 1 Bus Cycle nd 2 Bus Cycle rd 3 Bus Cycle Addr Data CFI Enter (SA) 55h 98h ID-CFI Read (SA) RA RD 6-3. Page Program Length Alignment Page Program maximum lengths are different between the MX25UM51245G and the S26KS512S. Software modification is necessary if the longer page program length is being used. The Page Program length should be set to a maximum of 256 bytes and the 1 to 256 bytes to be programmed must fall within the same 256-Byte page boundary. In addition, Macronix recommends that data be written in multiples of 256-byte pages, or at least in multiples of 16-byte aligned chunks, to enhance data reliability. 6-4. Sector Sizes The MX25UM51245G has uniform 64KB blocks that are each subdivided into sixteen 4KB sectors. The S26KS512S has uniform 256KB sectors and eight 4KB sectors in parameter sectors. Software adjustments are needed to accommodate the smaller blocks provided by the MX25UM51245G. Please refer to the datasheets listed in Section 9 for memory organization details. 6-5. Read Latency While the Read latency of the MX25UM51245G and S26KS512S in DTR OPI (x8) mode a the same, there are differences when crossing a page boundary. For the S26KS512S, non-page-aligned reads crossing a page boundary may incur a latency from 0 to 7 clock cycles depending on the initial starting address within the page and the dummy cycle setting. The MX25UM51245G has no such limitation. P/N: AN-0428 10 Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G 6-6. Block Protection Mode The MX25UM51245G use Status Register BP (Block Protect) bits to software write protect areas of memory, but the S26KS512S uses advance protection mode to set sector protection function. 6-7. Advanced Sector Protection Mode Both device families offer an Advanced Sector Protection mode used to provide volatile and nonvolatile individual sector (or block) protection, but there are differences that need to be accommodated if this feature is used. 6-8. Status Register, Configuration Register, and Security Register Both devices use registers to configure flash operation modes, but there are some differences that designers need to be aware of as software modifications may be needed. A detailed register comparison is shown in Table 6-10 to 6-13. If a detailed functional description of register bits is required, please refer to the datasheets listed in Section 9. Table 6-10: Status Register Register Bit Macronix MX25UM51245G Bit0 WIP; 1=write operation Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Bit 8 - 15 WEL; 1=write enable BP0; BP protection BP1; BP protection BP2; BP protection BP3; BP protection Reserved Reserved - Spansion S26KS512S ESTAT; 1=previous Erase complete successfully SLSB; 1=lock error PSSB; 1=program suspend WBASB; 1=write buffer PGM abort PSB; 1=program fail ESB; 1=erase fail ESSB; 1=erase suspend DRB; 1=ready Reserved Note:1. Macronix MX25UM51245G Program and Erase Error bits are located in bits 5 and 6 of its Security Register. Table 6-11: Configuration Register/ Interrupt Configuration Register P/N: AN-0428 Register Bit Bit0 Bit1 Bit2 Bit3 Macronix MX25UM51245G ODS0; Output driver strength ODS1; Output driver strength ODS2; Output driver strength TB; 1=Bottom area protect Bit4 PBE; 1=Preamble bit Enable Bit5 - 7 Bit 8 - 14 Bit 15 Reserved - 11 Spansion S26KS512S Reserved Reserved Reserved Reserved READY; 1=Ready/Busy transition not transition INT# output Reserved Reserved INT# Enable; 1=INT# disable Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G Table 6-12: Security Register/ Interrupt Status Register Register Bit Bit0 Bit1 Bit2 Bit3 Macronix MX25UM51245G Secured OTP; 1=factory lock LDSO; 1=OTP lock down PSB; 1=Program suspend ESB; 1=Erase suspend Bit4 Reserved Bit5 Bit6 Bit7 Bit8 - 15 P_FAIL; 1=Program fail E_FAIL; 1=Erase fail WPSEL; 1=Individual WP - Spansion S26KS512S Reserved Reserved POR detect; 1=POR has not occurred Reserved READY; 1=Ready/Busy transition has not occurred Reserved Reserved Reserved Reserved Table 6-13: MX25UM51245G Configuration Register-2 Address Register Bit Symbol 00000000h 00000200h 00000300h 00000500h 40000000h Bit0 Bit1 Bit2 – Bit7 Bit0 Bit1 Bit2 – Bit3 Bit4 – Bit6 Bit7 Bit0 – Bit2 Bit3 – Bit7 Bit0 Bit1 – Bit7 Bit0 Bit1 Bit2 – Bit7 SOPI; STR OPI Enable DOPI; DTR OPI Enable Reserved DQSPRC; DTR DQS pre-cycle DOS; DQS on STR mode Reserved DQSSKW; SIO to DQS skew Reserved DC; Dummy cycle Reserved PPTSEL; Preamable pattern selection Reserved DEFSOPI#; Enable SOPI after power on DEFDOPI#; Enable DOPI after power on Reserved Define 00=SPI; 01=STR OPI 10=DTR OPI; 11=inhibit 1=1cycle 1=enable 00=inhibit; 01=default DOPI 10=default SOPI; 11=SPI 6-9. Manufacturer and Device Identification Numbers Table 6-7 compares the Manufacturer and Device IDs returned by the RDID commands. Table 6-14: Manufacturer and Device ID Command Type Macronix MX25UM51245G RDID C2h/80h/3Ah P/N: AN-0428 12 Spansion S26KS512S 0001h/007Eh/0070h Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G 7. Summary The Macronix MX25UM51245G OctaFlash and Spansion S26KS512S both support an Octa I/O interface. Additionally, the supported 24-BGA package are expected to have similar footprints and nearly identical pin out definitions. Software modification will be needed to accommodate differences in the Octa I/O protocol, differences in status and configuration register bit assignments and the commands used to access them. A more detailed analysis should be done if functions such as Advanced Sector Protection, or DTR are used. 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 Datasheet MX25UM51245G Location Website S26KS512S Website Data Issued Oct. 02, 2015 Version Rev. 0.04 Jul. 24, 2015 Rev. C 9. Appendix Table 9-1 shows the basic part number and package information cross reference between Macronix MX25UM51245G and Spansion S26KS512S parts. Table 9-1: Part Number Cross Reference Density 512Mb(1) Macronix Part No. Dimension MX25UM51245GXDI0A Spansion Part No. S26KS512SDPBHI02 Package (1) 24-BGA 5x5 ball MX25UM51245GXDI1A (1) S26KS512SDPBHI02 24-BGA 5x5 ball Note: 1. 0A: default SPI mode; 1A: default DOPI mode; 10. Revision History Revision 1.0 P/N: AN-0428 Description Initial Release 13 Date Jan. 01, 2016 Ver.1, Jan. 01, 2016 APPLICATION NOTE Comparing Spansion S26KS512S with Macronix MX25UM51245G 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. 2016. 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-0428 14 Ver.1, Jan. 01, 2016