25AA6401.8-5.5V1 MHzI
25LC6402.5-5.5V2 MHzI
25LC6404.5-5.5V3/2.5 MHzI, E
VCC
Range
Max Clock
Frequency
Features
• Low-power CMOS technology
- Write current: 3 mA typical
- Read current: 500
- Standby current: 500 nA typical
• 8192 x 8 bit organization
• 32 byte page
• Write cycle time: 5 ms max.
• Self-timed erase and write cycles
• Block write protection
- Protect none, 1/4, 1/2 or all of array
• Built-in write protect ion
- Power on/off data protection circuitry
- Write enable latch
- Write-protect pin
• Sequential read
• High reliability
- Data retention: > 200 years
- ESD protection: > 4000V
• 8-pin PDIP, SOIC and TSSOP packages
• Temperature ranges supported:
- Industrial (I): -40°C to +85°C
- Automotive (E): -40°C to +125°C
µA typical
Temp
Ranges
Description
The Microchip Technology Inc. 25AA640/25LC640
(25XX640
PROM [EEPROM]. 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 dev ice is contro lled th rough a C hip
Select (CS
Communication to the device can be paused via the
hold pin (HOLD
transitions on its inputs will be ignored, with the
exception of Chip Select, allowing the host to service
higher priority interrupts.
*
) is a 64 Kbit Serial Electrically Erasable
) input.
). While the device is paused,
Block Diagram
SO
CS
SCK
HOLD
WP
SI
Status
Register
I/O Control
Logic
VCC
VSS
Memory
Control
Logic
XDEC
HV Generator
EEPROM
Array
Page
Latches
Y Decoder
Sense Amp.
R/W Control
Package Types
PDIP/SOICTSSOP
CS
1
25XX640
SO
2
WP
3
VSS
4
*25XX640 is used in this document as a generic part number for the 25AA640/25LC640 devices.
SPI is a registered trademark of Motorola Corporation.
SS ........................................................................................................ -0.6V to VCC + 1.0V
Storage temperature .................................................................................................................................-65°C to 150°C
Ambient temperature under bias...............................................................................................................-65°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 stres s ratin g only and func tional operati on of the devic e at thos e or any other co nditio ns abov e thos e
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.
HOOutput Hold Time0—ns(Note 1)
DISOutput Disable Time—
—
—
16T
HSHOLD Setup Time100
100
200
17T
HHHOLD Hold Time100
100
200
18T
HZHOLD Low to Outpu t
High-Z
100
150
200
19T
HVHOLD High to Output
Valid
100
150
200
20T
WCInternal Write Cycle
—5ms
Time
21—Endurance1M—E/W
Note 1: This parameter is periodically sampled and not 100% tested.
2: F
CLK max. = 2.5 MHz for TA > 85°C.
3: This parameter is not tested but established by characterization. For endurance estimates in a specific application,
please consult the Total Endurance™ Model which can be obtained from our web site.
A = -40°C to +85°CVCC = 1.8V to 5.5V
A = -40°C to +125°CVCC = 4.5V to 5.5V
3
2
1
MHz
MHz
MHz
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
150
230
475
200
250
500
—
—
—
—
—
—
—
—
—
—
—
—
Cycles
CC = 4.5V to 5.5V (Note 2)
V
CC = 2.5V to 5.5V
V
CC = 1.8V to 5.5V
V
ns
VCC = 4.5V to 5.5V
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
CC = 2.5V to 5.5V
V
CC = 1.8V to 5.5V
V
VCC = 4.5V to 5.5V
CC = 2.5V to 5.5V
V
CC = 1.8V to 5.5V
V
VCC = 4.5V to 5.5V
CC = 2.5V to 5.5V
V
V
CC = 1.8V to 5.5V
VCC = 4.5V to 5.5V
CC = 2.5V to 5.5V
V
V
CC = 1.8V to 5.5V
CC = 4.5V to 5.5V
V
CC = 2.5V to 5.5V
V
CC = 1.8V to 5.5V
V
CC = 4.5V to 5.5V
V
CC = 2.5V to 5.5V
V
CC = 1.8V to 5.5V
V
VCC = 4.5V to 5.5V
V
CC = 2.5V to 5.5V
CC = 1.8V to 5.5V
V
CC = 4.5V to 5.5V (Note 1)
V
CC = 2.5V to 5.5V (Note 1)
V
CC = 1.8V to 5.5V (Note 1)
V
VCC = 4.5V to 5.5V
CC = 2.5V to 5.5V
V
CC = 1.8V to 5.5V
V
VCC = 4.5V to 5.5V
CC = 2.5V to 5.5V
V
CC = 1.8V to 5.5V
V
VCC = 4.5V to 5.5V (Note 1)
CC = 2.5V to 5.5V (Note 1)
V
CC = 1.8V to 5.5V (Note 1)
V
VCC = 4.5V to 5.5V
CC = 2.5V to 5.5V
V
V
CC = 1.8V to 5.5V
(Note 3)
2004 Microchip Technology Inc.DS21223G-page 3
25AA640/25LC640
FIGURE 1-1:HOLD TIMING
CS
161617
SCK
SO
n + 2n + 1nn - 1
17
High-impedance
1918
n
SI
HOLD
n + 2n + 1n
FIGURE 1-2:SERIAL INPUT TIMING
CS
SCK
SI
SO
2
Mode 1,1
Mode 0,0
65
MSB In
High-impedance
7
Don’t Care
8
3
LSB In
5
n
n - 1
4
12
11
FIGURE 1-3:SERIAL OUTPUT TIMING
CS
9
10
SCK
13
SO
SI
DS21223G-page 4 2004 Microchip Technology Inc.
MSB Out
Don’t Care
14
3
Mode 1,1
Mode 0,0
15
LSB Out
25AA640/25LC640
TABLE 1-3:AC TEST CONDITIONSFIGURE 1-4:AC TEST CIRCUIT
AC Waveform:
VLO = 0.2V
HI = VCC – 0.2V (Note 1)
V
VHI = 4.0V (Note 2)
Timing Measurement Reference Lev el
Input0.5 V
Output0.5 VCC
Note 1: For VCC≤ 4.0V
2: For V
CC > 4.0V
CC
SO
VCC
2.25 kΩ
1.8 kΩ
100 pF
2004 Microchip Technology Inc.DS21223G-page 5
25AA640/25LC640
2.0PIN DESCRIPTIONS
The descriptions of the pins are listed in Table 2-1.
TABLE 2-1:PIN FUNCTION TABLE
NamePDIPSOICTSSOPDescription
CS
SO224Serial Data Output
WP
SS44 6Ground
V
SI557Serial Data Input
SCK668Serial Clock Input
HOLD
V
CC882Supply Voltage
2.1Chip Select (CS)
A low level on this pin selects the device. A high level
deselects the device and forces it into Standby mode.
However, a programming cycle which is already
initiated or in progress will be completed, regardle ss of
the CS
high during a program cycle, the device will go into
Standby mode when the programming cycle is
complete. When the device is deselected, SO goes to
the high-impedance state, allowing multiple parts to
share the same SPI bus. A low-to-hi gh transition on CS
after a valid write sequence initiates an internal write
cycle. After power-up, a high-to-lo w trans itio n on CS
required prior to any sequence being initiated.
113Chip Select Input
335Write-Protect Pin
771Hold Input
input signal. If CS is brought high, or remains
is
2.4Serial Input (SI)
The SI pin is used to transfer data into the device. It
receives instructions, addresses, and data. Data is
latched on the rising edge of the serial clock.
2.5Serial Clock (SCK)
The SCK is used to synchronize the communication
between a master and the 25XX640. Instructions,
addresses, or data present on the SI pin are latched on
the rising edge of t he c lo ck input, while data on the SO
pin is updated after the falling edge of the clock input.
2.6Hold (HOLD)
The HOLD pin is used to suspend transmission to the
25XX640 while in the middle of a seri al sequ ence wit hout having to retransmit the entire sequence over
again. It must be held high any time this function is not
being used. Once the device is selected and a serial
sequence is underway, the HOLD
low to pause further serial communication without
resetting the serial sequence. The HOLD pin must be
brought low while SCK is low, otherwise the HOLD
function will not be invoked until the next SCK high-tolow transition. The 25XX640 must remain selected
during this sequenc e. The SI, SC K, an d SO p ins a re i n
a high-impedance state during the time the device is
paused and transitions on these p ins will be ignored. To
resume serial communication, HOLD
high while the SCK pin is low, otherwise serial
communication will not resume. Lowering the HOLD
line at any time will tri-state the SO line.
pin may be pulled
must be brought
2.2Serial Output (SO)
The SO pin is used to transfer data out of the 25XX640.
During a read cycle, data is shifted out on this pin after
the falling edge of the serial clock.
2.3Write-Protect (WP)
This pin is used in conjunction with the WPEN bit in the
Status register to prohibit writes to the nonvolatile bits
in the Status register. When WP is low and WPEN is
high, writing to the no nvolatil e bits in the Status register
is disabled. All other operations function normally.
When WP
nonvolatile bits in the Status register operate normally.
If the WPEN bit is set, WP low during a Status register
write sequence will disable writing to the Status register. If an internal write cycle has already begun, WP
going low will have no effect on the write.
The WP
the Status register is low. This allows the user to install
the 25XX640 in a system with WP
still be able to write to the Status register. The WP
functions will be enabled when the WPEN bit is set
high.
is high, all functions, including writes to the
pin function is blocked when the WPEN bit in
pin grounded and
pin
DS21223G-page 6 2004 Microchip Technology Inc.
25AA640/25LC640
3.0FUNCTIONAL DESCRIPTION
3.1Principles Of Operation
The 25XX640 is a 8192 byte Serial EEPROM desi gned
to interface directly with the Serial Peripheral Interface
(SPI) port of many of today’s popular microcontroller
families, including Microchip’s PIC16C6X/7X microcontrollers. It may also interface with microcontrollers
that do not hav e a built-in SPI port by using discrete
I/O lines programmed properly with the software.
The 25XX640 conta ins an 8-bit instr uction regi ster . 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 3-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 is sampled on the fir st rising edge of SCK after CS
goes low. If the clock line is shared with other
peripheral devices on the SPI bus, the user can assert
the HOLD
mode. After releasing the HOLD
resume from the point when the HOLD
input and place the 25XX640 in ‘HOLD’
pin must be high fo r the entire
pin, operation will
3.2Read Sequence
The device is sele cted by p ulling CS low. The 8-bit read
instruction is transmitted to the 25XX640 followed by
the 16-bit address with the three MSBs of the address
being don’t care bits. After the correct read instruction
and address are sent, the d ata st ored i n the memo ry 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 continu ing to provide clock pul ses.
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 (1FFFh), the address counter rolls over to
address 0000h allow in g th e rea d c yc le to b e co nti nue d
indefinitely. The read operation i s term inated by rai sing
pin (Figure 3-1).
the CS
pin must
was asserted.
3.3Write Sequence
Prior to any attempt to wri t e d at a to the 25XX6 40 arra y
or St atus regis ter, the write enable lat ch mus t be s et by
issuing the WREN instruction (Figure 3-4). This is done
by setting CS
instruction into the 25XX640. After all eight bits of the
instruction are transmitted, the CS
high to set the write enable latch. If the write operation
is initiated immediately after the WREN instruction without CS
to the array because the write enable latch will no t have
been properly set.
Once the write enable latch is set, the user may
proceed by setting the CS
instruction, followed by the address, and then the data
to be written. Up to 32 bytes of data can be sent to the
25XX640 before a write cycle is necessary. The only
restriction is that all of the bytes must reside in the
same page. A page address begins with XXX0 0000
and ends with XXX1 1111. If the internal address
counter reaches XXX1 1111 and the clock continues,
the counter will roll bac k to the first add ress of the p age
and overwrite any da ta in the p age that m ay have bee n
written.
For the data to be actually written to the array, the CS
must be brought high after the Leas t Significant bit (D0)
of the n
brought high at any other time, the write operation will
not be completed. Refer to Figure 3-2 and Figure 3-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 3-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.
low and then clocking out the proper
must be brought
being brought high, the data will not be written
low, issuing a WRITE
th
data byte has been clocked in. If CS is
TABLE 3-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
2004 Microchip Technology Inc.DS21223G-page 7
25AA640/25LC640
FIGURE 3-1:READ SEQUENCE
CS
023456789101121222324252627282930311
SCK
Instruction16 Bit Address
SI
0100000115 14 13 12210
High-impedance
SO
FIGURE 3-2:BYTE WRITE SEQUENCE
CS
Instruction16 Bit AddressData Byte
SI
SO
0000000115 14 13 1221076543210
High-impedance
FIGURE 3-3:PAGE WRITE SEQUENCE
CS
8
910112122232425262728293031
SCK
SI
02345671
Instruction16 Bit AddressData Byte 1
0000000115 14 13 12
Data Out
76543210
Twc
21076543210
CS
3234 35 36 37 38 3933
SCK
Data Byte 2
SI
DS21223G-page 8 2004 Microchip Technology Inc.
76543210
41 42 4346 47
40
Data Byte 3
76543210
44 45
Data Byte n (32 max)
76543210
Loading...
+ 16 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.