MICROCHIP 25AA320, 25LC320, 25C320 Technical data

25AA320/25LC320/25C320
32K SPI™ Bus Serial EEPROM
Device Selection Table
Part
Number
25AA320 1.8-5.5V 1 MHz I 25LC320 2.5-5.5V 2 MHz I,E
25C320 4.5-5.5V 3 MHz I,E
VCC
Range
Max. Clock
Frequency
Features:
• Low-power CMOS technology:
- Write current: 3 mA maximum
- Read current: 500 µA typical
- Standby current: 500 nA typical
• 32 byte page
• Write cycle time: 5 ms maximum
• Self-timed erase and write cycles
• Block write protection:
- 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
• Sequential read
• High reliability:
- Endurance: 1M E/W cycles
- Data retention: > 200 years
- ESD protection: > 4000V
• 8-pin PDIP, SOIC and TSSOP packages
• 14-lead TSSOP package
• Temperature ranges supported:
- Industrial (I): -40°Cto +85°C
- Automotive (E): -40°C to +125°C
Temp.
Ranges
Description:
The Microchip Technology Inc. 25AA320/25LC320/ 25C320 (25XX320 Erasable PROMs. 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
) input.
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.
*
) are 32 Kbit serial Electrically
). While the device is paused,
Block Diagram
SO CS
SCK
HOLD
WP
SI
Status
Register
I/O Control
Logic
Memory
Control
Logic
VCC
VSS
XDEC
HV Generator
EEPROM
Array
Page
Latches
Y Decoder
Sense Amp. R/W Control
Package Types
PDIP, SOIC
1
CS
2
SO
3
WP
4
VSS
*25XX320 is used in this document as a generic part number for the 25AA320/25LC320/25C320 devices.
2004 Microchip Technology Inc. DS21227E-page 1
25XX320
8
VCC
7
HOLD SCK
6
SI
5
HOLD
VCC
CS SO
1 2
3 4
TSSOP
25XX320
TSSOP
1
8
SCK
7
SI
6
SS
V
5
WP
CS
2
SO
3
NC
4
NC
510
NC
6
WP
78
VSS
25XX320
14
CC
V
13
HOLD
12
NC
11
NC NC
9
SCK SI
25AA320/25LC320/25C320

1.0 ELECTRICAL CHARACTERISTICS

