• Byte and Page (256 byte page) Write Operations
(5 ms max.)
• Electronic Signature for device ID
• Self-timed ERASE and WRITE cycles
- Sector Erase (1 second/sector typical)
- Bulk Erase (2 seconds typical)
• Sector write protection (32K byte/sector)
- Protect none, 1/4, 1/2 or all of array
• Built-in write protection
- Power-on/off data protection circuitry
- Write enable latch
- Write-protect pin
• High reliability
- Endurance: 100,000 erase/write cycles
• Temperature ranges supported;
- Industrial (I):-40°Cto +85°C
- Automotive (E):-40°C to +125°C
• Standard and Pb-free packages available
Pin Function Table
NameFunction
Description
The Microchip Technology Inc. 25AA1024/25LC1024
(25XX1024
Flash memory with both Flash and byte-level serial
EEPROM functions. The memory is accessed via a
simple Serial Peripheral Interface™ (SPI™) compatible
serial bus. The bus signals required are a clock input
(SCK) plus separate data in (SI) and data out (SO) lines.
Access to the device is controlled by a Chip Select (CS
input.
Communication to the device can be paused via the
hold pin (HOLD
tions on its inputs will be ignored, with the exception of
Chip Select, allowing the host to service higher priority
interrupts.
The 25XX1024 is available in standard packages
including 8-lead PDIP and SOIC, and advanced 8-lead
DFN package. Pb-free (Pure Sn) finish is also
available.
*
) is a 1024 Kbit serial reprogrammable
). While the device is paused, transi-
Package Types (not to scale)
CS
SO
WP
VSS
1
2
3
4
DFN
(MF)
25LC1024
8
7
6
5
VCC
HOLD
SCK
SI
PDIP/SOIC
(P, SM)
CS
1
2
SO
3
WP
V
SS
4
25LC1024
V
8
7
HOLD
6
SCK
SI
5
CC
)
CS
Chip Select Input
SPI is a registered trademark of Motorola Semiconductor.
SS ......................................................................................................... -0.6V to VCC +1.0V
Storage temperature .................................................................................................................................-65°C to 150°C
Ambient temperature under bias...............................................................................................................-40°C to 125°C
ESD protection on all pins..........................................................................................................................................4 kV
† NOTICE: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions above those
indicated in the operational listings of this specification is not implied. Exposure to maximum rating conditions for an
extended period of time may affect device reliability.
The 25XX1024 is a 131,072 byte Serial Flash designed
to interface directly with the Serial Peripheral Interface
(SPI) port of many of today’s popular microcontroller
families, including Microchip’s PICMicro
lers. It may also interface with microcontrollers that do
not have a built-in SPI port by using discrete I/O lines
programmed properly in firmware to match the SPI
protocol.
The 25XX1024 contains an 8-bit instruction register.
The device is accessed via the SI pin, with data being
clocked in on the rising edge of SCK. The CS
be low and the HOLD
operation.
Table 2-1 contains a list of the possible instruction
bytes and format for device operation. All instructions,
addresses, and data are transferred MSB first, LSB
last.
Data (SI) is sampled on the first rising edge of SCK
after CS
peripheral devices on the SPI bus, the user can assert
the HOLD
mode. After releasing the HOLD
resume from the point when the HOLD
goes low. If the clock line is shared with other
input and place the 25XX1024 in ‘HOLD’
pin must be high for the entire
®
microcontrol-
pin must
pin, operation will
was asserted.
2.2Read Sequence
The device is selected by pulling CS low. The 8-bit read
instruction is transmitted to the 25XX1024 followed by
the 24-bit address, with seven MSBs of the address
being don’t care bits. After the correct read instruction
and address are sent, the data stored in the memory at
the selected address is shifted out on the SO pin. The
data stored in the memory at the next address can be
read sequentially by continuing to provide clock pulses.
The internal address pointer is automatically incremented to the next higher address after each byte of
data is shifted out. When the highest address is
reached (1FFFFh), the address counter rolls over to
address 00000h allowing the read cycle to be continued indefinitely. The read operation is terminated by
raising the CS
pin (Figure 2-1).
2.3Write Sequence
Prior to any attempt to write data to the 25XX1024, the
write enable latch must be set by issuing the WREN
instruction (Figure 2-4). This is done by setting CS low
and then clocking out the proper instruction into the
25XX1024. After all eight bits of the instruction are
transmitted, the CS
write enable latch. If the write operation is initiated
immediately after the WREN instruction without CS
being brought high, the data will not be written to the
array because the write enable latch will not have been
properly set.
Once the write enable latch is set, the user may
proceed by setting the CS
tion, followed by the 24-bit address, with seven MSBs
of the address being don’t care bits, and then the data
to be written. Up to 256 bytes of data can be sent to the
device before a write cycle is necessary. The only
restriction is that all of the bytes must reside in the
same page.
Note:Page write operations are limited to writing
bytes within a single physical page,
regardless of the number of bytes
actually being written. Physical page
boundaries start at addresses that are
integer multiples of the page buffer size (or
‘page size’), and end at addresses that are
integer multiples of page size - 1. If a Page
Write command attempts to write across a
physical page boundary, the result is that
the data wraps around to the beginning of
the current page (overwriting data
previously stored there), instead of being
written to the next page as might be
expected. It is therefore necessary for the
application software to prevent page write
operations that would attempt to cross a
page boundary.
For the data to be actually written to the array, the CS
must be brought high after the Least Significant bit (D0)
of the n
brought high at any other time, the write operation will
not be completed. Refer to Figure 2-2 and Figure 2-3
for more detailed illustrations on the byte write
sequence and the page write sequence respectively.
While the write is in progress, the Status Register may
be read to check the status of the WPEN, WIP, WEL,
BP1 and BP0 bits (Figure 2-6). A read attempt of a
memory array location will not be possible during a
write cycle. When the write cycle is completed, the
write enable latch is reset.
th
data byte has been clocked in. If CS is
must be brought high to set the
low, issuing a WRITE instruc-
DS21836A-page 6Preliminary 2003 Microchip Technology Inc.
BLOCK DIAGRAM
25AA1024/25LC1024
SI
SO
CS
SCK
HOLD
WP
Status
Register
I/O Control
Logic
VCC
VSS
Memory
Control
Logic
X
Dec
HV Generator
EEPROM
Array
Page Latches
Y Decoder
Sense Amp.
R/W Control
TABLE 2-1:INSTRUCTION SET
Instruction NameInstruction FormatDescription
READ0000 0011Read data from memory array beginning at selected address
WRITE0000 0010Write data to memory array beginning at selected address
WREN0000 0110Set the write enable latch (enable write operations)
WRDI0000 0100Reset the write enable latch (disable write operations)
RDSR0000 0101Read Status Register
WRSR0000 0001Write Status Register
PE0100 0010Page Erase - erase one page in memory array
SE1101 1000Sector Erase - erase one sector in memory array
CE1100 0111Chip Erase - erase all sectors in memory array
RDID1010 1011Release from Deep power-down and read electronic signature
DS21836A-page 8Preliminary 2003 Microchip Technology Inc.
25AA1024/25LC1024
2.4Write Enable (WREN) and Write
Disable (WRDI)
The 25XX1024 contains a write enable latch. See
Table 2-4 for the Write-Protect Functionality Matrix.
This latch must be set before any write operation will be
completed internally. The WREN instruction will set the
latch, and the WRDI will reset the latch.
FIGURE 2-4:WRITE ENABLE SEQUENCE (WREN)
CS
02345671
SCK
SI
SO
01000001
high-impedance
The following is a list of conditions under which the
write enable latch will be reset: