Replacing Spansion S25FL1_K with Macronix MX25L_33F

APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
1. Introduction
This application note serves as a guide to replace the Spansion S25FL132K and S25FL164K with the
Macronix MX25L3233F and MX25L6433F 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.
The Macronix MX25L32/6433F and Spansion S25FL132/64K have similar commands, functions, and
features. The devices are command compatible for basic Read, Program, and Erase operations and are pin
compatible.
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. Feature
Both flash device families have similar features and functions as shown in Table 2-1.
Table 2-1: Feature Comparison
Macronix
Spansion
Type / Function
MX25L32/6433F
S25FL132/64K
VCC Voltage Range
2.65V ~ 3.6V
2.7V ~ 3.6V
Normal Read Clock Frequency
50MHz
50MHz
(1-1-1)
*1
133MHz
108MHz
(1-1-2)
*1
133MHz
108MHz
(1-2-2)
*1
133MHz
108MHz
(1-1-4)
*1
133MHz
108MHz
(1-4-4)
*1
133MHz
108MHz
Configurable Dummy Cycle
YES
YES
HOLD# Pin
YES
YES
Sector Size
4KB/32KB/64KB
4KB/64KB
256Byte
256Byte
512Byte(32Mb)/1024Byte(64Mb)
3 x 256Byte
SFDP Mode
YES
YES
Deep Power Down
YES
YES
XiP / Performance Enhanced Mode
YES
YES
Block Protection Mode (BP bits)
YES
YES
S/W Reset Command
YES
YES
Program/Erase Suspend and Resume
YES
YES
Wrap Around Burst Read Mode
YES
YES
Program/Erase Cycles
100K
100K
Fast Read
Dual Output
Dual I/O
Quad Output
Quad I/O
(DREAD)
(2READ)
(QREAD)
(4READ)
Program Buffer Size
Security OTP
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-0346
1
Ver. 01, Nov 1, 2014
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
3. Package and Pin-out
Both devices are available in 209mil 8-pin SOP and 150mil 8-pin SOP packages with similar
footprints and pin-outs. Please consult the latest Macronix datasheet for any possible package
additions
Table 3-1: Packages (32Mb)
Packages
Macronix MX25L3233F
Spansion S25FL132K
8-WSON(6x5mm)
V*
Y
8-SOP (150mil)
Y
Y
8-SOP (209mil)
Y
Y
16-SOP (300mil)
V*
-
4x3mm 8USON
Y
-
24-TFBGA
-
Y
Note: “V” in Table 3-1 indicates that this package is not currently available, but is planned for future support.
Table 3-1: Packages (64Mb)
Packages
Macronix MX25L6433F
Spansion S25FL164K
8-WSON(6x5mm)
V*
Y
8-SOP (150mil)
V*
-
8-SOP (209mil)
Y
Y
16-SOP (300mil)
V*
Y
4x3mm 8USON
Y
-
24-TFBGA
V*
Y
Note: “V” in Table 3-2 indicates that this package is not currently available, but is planned for future support
Figures 3-1 shows that supported packages have similar footprints and pinouts
Figure 3-1: 8-SOP (209 mil/150mil)
CS#
SO/SIO1
1
2
WP#/SIO2
3
GND
4
P/N: AN-0346
MX25L_33F
8
VCC
7
6
HOLD#/SIO3
5
SI/SIO0
SCLK
CS#
SO/IO1
1
2
WP#/IO2
3
GND
4
2
S25FL1_K
8
VCC
7
6
HOLD#/IO3
5
SI/IO0
SCK
Ver. 01, Nov 1, 2014
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
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.
Table 4-1: Macronix Status Register vs Spansion Status Register-1
Register Bit
Macronix MX25L32/6433F
Spansion S25FL132/64K SR1
Bit0
WIP; 1=write operation
BUSY; 1=write operation
Bit1
WEL; 1=write enable
WEL; 1=write enable
Bit2
BP0; BP protection
BP0; BP protection
Bit3
BP1; BP protection
BP1; BP protection
Bit4
BP2; BP protection
BP2; BP protection
Bit5
BP3; BP protection
T/B; Top/Bottom Protect
Bit6
QE; 1=Quad mode enable
SEC; Sector/Block Protect
Bit7
SRWD; 1=SR write disable
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/6433F
ODS (Output Driver Strength)
Reserved
Reserved
T/B; 1=Bottom area protect
Reserved
Reserved
DC; Dummy cycles
Reserved
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
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
Bit7
P/N: AN-0346
Macronix MX25L32/6433F
Secured OTP; 1=factory lock
LDSO; 1=OTP lock down
Program Suspend Status
Erase Suspend Status
Reserved
P_FAIL; 1=Program fail
E_FAIL; 1=Erase fail
Reserved
Spansion S25FL132/64K SR3
Latency Control
Latency Control
Latency Control
Latency Control
Burst Wrap Enable
Burst Wrap Length
Burst Wrap Length
Reserved
3
Ver. 01, Nov 1, 2014
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
4-2. Block/Sector Sizes
The MX25L_33F 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.
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
Protected Blocks
Macronix
MX25L3233F
Spansion S25FL132K
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
(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.
P/N: AN-0346
4
Ver. 01, Nov 1, 2014
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
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
Protected Blocks
Macronix MX25L6433F
Spansion S25FL164K
BP3/TB(1) BP2 BP1 BP0
(T/B bit = 0)
(CMP=0, SEC=0)
0
0
0
0
none
none
0
0
0
1
1 block (#127)
2 blocks (#126-127)
0
0
1
0
2 blocks (#126-127)
4 blocks (#124-127)
0
0
1
1
4 blocks (#124-127)
8 blocks (#120-127)
0
1
0
0
8 blocks (#120-127)
16 blocks (#112-127)
0
1
0
1
16 blocks (#112-127)
32 blocks (#96-127)
0
1
1
0
32 blocks (#96-127)
64 blocks (#64-127)
0
1
1
1
64 blocks (#64-127)
128 blocks (all)
1
0
0
0
128 blocks (all)
none
1
0
0
1
128 blocks (all)
2 blocks (#0-1)
1
0
1
0
128 blocks (all)
4 blocks (#0-3)
1
0
1
1
128 blocks (all)
8 blocks (#0-7)
1
1
0
0
128 blocks (all)
16 blocks (#0-15)
1
1
0
1
128 blocks (all)
32 blocks (#0-31)
1
1
1
0
128 blocks (all)
64 blocks (#0-63)
1
1
1
1
128 blocks (all)
128 blocks (all)
Note1. Macronix BP bit 3 or Spansion TB bit
4-4 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-5. 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_33F 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_33F OTP area has 1024 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-0346
5
Ver. 01, Nov 1, 2014
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
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
Parameter
Symbol
Macronix
Spansion
MX25L32/6433F
S25FL132/64K
min
45% fSCLK
4.3ns
max @ 15pF
6ns
6ns
max @ 30pF
8ns
7ns
Condition
Macronix
Spansion
tCH / tCL
tCLH/tCHL
Clock Low to Output Valid
tCLQV
tCLQV
Data In Setup Time
tDVCH
tDVCH
min
2ns
2ns
Data In Hold Time
tCHDX
tCHDX
min
3ns
5ns
Vcc (min) to CS# Low
tVSL
tVSL
min
800us
10us
Page Program Time
(256 Bytes)
tPP
tPP
typ
0.33ms
0.7ms
max
1.2ms
3ms
tSSE
tSE
typ
25ms
50ms
max
200ms
450ms
tBE32
-
typ
0.14s
-
max
0.6s
-
Erase 64KB Sector/Block
tBE
tBE2
typ
250ms
500ms
max
1s
2s
Bulk Erase / Chip Erase
(32Mb / 64Mb)
tCE
tCE
typ
10s / 20s
32s / 64s
max
30s / 80s
128s / 256s
Clock High / Low Time
Erase 4KB
Subsector/Sector
Erase 32KB Block
Table 5-2: DC Parameter Comparison
Parameter
Symbol
Condition
Macronix
MX25L32/6433F
Spansion
S25FL132/64K
Macronix
Spansion
Leakage Current
ILI/ILO
ILI/ILO
max
+/- 2uA
+/- 2uA
Standby Current
ISB1
ICC1
max
50uA
25uA
Deep Power Down Current
ISB2
ICC2
ICC1
ICC3
Program Current
ICC2
Write Status Reg. Current
Read Current
(Fast Read)
Erase Current
P/N: AN-0346
typ
3uA
2uA
max
20uA
8uA
max @ QSPI
17mA@133MHz
25mA@108MHz
max @ SPI
17mA@133MHz
18mA@108MHz
ICC5
max
15mA
25mA
ICC3
ICC4
max
15mA
12mA
ICC4,5
ICC6,7
max
15mA
25mA
6
Ver. 01, Nov 1, 2014
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
6. Manufacturer and Device ID
Table 6-1: Manufacturer and Device ID Comparison
Name
Macronix MX25L32/6433F
Manufacture ID
C2h
01h
15h / 16h
15h / 16h
2016h / 2017h
4016h / 4017h
Device ID
JEDEC Device ID
Spansion S25FL132/64K
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 (Table 7-2).
Table 7-1: Core Command Set
Instruction
Type
Read ID
Instruction
Description
Read Identification
9Fh
9Fh
REMS
Read Electronic Manu ID & Signature
90h
90h
READ
Read Data Bytes
03h
03h
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
Read Serial Flash Discoverable Parameters
5Ah
5Ah
RDSFDP
Write
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
Register
60 or C7h
60 or C7h
WRSR
Write Status Register
01h
01h
RDSR
Read Status Register-1
05h
05h
66h -99h
66h-99h
Reset Memory
DP
Deep Power Down
B9h
B9h
Release From Deep Power Down
ABh
ABh
-
Release from Read Enhance
FFh
FFh
-
Erase / Program Suspend
75h or B0h
75h
-
Erase / Program Resume
7Ah or 30h
7Ah
Set Burst with Wrap
77h or C0h
77h
SBL
P/N: AN-0346
Chip Erase
RST
RDP
Other
Spansion
S25FL132/64K
RDID
FAST_READ Read Data Bytes at Higher Speed
Read
Macronix
MX25L32/6433F
7
Ver. 01, Nov 1, 2014
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
Table 7-2: Extended Command Codes
Instruction
Type
OTP
Write
Instruction
Macronix
MX25L32/6433F
Spansion
S25FL132/64K
ENSO
Enter Secured OTP
B1h
-
EXSO
Exit Secured OTP
C1h
-
-
Read Secured OTP
-
48h
-
Erase Secured OTP
-
44h
-
Program Secured OTP
-
42h
-
Write Enable for Volatile Status Register
-
50h
38h
-
-
35h
4PP
-
Register
Description
Quad Page Program (1-4-4)
Read Status Register-2
-
Read Status Register-3
-
33h
RDSCUR
Read Security Register
2Bh
-
WRSCUR
Write Security Register
2Fh
-
Read Non-volatile Configuration Register
15h
-
No Operation
00h
-
RDCR
NOP
8. Summary
The Macronix MX25L32/6433F and Spansion S25FL132/64K have similar commands, functions, and
features. The devices are command compatible for basic Read, Program, and Erase operations and are pin
compatible
P/N: AN-0346
8
Ver. 01, Nov 1, 2014
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
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
MX25L3233F
Macronix Website
JUN. 2014
0.00
MX25L6433F
Macronix Website
JUN. 2014
0.00
S25FL1-K_00
Spansion Website
OCT. 2014
02
10. Appendix
Table 10-1 shows the basic part number and package information cross reference between Macronix
MX25L3233F and Spansion S25FL132K parts.
Table 10-2 shows the basic part number and package information cross reference between Macronix
MX25L6433F and Spansion S25FL164K parts
Table 10-1: 32Mb Part Number Cross Reference
Macronix Part No.
Competitor Part No.
Package
Dimension
Note
MX25L3233FM2I-90G
S25FL132K0XMFI01
8-SOP
209 mil
Lead-free
MX25L3233FM1I-09G
S25FL132K0XMFI04
8-SOP
150 mil
Lead-free
Table 10-1: 64Mb Part Number Cross Reference
Macronix Part No.
Competitor Part No.
Package
Dimension
Note
MX25L6433FM2I-09G
S25FL164K0XMFI01
8-SOP
209 mil
Lead-free
11. Revision History
Revision
Description
Date
1.0
Initial Release
November 1, 2014
P/N: AN-0346
9
Ver. 01, Nov 1, 2014
APPLICATION NOTE
Replacing Spansion S25FL1_K with Macronix MX25L_33F
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. 2014. 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-0346
10
Ver. 01, Nov 1, 2014