Absolute Maximum Ratings
(†)
VCC.............................................................................................................................................................................7.0V
All inputs and outputs w.r.t. V
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 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.
TABLE 1-1: DC CHARACTERISTICS
DC CHARACTERISTICS
Param.
No.
D1 V D2 VIH2 0.7 VCC VCC+1 V VCC< 2.7V (Note) D3 V D4 VIL2 -0.3 0.3 VCC VVCC < 2.7V (Note)
Sym. Characteristics Min. Max. Units Conditions
IH1 High-level input
voltage
IL1 Low-level input
voltage
D5 VOL Low-level output
Industrial (I): T Automotive (E):T
2.0 VCC+1 V VCC2.7V (Note)
-0.3 0.8 V VCC2.7V (Note)
—0.2VIOL = 1.0 mA, VCC < 2.5V
voltage
D6 V
OH High-level output
VCC -0.5 V IOH = -400 µA
voltage D7 I D8 ILO O utp ut lea ka ge
LI Input leakage current ±1 µACS = VCC, V IN = VSS TO VCC
—±1µACS = VCC, VOUT = VSS TO VCC
current D9 CINT Internal Capacitance
—7pFT (all inputs and outputs)
D10 I
CC Read Operating Current
D11 I
CC Write
D12 I
CCS Standby Current
Note: This parameter is periodically sampled and not 100% tested.
A = -40°C to +85°C VCC = 1.8V to 5.5V A = -40°C to +125°C VCC = 2.5V to 5.5V
A = 25°C, CLK = 1.0 MHz,
CC = 5.0V (Note)
V
1
500
mAµAVCC = 5.5V; FCLK = 3.0MHz;
SO = Open
CC = 2.5V; FCLK = 2.0MHz;
V SO = Open
5 3
5 1
mAmAVCC = 5.5V
CC = 2.5V
V
µAµACS = VCC = 5.5V, Inputs tied to VCC or
SS
V CS = VCC = 2.5V, Inputs tied to VCC or V
SS
DS21227E-page 2 2004 Microchip Technology Inc.
25AA320/25LC320/25C320
TABLE 1-2: AC CHARACTERISTICS
AC CHARACTERISTICS
Param.
No.
1F
Sym. Characteristic Min. Max. Units Conditions
CLK Clock Frequency
Industrial (I): T Automotive (E): T
— —
2T
CSS CS Setup Time 100
250 500
3T
CSH CS Hold Time 150
250
475 4T 5T
CSD CS Disable Time 500 ns SU Data Setup Time 30
50 50
6T
HD Data Hold Time 50
100
100 7T 8T 9T
R CLK Rise Time 2 µs (Note 1)
F CLK Fall Time 2 µs (Note 1) HI Clock High Time 150
230
475 10 T
LO Clock Low Time 150
230
475 11 T 12 T 13 T
CLD Clock Delay Time 50 ns CLE Clock Enable Time 50 ns
V Output Valid from
Clock Low
— —
— 14 T 15 T
HO Output Hold Time 0 ns (Note 1) DIS Output Disable Time
— 16 T
HS HOLD Setup Time 100
100 200
17 T
HH HOLD Hold Time 100
100 200
18 T
HZ HOLD Low to Output
High-Z
100 150 200
19 T
HV HOLD High to Output
Valid
100 150 200
20 T
WC Internal Write Cycle
—5ms
Time
21 Endurance 1M E/W
Note 1: This parameter is periodically sampled and not 100% tested.
2: 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 Microchip’s web site at: www.microchip.com.
A = -40°C to +85°C VCC = 1.8V to 5.5V A = -40°C to +125°C VCC = 2.5V to 5.5V
3 2 1
MHz MHz MHz
— — —
— — —
— — —
— — —
— — —
— — —
150 230
200 250
— —
— —
— — —
— — —
— — —
Cycles
CC = 4.5V to 5.5V
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
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
V
VCC = 4.5V to 5.5V
CC = 2.5V to 5.5V
V
V
CC = 1.8V to 5.5V
(Note 2)
2004 Microchip Technology Inc. DS21227E-page 3
25AA320/25LC320/25C320
FIGURE 1-1: HOLD TIMING
CS
17
High-impedance
SCK
SO
16 16 17
n+2 n+1 n n-1
1918
n
SI
HOLD
n+2 n+1 n
FIGURE 1-2: SERIAL INPUT TIMING
CS
2
Mode 1,1
Mode 0,0
SCK
65
SI
SO
MSB in
High-impedance
LSB in
5
n
n-1
4
12
11
don’t care
7
8
3
FIGURE 1-3: SERIAL OUTPUT TIMING
CS
9
10
SCK
13
SO
SI
DS21227E-page 4 2004 Microchip Technology Inc.
MSB out
don’t care
14
3
Mode 1,1 Mode 0,0
15
ISB out
25AA320/25LC320/25C320
TABLE 1-3: AC TEST CONDITIONS FIGURE 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
Input 0.5 V Output 0.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. DS21227E-page 5
25AA320/25LC320/25C320

2.0 PIN DESCRIPTIONS

The descriptions of the pins are listed in Table 2-1.
TABLE 2-1: PIN FUNCTION TABLE
Name PDIP SOIC
CS SO 2 2 4 2 Serial Data Output NC 3,4,5 Not Connected
WP Vss 4 4 6 7 Ground
SI 5 5 7 8 Serial Data Input
SCK 6 6 8 9 Serial Clock Input
NC 10,11,12 Not Connected
HOLD
Vcc 8 8 2 14 Supply Voltage
1 1 3 1 Chip Select Input
3 3 5 6 Write-Protect Pin
7 7 1 13 Hold Input
8-pin
TSSOP
2.1 Chip 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 input signal. If CS is brought high during a program cycle, the de vice wil l go into S t andb y mode as soon as 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 lo w-to-high transiti on on CS sequence initiates an internal write cycle. After power­up, a low level on CS is r equ ired p r ior to any sequence being initiated.
after a valid write
2.2 Serial Output (SO)
The SO pin is used to transfer data out of the 25XX320. During a read cycle, data is shifted out on this pin after the falling edge of the serial clock.
2.3 Write-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 write sequence will disable writing to the Status register. If an internal write cycle has already begun, WP
is high, all functions, including writes to the
low during a Status register
going low will have no effect on the write.
14-lead TSSOP
The WP pin function is blocked when the WPEN bit in the St atus regi ster is low. This allo ws the use r to ins t al l the 25XX320 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.
2.4 Serial 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.5 Serial Clock (SCK)
The SCK is used to synchronize the communication between a master and the 25XX320. 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.6 Hold (HOLD)
The HOLD pin is used to suspend transmission to the 25XX320 while in the middle of a seri al sequ ence wit h­out having to re-transmit the entire sequence 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-to­low transition. Th e 25XX320 must remain se lected d ur­ing this sequence. The SI, SCK, and SO pins are in 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.
Description
pin grounded and
pin
pin may be pulled
must be brought
DS21227E-page 6 2004 Microchip Technology Inc.
25AA320/25LC320/25C320

