Replacing Micron N25Q128A with Macronix MX25L12835F

APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
1. Introduction
This application note serves as a guide to replace Micron N25Q128A with Macronix MX25L12835F 3V
128Mb SPI 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 and 2-2. Significant
differences are highlighted in blue and may require special consideration.
Table 2-1: Feature Comparison
Feature
Macronix MX25L12835F Micron N25Q128A
VCC Voltage Range
2.7V-3.6V
2.7V-3.6V
Normal Read Clock Frequency
50MHz
54MHz
(1)
Maximum Clock Frequency
133MHz
108MHz
Configurable Dummy Cycle
YES
YES
Sector Size
4KB/32KB/64KB
4KB/64KB
Program Buffer Size
256Byte
256Byte
Security OTP
512Byte
64Byte
Program/Erase Suspend & Resume
YES
YES
Wrap Around Read Mode
YES
YES
(3)
XIP / Performance Enhanced Mode
YES
YES
(3)
XIP / Performance Enhanced Mode Set at Power-on
YES
Fast Boot Mode
YES
Adjustable Output Drivers
YES
YES
S/W Reset Command
YES
YES
HOLD#/RESET# Pin
Reset#
Hold#/Reset#
Block Protection Mode (BP bits)
Top/Bottom
Top/Bottom
(2)
Individual Sector Protection (Volatile)
YES
YES
Individual Sector Protection (Non-Volatile)
YES
Password Protection option
YES
Deep Power Down
YES
Program/Erase Cycles
100K
100K
Notes:
1. Maximum clock frequency with 10 dummy cycles.
2: Please see App Note section 4-4 for detailed comparison of Individual Sector Protection.
3. Macronix supports 1-4-4 and 4-4-4 mode XIP; Micron supports XIP in all fast read modes.
P/N: AN-0243
1
Ver. 01, July 05, 2013
APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
Table 2-2: Read Performance
Macronix MX25L12835F
I/O Mode
Fast Read
(1-1-1)
Dual Output (DREAD)
(1-1-2)
Dual I/O (2READ)
(1-2-2)
Dual Peripheral Interface
(2-2-2)
Quad Output (QREAD)
(1-1-4)
Quad I/O (4READ)
(1-4-4)
Quad Peripheral Interface (QPI)
(4-4-4)
P/N: AN-0243
Micron N25Q128A
Default
Dummy
Cycles
Max Speed
@ Default
Dummy Cycles
Max Speed
10 Dummy
Cycles
Default
Dummy
Cycles
Max Speed
@ Default
Dummy Cycles
Max Speed
10 Dummy
Cycles
8
104MHz
133MHz
8
108MHz
108MHz
8
104MHz
133MHz
8
108MHz
108MHz
4
84MHz
133MHz
8
108MHz
108MHz
-
-
-
9
108MHz
108MHz
8
104MHz
133MHz
8
108MHz
108MHz
6
84MHz
133MHz
10
108MHz
108MHz
6
84MHz
133MHz
11
108MHz
108MHz
2
Ver. 01, July 05, 2013
APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
3. Package and Pinout
Both devices are available in 16-pin SOP and 8-WSON packages with similar footprints. Pinout
definitions are identical with the two exceptions shown in Table 3-2. Where Macronix has a
RESET#/SIO3 pin, Micron has either a HOLD#/DQ3 or a RESET#/DQ3 pin. If the Micron device has a
RESET# pin, then the devices are pin compatible. If the Micron device has a HOLD# pin, but the HOLD#
function is not used, then the devices are also pin compatible. Macronix does not support the VPP (10V
Fast Programming Voltage) function available on Micron’s W#/VPP/DQ2 pin. This function is normally
only used on external programmers to accelerate Program/Erase operations and is generally not used
for “in-circuit” programming.
Please consult the latest Macronix datasheet for new package additions.
Table 3-1: Packages
Packages
Macronix MX25L12835F
Micron N25Q128A
8-WSON (6x5mm)
YES
YES
8-WSON (8x6mm)
YES
YES
8-SOP (209mil)
YES
YES
16-SOP (300mil)
YES
YES
(1)
24-TFBGA (5x5 grid)
YES
Note
1. This package may be available in the MX25L12855FXD family. Please contact Macronix for availability.
Table 3-2: Pin Definition Comparison
Package / Pin#
Macronix
MX25L12835F
Micron
N25Q128A
Comments
8-SOP and 8-WSON
Pin #3
WP#/SIO2
W#/ VPP /DQ2
Macronix does not support VPP.
Pin #7
RESET#/SIO3
HOLD#/DQ3
HOLD# not supported by Macronix.
Dedicated Micron part numbers offer RESET#
instead of HOLD#.
Pin #1
DNU#/SIO3
HOLD#/DQ3
HOLD# not supported by Macronix. Dedicated
Micron part numbers offer RESET# instead of
HOLD#.
Pin #4, 5, 6,
11, 12, 13, & 14
NC
DNU
DNU means “Do Not Use”
Pin #3
RESET#
DNU
DNU means “Do Not Use”. RESET# has an
internal pull-up and may be left unconnected.
Pin #9
WP#/SIO2
W#/ VPP /DQ2
Macronix does not support VPP.
16-SOP
P/N: AN-0243
3
Ver. 01, July 05, 2013
APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
4. Key Feature and Operational Differences
4-1 Status Register and Configuration Register Differences
Both devices use status and configuration registers to control device behavior and report status. The
registers and bits used are similar but not identical.
Both the Micron and Macronix devices use BP[3:0] bits to select the same memory areas for protection.
The N25Q128A Block Protection bits BP[3:0] are located in Status Register (bits 6 and [4:2]). The
Top/Bottom bit is located in Status Register bit 5 and selects whether block protection starts at the top or
bottom of memory. The BP[3:0] and Top/Bottom bits are nonvolatile and reprogrammable.
The MX25L12835F Block Protection bits BP[3:0] are located in Status Register bits [5:2]. The top/bottom
starting point is controlled by the TB bit, which is located in Configuration Register bit 3. The default
setting of the TB bit starts block protection at the top of memory. If the ‘bottom’ starting point is selected,
it can never be returned to the ‘top’ starting point. The BP[3:0] bits are all nonvolatile and
reprogrammable. The TB bit is nonvolatile and one-time-programmable.
4-2 QPI Differences
Micron’s Quad I/O mode is entered by setting a bit in the Nonvolatile Configuration Register, which
remembers this mode after power cycles, or by setting a bit in the Enhanced Volatile Configuration
Register and is reset after a power cycle.
The MX25L12835F requires an EQIO (35h) command to enter the equivalent QPI mode. This mode can
be terminated by a RSTQIO (F5h) command or by a power cycle or software reset.
4-3 XIP Differences
The XIP (eXecute In Place) feature (Macronix refers to this as Performance Enhance Mode) is only used
during Fast Read operations and eliminates the need to input read commands prior to entering an
address and reading data. This is an overhead reduction feature that increases data throughput. Both
devices offer this feature, but entry and exit methods are different. The MX25L12835F enters XIP mode
whenever all four bits of the first and second dummy cycles of a 4READ (EBh) instruction are not equal
and will exit XIP mode if any of the bits of the first and second dummy cycles are equal. Macronix only
supports XIP in Quad I/O (1-4-4) and QPI (4-4-4) modes. Micron supports XIP in all Fast Read I/O
modes.
P/N: AN-0243
4
Ver. 01, July 05, 2013
APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
4-4 Individual Sector Protection Differences
Both devices have the ability to write protect individual 64KB sectors/blocks of memory. Individual Sector
Protection does not use the nonvolatile BP bits in the Status Register. With the Micron flash, it is possible
to use both methods of write protection (BP bits and Individual Sector Protection) simultaneously, and the
protected area is the combination of the two. When using the Macronix flash, either BP bit Protection or
Individual Block Protection can be selected exclusively, with the default being the use of the BP bits.
The N25Q128A has one volatile Lock Register for each 64KB sector to control the sector’s
program/erase protection status. The protection can be turned on or off at any time unless the sector’s
Lock Register has been locked by the application. Once locked, its associated sector will remain in the
protected or unprotected state until the next power cycle or reset. All sectors not protected by the Status
Register BP configuration will be unprotected after power up and all Lock Registers will be unlocked.
The MX25L12835F has one volatile protection register for each of the top sixteen 4KB sectors, bottom
sixteen 4KB sectors, and 254 middle 64KB blocks of memory. These protection registers can only be
used after permanently disabling the Status Register BP protection bits. This is done by executing the
WPSEL instruction once. Please note that this irreversible and the individual sector/block protection
method will be permanently selected.
After permanently selecting the individual block protection method for the MX25L12835F, all sectors and
blocks will be locked by default on power up. Sectors/blocks must be unlocked before they can be
programmed or erased. Unlocking sectors/blocks can be done on an individual basis with the WRDPB
(write DPB register) command or on all sectors/blocks with the GBULK (Global Block Unlock) command.
Sectors and blocks can be relocked as necessary with the WRDPB command or GBLK (Global Block
Lock) command.
Since the smallest individual sector protection size in the N25Q128A is 64KB, if an application is
currently locking/unlocking the top and/or bottom 64KB sector(s), it will need to lock/unlock each of the
16 top and/or bottom 4KB sectors in the MX25L12835F for equivalent results.
The Macronix MX25L12835F also supports non-volatile SPB (Solid Protection Bits). The SPB and DPB
bits function similarly, the only difference being non-volatile vs volatile protection (see datasheet for
details). The protected area is the combination of the two.
The Macronix flash also contains a Password Protection Mode in which the SPBs are locked and cannot
be updated until a correct password has been provided.
P/N: AN-0243
5
Ver. 01, July 05, 2013
APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
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
Clock High Time
Clock Low Time
Symbol
Macronix
Micron
tCH
tCH
tCL
tCL
Clock Low to Output Valid
tCLQV
tCLQV
Data In Setup Time
Data In Hold Time
Page Program Time
(256 Bytes)
tDVCH
tCHDX
tDVCH
tCHDX
tPP
tPP
Erase 4KB Subsector/Sector
tSSE
tSE
Erase 32KB Sector
tBE32
-
Erase 64KB Sector/Block
tBE
tSE
Bulk Erase / Chip Erase
tCE
tBE
Parameter
Condition
min
min
max @10pF
max @15pF
max @30pF
min
min
typ
max
typ
max
typ
max
typ
max
typ
max
Macronix
MX25L12835F
3.3ns
3.3ns
6ns
8ns
2ns
3ns
0.6ms
3ms
43ms
200ms
190ms
1s
340ms
2s
72s
160s
Micron
N25Q128A
4ns
4ns
5ns
7ns
2ns
3ns
0.5ms
5ms
250ms
800ms
700ms
3s
170s
250s
Table 5-2: DC Parameter Comparison
Leakage Current
Symbol
Macronix
Micron
ILI/ILO
ILI/ILO
Standby Current
ISB1
Parameter
VCC Read Current
(Fast Read)
VCC Program Current
VCC Write Status
Register Current
VCC Erase Current
P/N: AN-0243
ICC1
ICC1
ICC3
Condition
max
typ
max
max @ 108MHz
(Quad I/O)
max @ 104MHz
(Quad I/O)
max @ 84MHz
Macronix
MX25L12835F
+/- 2uA
15uA
60uA
Micron
N25Q128A
+/- 2uA
100uA
-
20mA
20mA
-
15mA
-
25mA
6mA
20mA
ICC2
ICC4
max @ 54MHz
max
ICC3
ICC5
max
20mA
20mA
ICC4,5
ICC6
max
25mA
20mA
6
Ver. 01, July 05, 2013
APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
6. Command Code
Both devices use the same basic command set, but there are a few minor differences highlighted in
Table 6-1.
Table 6-1: Command Code Comparison
Instruction
Type
Read ID
Read
Write
Register
OTP
P/N: AN-0243
Instruction
Description
RDID
Read Identification
REMS
Read Electronic Manufacturer ID &
READ
Read Data Bytes
FAST_READ Read Data Bytes at Higher Speed
DOFR
Dual Output Fast Read
DIOFR
Dual Input/Output Fast Read
QOFR
Quad Output Fast Read
QIOFR
Quad Input/Output Fast Read
Read Serial Flash Discoverable
RDSFDP
Parameters
WREN
Write Enable
WRDI
Write Disable
PP
Page Program
Dual Input Fast Program (1-1-2)
Dual I/O Fast Program (1-2-2)
Quad Input Fast Program (1-1-4)
4PP
Quad Page Program (1-4-4)
SE
Sector Erase 4KB
BE 32K Block Erase 32KB
SE 64K Block Erase 64KB
CE
Chip Erase
RDSR
Read Status Register
RDCR
Read Configuration Register
WRSR
Write Status Register
RDSCUR Read Security Register
WRSCUR Write Security Register
RFSR
Read Flag Status Register
CLFSR
Clear Flag Status Register
Read Non-volatile Configuration Register
Write Non-volatile Configuration Register
Read Volatile Configuration Register
Write Volatile Configuration Register
Read Enhance Volatile Configuration
Register
Write
Enhance Volatile Configuration
Register
ENSO
Enter
Secured OTP
EXSO
Exit Secured OTP
ROTP
Read OTP Area
POTP
Program OTP Area
7
Macronix
MX25L12835F
9Fh
90h
03h
0Bh
3Bh
BBh
6Bh
EBh
Micron
N25Q128A
9Eh/9Fh
03h
0Bh
3Bh
BBh
6Bh
EBh
5Ah
5Ah
06h
04h
02h
38h
20h
52h
D8h
60 or C7h
05h
15h
01h
2Bh
2Fh
B1h
C1h
-
06h
04h
02h
A2h
D2h
32h
12h
20h
D8h
C7h
05h
01h
70h
50h
B5h
B1h
85h
81h
65h
61h
4Bh
42h
Ver. 01, July 05, 2013
APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
Table 6-1: Command Code Comparison - Continued
Instruction
Type
QPI
Others
Instruction
EQIO
RSTQIO
QPIID
PGM/ERS Suspend
PGM/ERS Resume
RSTEN
RST
DP
RDP
WPSEL
Description
Enable QPI
Reset (Exit) QPI
QPI ID Read
Program or Erase Suspend
Program or Erase Resume
Reset Enable
Reset Memory
Deep Power Down
Release From Deep Power Down
Write Protect Selection (OTP)
Macronix
MX25L12835F
35h
F5h
AFh
B0h
30h
66h
99h
B9h
ABh
68h
Micron
N25Q128A
AFh
75h
7Ah
66h
99h
-
7. Manufacturer and Device ID
Table 7-1: Manufacturer and Device ID Comparison
ID Type
Manufacturer ID
Device ID
Unique ID
Macronix MX25L12835F
C2h
Micron N25Q128A
20h
Memory Type
20h
BAh
Memory Capacity
18h
N/A
18h
17 Bytes
8. Summary
The Macronix MX25L12835F and Micron N25Q128A have similar commands, functions, and features.
The devices are command compatible for basic read, program, and erase (4KB and 64KB) operations.
The devices are essentially pin compatible if the HOLD# function is not used. A more detailed analysis
should be done if “special” functions such as XIP or Individual Sector Write Protection are used. If
common features are used in standard traditional modes, the replacement may need only minimal
software modification.
P/N: AN-0243
8
Ver. 01, July 05, 2013
APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
9. References
Table 9-1 shows the datasheet versions used for comparison in this application note.
current, detailed Macronix specification, please refer to the Macronix Website at
http://www.macronix.com.
For the most
Table 9-1: Datasheet Version
Datasheet
Location
Date Issued
Version
MX25L12835F
Macronix Website
DEC. 26, 2012
1.1
n25q_128mb_3V_65nm
Micron Website
APR. 2013
O
10. Appendix
Table 10-1 shows the basic part number and package information cross reference between Macronix
MX25L12835F and Micron N25Q128 parts.
Table 10-1: Part Number Cross Reference
Macronix Part No.
MX25L12835FM2I-10G
MX25L12835FM2I-10G
MX25L12835FM2I-10G
MX25L12835FM2I-10G
MX25L12835FMI-10G
MX25L12835FMI-10G
MX25L12835FMI-10G
MX25L12835FMI-10G
MX25L12835FMI-10G
MX25L12835FMI-10G
MX25L12835FZNI-10G
MX25L12835FZNI-10G
MX25L12835FZNI-10G
MX25L12835FZNI-10G
MX25L12835FZ2I-10G
MX25L12835FZ2I-10G
MX25L12835FZ2I-10G
MX25L12835FZ2I-10G
MX25L12835FZ2I-10G
MX25L12835FZ2I-10G
Micron Part No.
N25Q128A13ESE40
N25Q128A23ESE40
N25Q128A33ESE40
N25Q128A43ESE40
N25Q128A13ESF40
N25Q128A23ESF40
N25Q128A33ESF40
N25Q128A43ESF40
N25Q128A13BSF40
N25Q128A23BSF40
N25Q128A13EF740
N25Q128A23EF740
N25Q128A33EF740
N25Q128A43EF740
N25Q128A13EF840
N25Q128A23EF840
N25Q128A33EF840
N25Q128A43EF840
N25Q128A13BF840
N25Q128A23BF840
Package
8-SOP
8-SOP
8-SOP
8-SOP
16-SOP
16-SOP
16-SOP
16-SOP
16-SOP
16-SOP
8-WSON
8-WSON
8-WSON
8-WSON
8-WSON
8-WSON
8-WSON
8-WSON
8-WSON
8-WSON
Dimension
209 mil
209 mil
209 mil
209 mil
300 mil
300 mil
300 mil
300 mil
300 mil
300 mil
6 x 5 mm
6 x 5 mm
6 x 5 mm
6 x 5 mm
8 x 6 mm
8 x 6 mm
8 x 6 mm
8 x 6 mm
8 x 6 mm
8 x 6 mm
Note
Hold# pin, Micron XIP
Hold# pin, basic XIP
Reset# pin, Micron XIP
Reset# pin, basic XIP
Hold# pin, Micron XIP
Hold# pin, basic XIP
Reset# pin, Micron XIP
Reset# pin, basic XIP
Hold# pin, Micron XIP
Hold# pin, basic XIP
Hold# pin, Micron XIP
Hold# pin, basic XIP
Reset# pin, Micron XIP
Reset# pin, basic XIP
Hold# pin, Micron XIP
Hold# pin, basic XIP
Reset# pin, Micron XIP
Reset# pin, basic XIP
Hold# pin, Micron XIP
Hold# pin, basic XIP
11. Revision History
Revision
Description
Date
1.0
Initial Release
June 6, 2013
P/N: AN-0243
9
Ver. 01, July 05, 2013
APPLICATION NOTE
Replacing Micron N25Q128A with Macronix MX25L12835F
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 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-0243
10
Ver. 01, July 05, 2013