Replacing Spansion S25FL256S with Macronix MX25L25635F

APPLICATION NOTE
Migrating to Macronix MX25L25635F
from Spansion S25FL256S
1. Introduction
This application note is the migration guide for migrating to Macronix MX25L25635F from Spansion
S25FL256S. The document does not provide detailed information on individual device, but highlights the
similarities and differences between them. The comparison covers the general features, performance,
command codes and other differences.
The information provided is based on the data available at the time the document was released.
Macronix MX25L25635F and Spansion S25FL256S datasheets may override this application note if
there is a different description for the same specification in the datasheets.
Please refer to the contents and comparison tables below for more details.
Publication Number: AN141V1
1
Issued: FEB. 29, 2012
APPLICATION NOTE
2. General Features
2-1. Feature Comparison
Table 2-1. Feature Comparison Table
Company
Macronix
Spansion
MX25L25635F
2.7V-3.6V
S25FL256S
2.7V-3.6V
1-1-1
1-1-2/1-2-2
1-1-4/1-4-4
N/A
V
4KB/32KB/64KB
256Byte
512 Byte
1-1-1
1-1-2/1-2-2
1-1-4/1-4-4
66MHz (3.0V-3.6V)
N/A
4KB/64KB
256Byte/512Byte
1K Byte
Program/ Erase Suspend & Resume
V
V
Read Enhance Mode
V
V
Read Burst Mode
V
N/A
Configurable Dummy Cycle
V
V
Adjustable Output Driver
V
N/A
Fast Boot (XIP) Mode
V
V
S/W Reset Command
V
Reset# Pin
V
BP Protect
Top/Bottom
V
V
(16SOP, 24BGA)
Top/Bottom
Password Protection
V
V
Volatile Write Protection
V
V
Non-volatile Write Protection
V
V
Part No.
VCC
Architecture
I/O
DTR
QPI Interface
Sector Size
Program Buffer Size
Security OTP
Features
Publication Number: AN141V1
2
Issued: FEB. 29, 2012
APPLICATION NOTE
3. Address Protocol Support
Table 3-1. Address Protocol
4Byte Mode
Extended Address
4Byte command set
Register (EAR)
Spansion
S25LF256S
V
V
V
Micronix
MX25L25635F
V
V
V
Both Macronix and Spansion support three kinds of address protocols:
“4Byte Mode addressing”
“Extended Address Register (EAR)”
“4Byte Command Set”
However, there are some differences between the MX25L25635F and S25FL256S. In the following
section we’ll point out those differences.
Table 3-2. Related Command Set
Instruction
4Byte ADD
Approach
Publication Number: AN141V1
EN4B
EX4B
RDEAR
WREAR
Macronix
MX25L25635F
Spansion
S25FL256S
B7h
-
E9h
-
C8h
16h
C5h
17h
Access Extended Address Register
-
B9h
Write Register
-
01h
Description
Enter 4-byte address mode
Exit 4-byte address mode
Read Extended Address Register
Write Extended Address Register
3
Issued: FEB. 29, 2012
APPLICATION NOTE
3-1. 4Byte Mode:
Issue Enter 4-Byte mode command to set up the 4BYTE bit in Configuration Register. After 4BYTE bit
has been set, the device enter 4-byte Address mode, the number of address bits for all instructions
become 32-bit.
Related Register
Related Bit
Enable/Write Command
Disable/Clear Command
WREN
Spansion
Bank Address Register (BAR)
Bit [7] - EXTADD
BRWR(17h)
BRWR(17h)
Not required
Macronix
Configuration Register (CR)
Bit [5]- 4Byte
EN4B(B7h)
EX4B(E9h)
Not required
3-1-1. S25FL256S
Table 3-3. Related Register: Bank Register
Bits
7
Description
Bit Status
Default Status
Type
EXTADD
(Extended Address Enable)
1= 4 byte address
0=3byte address+ Bank address
0
Volatile
000000
0
Volatile
Volatile
6 to 1 RFU
0
A24 (Bank address)
A24 for 256Mb
Entry 4Byte Mode Method
1. Using “Bank Register Write (17h)” command to update the Bit 7 (EXTADD) value of Bank Register
to enable or disable the 4Byte address mode.
Exit 4Byte Mode
Power-on or Reset cycle.
3-1-2. MX25L25635F
Table 3-4. Related Register: Configuration Register
Bits
Bit7
Bit 6
Description
Bit 4
DC1 (Dummy cycle 1)
DC0 (Dummy cycle 0)
4 BYTE
(4Byte address enable)
x
Bit 3
TB (top/bottom selected)
Bit 2
Bit 1
Bit 0
ODS 2 (output driver strength)
ODS 1 (output driver strength)
ODS 0 (output driver strength)
Bit 5
Publication Number: AN141V1
Bit Status
0=3-byte address mode
1=4-byte address mode
0 = Top
1=Bottom
4
Default Status
Type
0
0
Volatile
Volatile
0
Volatile
x
Volatile
0
OTP
1
1
1
Volatile
Volatile
Volatile
Issued: FEB. 29, 2012
APPLICATION NOTE
Enter 4Byte Mode Method
Using Enter 4-byte Mode (B7h) command to enable 4-byte address mode, the bit 5 (4BYTE) of
Configuration should become to “1” after enter 4-byte mode. No WREN command is required.
Exit 4Byte Mode
1. Issue Exit 4Byte Mode (E9h) command to exit the 4Byte address Mode.
2. H/W Reset or S/W Reset Command.
3. Power-on cycle.
3-2. Extended Address Register (EAR)
The Extended Address Register provides the 4th byte of address, which configures the memory device
for two 128Mb segments. Selected which one is active through the bit 0 of the Extended Address
Register (EAR). It identifies the extended address (A31~A24) above 128Mb density and only requires
using 3-byte addresses.
Related Register
Related Bit
Write Command
Read Command
WREN
Spansion
Bank Address Register
(BAR)
Bit [0]
BRWR(17h)
BRRD(16h)
Not required
Bank Address Register
(BAR)
Bit [0:1]
BRAC(B9h)+ WRR(01h)
BRRD(16h)
Not required
Macronix
Extended Address
Register (EAR)
Bit [0]
WREAR(C5h)
RDEAR(C8h)
Required
3-2-1 S25FL256S
Table 3-5. Related Register: Bank Register
Bits
Description
7
EXTADD
(Extended Address Enable)
6 to 1 RFU
A24 (Bank address)
0
Bit Status
Default Status
Type
0
Volatile
000000
0
Volatile
Volatile
1= 4 byte address
0=3byte address+ Bank
address
A24 for 256Mb
1. Using “Bank Register Write (17h)” command to update the Bit 0 (A24) value of Bank Register to set
Bank address A24 for 256Mb device.
2. By using legacy command B9h (BRAC) and following 01h (WRR) command to update the Bit 0 and
Bit 1 value of Bank Register. This command cycle will only change the value of the BAR[1:0], not
affect on the value of the EXTADD bit (BAR[7]). No WREN command is requested between BRAC
and WRR command.
3. No WREN command is required between BRAC and WRR command. No affect on the value of the
EXTADD bit (BAR[7]).
Publication Number: AN141V1
5
Issued: FEB. 29, 2012
APPLICATION NOTE
3-2-2 MX25L25635F
Table 3-6. Related Register: Extended Address Register
Bits
Description
Default Status
Type
Bit7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
A31(Bank address)
A30(Bank address)
A29(Bank address)
A28(Bank address)
A27(Bank address)
A26(Bank address)
A25(Bank address)
A24(Bank address)
0
0
0
0
0
0
0
0
volatile
volatile
volatile
volatile
volatile
volatile
volatile
volatile
Issue WREAR (C5h) to update the value of EAR[7:0]. For the 256Mb, the A32 to A25 are "Don’t Care"
and reading these bits will result as 0. The data can be continually read out without 128Mb boundary,
however, the EAR (Extended Address Register) value does not change.
3-3. 4Byte Command Set
New command sets for 4 byte address. The operation of 4-byte address command sets were very
similar to original 3-byte address command sets. The only difference is that all the 4-byte command set
require 4-byte addresses (A31-A0) followed by the instruction code.
Instruction
READ4B
Fast_READ4B
DREAD4B
2READ4B
QREAD4B
4READ4B
4DDRFR
4Byte
Command 4DDRDIOR
4DDRQIOR
PP4B
4PP4B
QPP4B
SE4B
BE4B
BE32K4B
Publication Number: AN141V1
Description
Read Data Bytes
Read Data Bytes at Higher
Speed
Dual Output Fast Read
Dual Input/Output Fast Read
Quad Output Fast Read
Quad Input/Output Fast Read
DDR fast Read
DDR dual Input/Output Read
DDR Quad Input/Output Read
Page Program
Quad page program 1-4-4
Quad page program 1-1-4
Sector Erase
Block Erase 64KB
Block erase 32KB
6
Macronix
MX25L25635F
Spansion
S25FL256S
0Ch
0Ch
3Ch
BCh
6Ch
ECh
12h
3Eh
21h
DCh
5Ch
3Ch
BCh
6Ch
ECh
0Eh
BEh
EEh
12h
34h
21h
DCh
-
13h
13h
Issued: FEB. 29, 2012
APPLICATION NOTE
4. Performance Comparison
Table below is the performance comparison of the two products.
Table 4-1. Read Performance Comparison
Parameter\Company
Type
MX25L25635F
VCC
Normal Read
1 I/O
1-in/2-out
2-in/2-out
1-in/4-out
4-in/4-out
Fast
Read
tCLQV
15pf
30pf
S25FL256S
SDR
2.7-3.6V
50MHz
133MHz
133MHz
133MHz
133MHz
133MHz
6ns
8ns
SDR
2.7-3.6V
50MHz
133MHz
104MHz
104MHz
104MHz
104MHz
6.5ns(3.0-3.6V)
8ns
DDR
3.0-3.6V
66MHz
66MHz
66MHz
6.5ns(3.0-3.6V)
-
The MX25L25635F provides industry fast SDR read performance as 133MHz frequency with all kinds
of protocols. It features same throughput as 66MHz DTR , with wider data valid window and more
reliable data catch ability.
Table 4-2. Write Performance and Power Consumption Comparison
Parameter\Company
Part no.
Macronix
Spansion
MX25L25635F
S25FL256S
4KB (typ)
0.03s
0.13s
32KB (typ)
0.19s
-
64KB (typ)
0.34s
2.08s
Top/Bottom 64KB
0.34s
2.08s
256B (typ)
0.6ms
0.25ms
512B(typ)
-
0.34ms
Active Write Current (max)
20mA
100mA
Active Read Current (max)
25mA
50mA
Standby Current (typ/max)
30uA/100uA
70uA /100uA
Erase
Program
The MX25L25635F provides lower power consumption on Read and Write operation, which perform
better efficiency for the operating of host system.
Publication Number: AN141V1
7
Issued: FEB. 29, 2012
APPLICATION NOTE
5. Command Code Comparison
Instruction
Type
Instruction
RDID
RES
Read ID
Read
REMS
REMS 2
REMS 4
READ
FAST_READ
DOFR
DIOFR
QOFR
QIOFR
DDRFR
DDRDIOR
DDRQIOR
RDSFDP
Write
QPI
OTP
WREN
WRDI
PP
4PP
SE
SE 64K
BE 32K
CE
EQIO
RSTQIO
QPIID
ENSO
EXSO
ROTP
POTP
Publication Number: AN141V1
Description
Read Identification
Read electronic ID
Read electronic manufacturer &
device ID
Read Data Bytes
Read Data Bytes at Higher Speed
Dual Output Fast Read
Dual Input/Output Fast Read
Quad Output Fast Read
Quad Input/Output Fast Read
DDR fast Read
DDR dual Input/Output Read
DDR Quad Input/Output Read
Read Serial Flash Discovery
Parameter
Write Enable
Write Disable
Page Program
Quad page program
Sector Erase
Block Erase 64KB
Block erase 32KB
Chip Erase
Enable QPI
Reset QPI
QPI ID Read
Enter secured OTP
Exit secured OTP
Read OTP (Read of OTP area)
Program OTP (Program of OTP
area)
8
Macronix
MX25L25635F
Spansion
S25FL256S
9Fh
ABh
9Fh
ABh
90h
90h
EFh
DFh
03h
0Bh
3Bh
BBh
6Bh
EBh
-
03h
0Bh
3Bh
BBh
6Bh
EBh
0Dh
BDh
EDh
5Ah
-
06h
04h
02h
38h
20h
D8h
52h
60 or C7h
35h
F5h
Afh
B1h
C1h
-
06h
04h
02h
32h/38h
20h
D8h
60 or C7h
-
42h
-
4Bh
Issued: FEB. 29, 2012
APPLICATION NOTE
Command Code Comparison - Continued
Instruction
Type
Register
Others
Instruction
RDSR
RDCR 2
WRSR
RDSCUR
WRSCUR
RDLR
WRLR
RDSPBLK
SPBLK
RDSPB
WRSPB
ESSPB
RDPASS
WRPASS
PASSULK
RDDPB
WRDPB
RDFBR
WRFBR
ESFBR
PER /PGRS
PES /PGSP
ERRS
ERSP
RSTEN
RST
DP
RDP
NOP
SBL
Publication Number: AN141V1
Description
Macronix
MX25L25635F
Spansion
S25FL256S
Read Status Register 1
Read Status Register 2
Write Status Register
Read security register
Write security register
Read Lock Register
Write to Lock Register
SPB Lock Bit Read
SPB Lock Bit Write
SPB Bit Read
SPB Bit Write
SPB Bit Erase
Password Read
Password Write
Password Unlock
DPB Read
DPB Write
Fast Boot Register Read
Fast Boot Register Write
Fast Boot Register Erase
Program Resume
Program Suspend
Erase Resume
Erase Suspend
Reset Enable
Reset Memory
Reset from enhance mode
Deep Power-down
Release from Deep Power-down
No Operation
Set Burst Length
05h
15h
01h
2Bh
2Fh
2Dh
2Ch
A7h
A6h
E2h
E3h
E4h
27h
28h
29h
E0h
E1h
16h
17h
18h
30h
B0h
30h
B0h
66h
99h
FFh
B9h
ABh
00h
C0h
05h
35h
01h
2Bh
2Fh
A7h
A6h
E2h
E3h
E4h
E7h
E8h
E9h
E0h
E1h
14h
15h
8Ah
85h
7Ah
75h
F0h
FFh
B9h
ABh
77h
9
Issued: FEB. 29, 2012
APPLICATION NOTE
6. References
The following datasheets were used for preparing this comparison note:
Datasheet
Location
Date Issued
Versions
MX25L25635F
Macronix Website
SEP. 2011
1.2
S25FL256S
Spansion Website
NOV. 2011
02
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/Serial Flash.
Publication Number: AN141V1
10
Issued: FEB. 29, 2012
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. 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, 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 other companies are for identification purposes only and may be claimed as the property of
the respective companies.
For the contact and order information, please visit Macronix’s Web site at: http://www.macronix.com
MACRONIX INTERNATIONAL CO., LTD. reserves the right to change product and specifications without notice.
Publication Number: AN141V1
11
Issued: FEB. 29, 2012