3.0 FUNCTIONAL DESCRIPTION

3.1 Principles Of Operation
The 25XX320 are 4096 byte Serial EEPROMs designed to interf ace di rec tly 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 microcontroll ers that do not ha ve a built-in SPI port by using discrete I/O lines programmed properly with the software.
The 25XX320 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 transf erred 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 25XX320 in ‘HOLD’
pin must be high fo r the entire
pin, operation will
3.2 Read Sequence
The device is selected by pulling CS low. The 8-bit READ instruction is transmitted to the 25XX320 fol­lowed by the 16- b it ad dr e s s, wi t h the fo ur MS Bs of t he address being don’t care bits. After the correct READ instruction and add res s a re s en t, 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 pro­vide clock pulses . Th e in tern al a ddress pointer is auto­matically incremented to the next higher address after each byte of data is shifted out. When the highest address is reached (0FFFh), the address counter rolls over to address 0000h allowing the read cycle to be continued indefi nitely. The read operat ion is te rminated by raising the CS
pin (Figure 3-1).
pin must
was asserted.
3.3 Write Sequence
Prior to any attempt to write data to the 25XX320, the write enable latch must be set by issuing the WREN instruction (Figure3-4). This is done by setting CS and then clocking out the proper instruction into the 25XX320. 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 e nable latc h will not hav e been properly set.
Once the write enable latch is set, the user may proceed by setting the CS instruction, followe d by the 16-bit address, with the four MSBs of the address being don’t ca re bits, and then the data to be writ ten. Up to 32 bytes of d ata ca n be sent to the 25XX320 before a write cycle is necessary. The only restriction is tha t al l of the byte s must reside in the same page. A page address begins with
0000 and ends with xxxx xxxx xxx1 1111.
xxx0
If the internal address counter reaches
xxx1
1111 and the clock continues, the counter will roll back to the first address of the page and overwrite any data in the page that may have been written.
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 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.
th
data byte has been clocked in. If CS is
must be brought high to set the
low, issuing a WRITE
xxxx xxxx
xxxx xxxx
low

TABLE 3-1: INSTRUCTION SET

Instruction Name Instruction Format Description
READ WRITE WRDI WREN RDSR WRSR
2004 Microchip Technology Inc. DS21227E-page 7
0000 0011 0000 0010 0000 0100 0000 0110 0000 0101 0000 0001
Read data from memory array beginning at selected address Write data to memory array beginning at selected address Reset the write enable latch (disable write operations) Set the write enable latch (enable write operations) Read Status register Write Status register
25AA320/25LC320/25C320
FIGURE 3-1: READ SEQUENCE
CS
0 234567891011 21222324252627282930311
SCK
instruction 16-bit address
SI
0100000115 14 13 12 210
High-impedance
SO
FIGURE 3-2: BYTE WRITE SEQUENCE
CS
91011 2122232425262728293031
SCK
SI
SO
0 23456718
instruction 16-bit address data byte
0000000115 14 13 12
High-impedance
FIGURE 3-3: PAGE WRITE SEQUENCE
CS
0 23456718
SCK
data out
76543210
Twc
21076543210
9 1011 2122232425262728293031
instruction 16-bit addres s data byte 1
SI
CS
32 34 35 36 37 38 3933
SCK
data byte 2
SI
DS21227E-page 8 2004 Microchip Technology Inc.
76543210
0000000115 14 13 12
41 42 43 46 47
40
data byte 3
76543210
21076543210
44 45
data byte n (32 max)
76543210
Loading...
+ 16 hidden pages