Replacing Spansion S25FL1_K with Macronix MX25L_35E

APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
1. Introduction
This application note s e r v e s a s a guide to replace the Spansion S25FL132K and S25FL164K with
the Macronix MX25L3235E and MX25L6435E 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
Type / Function
VCC Voltage Range
Normal Read Clock Frequency
*1
Macronix
MX25L32/6435E
2.7V ~ 3.6V
Spansion
S25FL132/64K
2.7V ~ 3.6V
50MHz
50MHz
104MHz
108MHz
(DREAD) (1-1-2) *1
86MHz
108MHz
(2READ) (1-2-2)
*1
86MHz
108MHz
(QREAD) (1-1-4)
*1
104MHz
108MHz
Quad I/O
(4READ) (1-4-4)
Configurable Dummy Cycle
*1
104MHz
108MHz
YES
YES
Fast Read
Dual Output
Dual I/O
Quad Output
(1-1-1)
HOLD# Pin
YES
YES
Sector Size
4KB/32KB/64KB
4KB/64KB
Program Buffer Size
256Byte
256Byte
Security OTP
512Byte
3 x 256Byte
SFDP (Serial Flash Discoverable Parameters)
YES
YES
Deep Power Down
YES
YES
XiP / Performance Enhanced Mode
YES
YES
Block Protection Mode (BP bits)
YES
YES
Individual Volatile Block Write Protection Mode
YES
-
S/W Reset Command
YES
-
Program/Erase Suspend and Resume
-
YES
Wrap Around Burst Read Mode
-
YES
100K
100K
Program/Erase Cycles
Note: 1. x-y-z in I/O mode indicates the number of active pins used for opcode(x), address(y) and data(z).
P/N: AN-0262
1
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
3. Package and Pin-out
Both devices are available in 209mil 8-pin SOP, 300mil 16-pin SOP and 6x5mm 8-SON
packages with similar footprints and pin-outs. At the 64Mb density, both manufacturers
provide a compatible 24-TFBGA as well. Please consult the latest Macronix datasheet for
any possible package additions.
Table 3-1: Packages (32Mb)
Packages
8-WSON(6x5mm)/8-USON(6x5mm)
8-SOP (150mil)
8-SOP (209mil)
16-SOP (300mil)
24-TFBGA
Table 3-2: Packages (64Mb)
Packages
Macronix MX25L3235E
YES
YES
YES
-
Spansion S25FL132K
YES
YES
YES
YES
YES
Macronix MX25L6435E
Spansion S25FL164K
YES
YES
YES
YES
YES
YES
YES
YES
YES
8-WSON(6x5mm)/8-USON(6x5mm)
8-WSON (8x6mm)
8-SOP (209mil)
16-SOP (300mil)
24-TFBGA
Figures 3-1 through 3-4 show that supported packages have similar footprints and pinouts.
Figure 3-1: 8-WSON (6x5mm)
CS#
1
SO/SIO1
2
WP#/SIO2
3
GND
4
MX25L_35E
8
VCC
CS#
1
7
HOLD#/SIO3 SO/SOI
2
6
SCLK
MX25L_F
5
WP#/IO2 p
SI/SIO0
GND
8
VCC
7
HOLD#/IO3
3
6
SCK
4
5
SI/SIO
S25FL1_K
Figure 3-2: 8-SOP (209 mil)
CS#
SO/SIO1
1
2
WP#/SIO2
3
GND
P/N: AN-0262
4
MX25L_35E
MX25L_F
8
VCC
7
6
HOLD#/SIO3
5
SI/SIO0
SCLK
CS#
SO/IO1
1
2
WP#/IO2
3
GND
4
2
8
VCC
S25FL1_K
7
6
HOLD#/IO3
MX25L_F
5
SI/IO0
SCK
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
Figure 3-3: 16-SOP (300mil)
16
SCLK
HOLD#/IO3
1
16
SCK
VCC
2
15
SI/IO0
3
15
14
SI/SIO0
NC
DNU
3
14
DNU
NC
4
13
NC
DNU
4
13
DNU
NC
5
12
NC
DNU
5
12
DNU
NC
6
11
NC
DNU
6
11
DNU
CS#
7
10
GND
CS#
7
10
VSS
SO/IO1
8
9
HOLD#/SIO3
VCC
1
2
NC
SO/SIO1
MX25L_35E
8
WP#/SIO2
9
Note: NC = Not Connected.
S25FL1_K
WP#/IO2
DNU = Do Not Use.
Figure 3-4: 24-TFBGA (6x8mm with 4x6 Ball Array)
MX25L6435E
SF25L164K
4
NC
VCC
WP#
SIO2
HLD#
SIO3
NC
NC
4
RFU
VCC
WP#
IO2
HLD#
IO3
RFU
NC
3
NC
GND
NC
SIO3
SI
SIO0
NC
NC
3
NC
VSS
RFU
SIO3
SI
IO0
NC
NC
2
NC
SCLK
CS#
SO
SIO1
NC
NC
2
NC
SCK
CS#
SO
IO1
NC
NC
1
NC
NC
NC
NC
NC
NC
1
NC
DNU
DNU
DNU
NC
NC
A
B
C
D
E
F
A
B
C
D
E
F
Note: NC = Not Connected.
DNU = Do Not Use.
RFU = Reserved for Future Use.
4. Key Feature and Operational Differences
4-1 Status Register and Configuration Registers
Both devices use registers to control device behavior and report status. The
Macronix Status Register is very similar to Spansion’s Status Register 1 bit
assignments. Spansion’s other two Status Registers are used to configure the
device, and these advanced options are different than the Macronix Configuration
and Security Registers.
P/N: AN-0262
3
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
Table 4-1: Macronix Status Register vs Spansion Status Register-1
Register Bit
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
Bit7
Macronix MX25L32/6435E
WIP; 1=write operation
WEL; 1=write enable
BP0; BP protection
BP1; BP protection
BP2; BP protection
BP3; BP protection
QE; 1=Quad mode enable
SRWD; 1=SR write disable
Spansion S25FL132/64K SR1
BUSY; 1=write operation
WEL; 1=write enable
BP0; BP protection
BP1; BP protection
BP2; BP protection
T/B; Top/Bottom Protect
SEC; Sector/Block Protect
SRP0; 1=SR Protect
Table 4-2: Macronix Configuration Register vs Spansion Status Register-2
Register Bit
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
Bit7
Macronix MX25L32/6435E
Reserved
Reserved
Reserved
TB; 1=Bottom area protect
Reserved
Reserved
Reserved
DC; Dummy cycle
Spansion S25FL132/64K SR2
SRP1; Status Reg Protect1
QE; Quad Enable
LB0; Security Reg Lock Bit
LB1; Security Reg Lock Bit
LB2; Security Reg Lock Bit
LB3; Security Reg Lock Bit
CMP; Compliment Protect
SUS; Suspend Status
Table 4-3: Macronix Security Register vs. Spansion Status Register-3
Register Bit
Macronix MX25L32/6435E
Bit0
4Kb Secured OTP; 1=factory lock
Bit1
LDSO; 1=OTP lock down
Bit2
Reserved
Bit3
Reserved
Bit4
Continuous Program Mode
Bit5
P_FAIL; 1=Program fail
Bit6
E_FAIL; 1=Erase fail
Bit7
WPSEL; 1=Individual WP
Spansion S25FL132/64K SR3
Latency Control
Latency Control
Latency Control
Latency Control
Burst Wrap Enable
Burst Wrap Length
Burst Wrap Length
Reserved
4-2. Block/Sector Sizes
The MX25L_35F has uniform 64KB blocks that are each subdivided into two 32KB
blocks and sixteen 4KB sectors. The S25FL1_K has uniform 64KB main blocks
subdivided into 4KB sectors. No change is necessary to Erase block size or
commands when migrating from the Spansion to Macronix flash, even though
Macronix offers an additional 32KB block erase option.
P/N: AN-0262
4
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
4-3. Block Protection Mode
Both the Spansion and Macronix devices use BP bits to select groups of memory
areas for write protection. At the 32Mb density, when Spansion’s Top/Bottom bit is
in its default setting =0 (Top Boot) and Macronix BP[3]=0, then there is some
overlap in the groups of blocks selected for Write Protection as highlighted in Table
4-4. Spansion uses an additional SEC bit in Status Register1 and the CMP bit in
Status Register2 to create different additional write protected regions not covered
by Macronix BP bit settings. Not all of Spansion’s available protected states are
shown in Table 4-4.
Table 4-4: Block Protection (32Mb)
Status Register Bit
BP3/TB(1)
BP2
BP1
BP0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Protected Blocks
Macronix MX25L3235E
Spansion S25FL132K
(T/B bit = 0)
(CMP=0, SEC=0)
none
1 block
(#63)
2 blocks
(#62-63)
4 blocks
(#60-63)
8 blocks
(#56-63)
16 blocks (#48-63)
32 blocks (#32-63)
64 blocks (all)
64 blocks (all)
64 blocks (all)
64 blocks (all)
64 blocks (all)
64 blocks (all)
64 blocks (all)
64 blocks (all)
64 blocks (all)
none
1 block
(#63)
2 blocks
(#62-63)
4 blocks
(#60-63)
8 blocks
(#56-63)
16 blocks (#48-63)
32 blocks (#32-63)
64 blocks (all)
none
1 block
(#0)
2 blocks
(#0-1)
4 blocks
(#0-3)
8 blocks
(#0-7)
16 blocks (#0-15)
32 blocks (#0-31)
64 blocks (all)
Note1. Macronix BP bit 3 or Spansion TB bit.
Table 4-5 shows that at the 64Mb density, while similar regions can be write protected, different BP
bit configurations are required to achieve similar coverage. Not all of Spansion’s or Macronix
available protected states are shown in Table 4-5. See datasheet for details.
Table 4-5: Block Protection (64Mb)
Status Register Bit
BP3/TB
0
0
0
0
0
0
0
0
1
1
P/N: AN-0262
(1)
BP2
BP1
BP0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
Protected Blocks
Macronix MX25L6435E
Spansion S25FL164K
(T/B bit = 0)
(CMP=0, SEC=0)
none
1 block
(#127)
2 blocks
(#126-127)
4 blocks
(#124-127)
8 blocks
(#120-127)
16 blocks (#112-127)
32 blocks (#96-127)
64 blocks (#64-127)
128 blocks (all)
128 blocks (all)
none
2 blocks
(#126-127)
4 blocks
(#124-127)
8 blocks
(#120-127)
16 blocks (#112-127)
32 blocks (#96-127)
64 blocks (#64-127)
128 blocks (all)
none
2 blocks
(#0-1)
5
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
1
1
1
1
1
1
0
0
1
1
1
1
1
1
0
0
1
1
0
1
0
1
0
1
128 blocks
128 blocks
128 blocks
128 blocks
128 blocks
128 blocks
(all)
(all)
(all)
(all)
(all)
(all)
4 blocks
(#0-3)
8 blocks
(#0-7)
16 blocks (#0-15)
32 blocks (#0-31)
64 blocks (#0-63)
128 blocks (all)
Note1. Macronix BP bit 3 or Spansion TB bit.
4-4 Individual Sector/Block Protection
Macronix has the ability to protect individual 4KB sectors in the Top or Bottom Boot
sectors of the array and 64KB blocks of memory in the rest of the Flash array. The
methods used are independent of the nonvolatile BP bit configuration in the Status
Register. The Spansion flash does not support this feature. See Macronix datasheet
for detailed description.
4-5 Quad I/O Modes
Both the Macronix and Spansion flash enter Quad SPI mode when their QE bit is
set to 1. Spansion’s QE bit is SR2[2] while the Macronix QE bit is in SR[6].
4-6. Secure OTP Differences
Both device families provide a secure One Time Programmable (OTP) area outside
of the main memory array for user defined storage. The sizes, features, and access
methods are different.
The S25FL1_K has commands to directly read, erase, and program the OTP area
and does not need to explicitly open this area for read and write operations.
Spansion has three 256 Byte OTP regions.
The MX25L_35E operates in the OTP area using normal read and program
instructions after explicitly opening the OTP area with the Enter Secured OTP
(ENSO) command. While the OTP area is open, the main array is not accessible.
When finished in the OTP area, the Exit Secure OTP (EXSO) command must be
issued to return to the Read Main Array mode. The MX25L_35E OTP area has 512
bytes available for user data. The user may permanently lock the whole OTP area
to prevent new data from being stored there. This area can optionally be
programmed with user supplied data and factory locked by Macronix.
P/N: AN-0262
6
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
5. Performance
Tables 5-1 and 5-2 show that the two devices have similar AC and DC performance.
Table 5-1: AC Parameter Comparison
Symbol
Parameter
Macronix
Spansion
Clock High / Low Time
tCH / tCL
tCLH/tCHL
Clock Low to Output Valid
Data In Setup Time
Data In Hold Time
Vcc (min) to CS# Low
Page Program Time
(256 Bytes)
Erase 4KB
Subsector/Sector
tCLQV
tCLQV
tDVCH
tCHDX
tVSL
tDVCH
tCHDX
tVSL
tPP
tPP
tSSE
tSE
Erase 32KB Block
tBE32
-
Erase 64KB Sector/Block
tBE
tBE2
Bulk Erase / Chip Erase
(32Mb / 64Mb)
tCE
tCE
Table 5-2: DC Parameter Comparison
Symbol
Parameter
Macronix Spansion
Leakage Current
ILI/ILO
ILI/ILO
Standby Current
ISB1
ICC1
Deep Power Down Current
ISB2
ICC2
VCC Read Current
(Fast Read)
VCC Program Current
VCC Write Status Register
Current
VCC Erase Current
P/N: AN-0262
Condition
min
max @ 10pF
(1I/O / 4I/0)
max @ 15pF
(1I/O / 4I/0)
max @ 30pF
(1I/O / 4I/0)
min
min
min
typ
max
typ
max
typ
max
typ
max
typ
max
Condition
max
max
typ
max
max @ QSPI
max @ SPI
max
ICC1
ICC3
ICC2
ICC3
ICC5
ICC4
max
ICC4,5
ICC6,7
max
7
Macronix
MX25L32/6435E
4.5ns
Spansion
S25FL132/64K
4.3ns
5ns / 6ns
-
6ns / 6ns
6ns / 6ns
7ns / 8ns
7ns / 7ns
2ns
3ns
300us
1.4ms
3ms
60ms
300ms
0.5s
2s
700ms
2s
25s / 50s
50s / 80s
2ns
5ns
10us
0.7ms
3ms
70ms
450ms
500ms
2s
32s / 64s
128s / 256s
Macronix
MX25L32/6435E
+/- 2uA
80uA
5uA
40uA
35mA@104MHz
19mA@104MHz
25mA
Spansion
S25FL132/64K
+/- 2uA
25uA
2uA
5uA
25mA@108MHz
22mA@108MHz
25mA
20mA
12mA
25mA
25mA
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
6. Manufacturer and Device ID
Table 6-1: Manufacturer and Device ID Comparison
Macronix
MX25L32/6435E
C2h
15h /16h
2016h / 2017h
Name
Manufacture ID
Device ID
JEDEC Device ID
Spansion
S25FL132/64K
01h
15h /16h
4016h / 4017h
7. Command Code
Both devices use the same basic command set (Table 7-1), with differences typically in “special”
features such as previously mentioned OTP access commands and advanced write protection features
(Table 7-2).
Table 7-1: Core Command Set
Instruction
Type
Read ID
Read
Write
Register
Other
P/N: AN-0262
Instruction
RDID
Description
Read Identification
Macronix
MX25L32/6435E
Spansion
S25FL132/64K
9Fh
9Fh
READ
Read Data Bytes
03h
03h
FAST_READ
Read Data Bytes at Higher Speed
0Bh
0Bh
DOFR
Dual Output Fast Read
3Bh
3Bh
DIOFR
Dual Input/Output Fast Read
BBh
BBh
QOFR
Quad Output Fast Read
6Bh
6Bh
QIOFR
Quad Input/Output Fast Read
EBh
EBh
W4READ
Quad Input/Output Fast Read (4-dummy)
E7h
-
RDSFDP
Read Serial Flash Discoverable Parameters
5Ah
5Ah
WREN
Write Enable
06h
06h
WRDI
Write Disable
04h
04h
PP
Page Program
02h
02h
SE
Sector Erase 4KB
20h
20h
BE 32K
Block Erase 32KB
52h
-
SE 64K
Block Erase 64KB
D8h
D8h
CE
Chip Erase
60 or C7h
60 or C7h
WRSR
Write Status Register
01h
01h
RDSR
Read Status Register-1
05h
05h
DP
Deep Power Down
B9h
B9h
RDP
Release From Deep Power Down
ABh
ABh
-
Release from Read Enhance
FFh
FFh
8
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
Table 7-2: Extended Command Codes
Instruction
Type
Instruction
OTP
Read ID
Write
Register
Security
Macronix
MX25L32/6435E
Spansion
S25FL132/64K
ENSO
Enter Secured OTP
B1h
-
EXSO
Exit Secured OTP
C1h
-
-
Read Secured OTP
-
48h
-
Erase Secured OTP
-
44h
-
-
42h
90h
90h
REMS2/4
Program Secured OTP
Read Electronic Manufacturer ID &
Signature
Read Electronic
Manu. ID & Sig. for
EFh, DFh
-
-
2IO/4IO
Write Enable for Volatile Status Register
-
50h
REMS
CP
Continuously Program Mode
ADh
-
4PP
Quad Page Program (1-4-4)
38h
-
-
Read Status Register-2
-
35h
-
Read Status Register-3
-
33h
RDSCUR
Read Security Register
2Bh
-
WRSCUR
Write Security Register
2Fh
-
-
Read Non-volatile Configuration Register
15h
-
SBLK
Single Block Lock
36h
-
SBULK
Single Block UnLock
39h
-
GBLK
Gang Block Lock
7Eh
-
GBULK
Gang Block Unlock
98h
-
RDBLOCK
Read Block Lock
Write Protect Selection (OTP)
Reset Memory
No Operation
Enable SO to Output RY/BY#
Erase / Program Suspend
Erase / Program Resume
Set Burst with Wrap
3Ch
68h
99h
00h
70h
-
-
WPSEL
RST
NOP
Other
Description
ESRY
SBL
75h
7Ah
77h
8. Summary
The Macronix MX25L32/6435E and Spansion S25FL132/64K have similar commands,
functions, and features. The devices are command compatible for basic read, program, and
erase (4KB and 64KB) operations and are pin compatible. If common features are used in
standard traditional modes, the replacement may need only minimal software modification.
More significant changes are required if special features such as Erase/Program Suspend,
Write protection, or Burst Read mode are used.
P/N: AN-0262
9
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
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
MX25L3235E, 3V, 32Mb, v1.3
Macronix Website
APR. 2013
1.3
MX25L6435E, 3V, 64Mb, v1.2
Macronix Website
APR. 2013
1.2
S25FL132K_164K_00_01
Spansion Website
JUL. 2013
01
10. Appendix
Table 10-1 shows the basic part number and package information cross reference between
Macronix MX25L3235E and Spansion S25FL132K parts.
Table 10-2 shows the basic part number and package information cross reference between
Macronix MX25L6435E and Spansion S25FL164K parts.
Table 10-1: 32Mb Part Number Cross Reference
Macronix Part No.
Spansion Part No. Package
Dimension
Note
MX25L3235EM2I-10G
S25FL132K0XMFI01 8-SOP
209 mil
Lead-free
MX25L3235EMI-10G
S25FL132K0XMFI00 16-SOP
300 mil
Lead-free
MX25L3235EZNI-10G
S25FL132K0XNFI01 8-WSON
6x5 mm
Lead-free
Table 10-2: 64Mb Part Number Cross Reference
Macronix Part No.
Spansion Part No. Package
Dimension
Note
MX25L6435EM2I-10G
S25FL164K0XMFI01 8-SOP
209 mil
Lead-free
MX25L6435EZNI-10G
S25FL164K0XNFI01 8-WSON
6x5 mm
Lead-free
MX25L6435EMI-10G
S25FL164K0XMFI00 16-SOP
300 mil
Lead-free
MX25L6435EXCI-10G
S25FL164K0XBHI03 24-TFBGA
6x8 mm
Low-halogen, Lead-free
11. Revision History
Revision
1.0
P/N: AN-0262
Description
Initial Release
10
Date
September 16, 2013
Ver.01, Sep 16, 2013
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_35E
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 Audio, 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-0262
11
Ver.01, Sep 16, 2013