The Microchip Technology Inc. 24AA128/24LC128/
24FC128 (24XX128*) is a 16K x 8 (128 Kbit) Serial
Electrically Erasable PROM (EEPROM), capable of
operation across a broad voltage range (1.8V to 5.5V).
It has been developed for advanced, low-power
applications such as persona l com mun icati ons o r d at a
acquisition. This device also has a page write capability of up to 64 bytes of data. This device is capable of
both random and sequential reads up to the 128K
boundary. Functional address lines allow up to eight
devices on the same bus, for up to 1 Mbit address
space. This device is available in the standard 8-pin
plastic DIP, SOIC (150 and 208 mil), TSSOP, MSOP,
DFN and 14-lead TSSOP packages.
Block Diagram
I/O
SDA
C
ontrol
Logic
V
VSS
A0 A1 A2
I/O
SCL
CC
Memory
Control
Logic
WP
XDEC
HV Generator
EEPROM
Array
Page Latches
YDEC
Sense Amp.
R/W
Control
Package Types
1
2
3
4
5
6
7
TSSOP
24XX128
DFN
14
V
CC
13
WP
12
NC
11
NC
10
NC
9
SCL
8
SDA
1
A0
2
A1
3
A2
4
V
SS
8
VCC
24XX128
7
WP
6
SCL
5
SDA
PDIP/SOICTSSOP/MSOP *
1
A0
2
A1
3
A2
SS
4
V
Note: * Pins A0 and A1 are no-connects for the MSOP package only.
24XX128
8
VCC
WP
7
SCL
6
SDA
5
1
A0
2
A1
3
A2
4
V
SS
8
24XX128
7
6
5
CC
V
WP
SCL
SDA
A0
A1
NC
NC
NC
A2
SS
V
*24XX128 is used in this document as a generic part number for the 24AA128/24LC128/24FC128 devices.
All inputs and outputs w.r.t. VSS ......................................................................................................... -0.6V to VCC +1.0V
Storage temperature ...............................................................................................................................-65°C to +150°C
Ambient temperature with power applied................................................................................................-40°C to +125°C
ESD protection on all pins ......................................................................................................................................................≥ 4kV
† 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
extended periods may affect device reliability.
V
SDA555855Serial Data
SCL666966Serial Clock
(NC)———10, 11,12——Not Connected
WP7771377Write-Protect Input
CC8881488+1.8V to 5.5V (24AA128)
V
8-pin
PDIP
2.1A0, A1, A2 Chip Address Inputs
The A0, A1 and A2 inputs are used by the 24XX128 for
multiple device operations. The levels on these inputs
are compared with the corresponding bits in the slave
address. The chip is selected if the compare is true.
For the MSOP pac kage only, pins A0 and A 1 are not
connected.
Up to eight devices (two fo r the MS OP packag e) may
be connected to the same bus by using different Chip
Select bit combi nations. If these p ins are left unconnected, the inputs will be pulled down internally to
SS. If they are tied to VCC or driven high, the internal
V
pull-down circuitr y is disab le d.
In most applications, the chip address inputs A0, A1,
and A2 are hard-wired to logic ‘0’ or logic ‘1’. For
applications in which these pins are controlled by a
microcontroller or other pro grammabl e device, the chi p
address pins must be driven to logic ‘0’ or logic ‘1’
before normal device operation can proceed.
2.2Serial Data (SDA)
This is a bidirectional pin used to transfer addresses
and data into and out of the device. It is an open drain
terminal. Therefore, the SDA bus requires a pull-up
resistor to V
400kHz and 1MHz).
For normal data transfer, SDA is allowed to change
only during SCL low. Changes during SCL high are
reserved for indicating the Start and Stop conditions.
CC (typical 10 kΩ for 100 kHz, 2 kΩ for
8-pin
SOIC
8-pin
TSSOP
14-pin
TSSOP
8-pin
MSOP
8-pin
DFN
Function
+2.5V to 5.5V (24LC128)
+1.8V to 5.5V (24FC128)
2.3Serial Clock (SCL)
This input is used to synchronize the data transfer to
and from the device.
2.4Write-Protect (WP)
This pin can be connected to either VSS, VCC or left
floating. Internal pull-down circuitry on this pin will keep
the device in the un prot ected state if left floa tin g. If tie d
SS or left floating, normal memory operation is
to V
enabled (read/write the entire memory
If tied to V
operations are not affec ted.
CC, write operations are inhibited. Read
0000-3FFF).
3.0FUNCTIONAL DESCRIPTION
The 24XX128 supports a bidirectional 2-wire bus and
data transmission protocol. A device that sends data
onto the bus is defined as a transmitter and a device
receiving data as a receiver. The bus must be
controlled by a master device which generates the
serial clock (SCL), controls the bus access and
generates the Start and Stop conditions while the
24XX128 works as a sla ve. Both master and slave ca n
operate as a transmitter or receiver, but the master
device determines which mode is activated.
2004 Microchip Technology Inc.DS21191M-page 5
24AA128/24LC128/24FC128
4.0BUS CHARACTERISTICS
The following bus protocol has been defined:
• Data transfer may be initiated only when the bus
is not busy.
• During data transfer, the data line must remain
stable wheneve r the c lock lin e is high . Changes i n
the data line while the clock line is high will be
interpreted as a Start or Stop condition.
Accordingly, the following bus conditions have been
defined (Figure 4-1 ).
4.1Bus not Busy (A)
Both data and clock lines remain high.
4.2Start Data Transfer (B)
A high-to-low transition of the SDA line while the clock
(SCL) is high determines a Start condition. All
commands must be preceded by a Start condition.
4.3Stop Data Transfer (C)
A low-to-high transition of the SDA li ne, while the cl ock
(SCL) is high, determines a Stop condition. All
operations must end with a Stop condition.
4.4Data Valid (D)
The state of the data line represents valid data when,
after a Start condition, the data line is stable for the
duration of the high period of the clock signal.
The data on the line must be changed during the low
period of the clock signal. There is one bit of data per
clock pulse.
Each data transfer is initiated with a S tart condition and
terminated with a Stop condition. The number of the
data bytes transferred between the Start and Stop
conditions is determined by the master device.
4.5Acknowledge
Each receiving device, when addressed, is obliged to
generate an Acknowledge signal after the reception of
each byte. The master device must generate an extra
clock pulse, wh ich i s ass ociat ed with this A cknow ledg e
bit.
Note:The 24XX128 does not generate any
Acknowledge bits if an internal
programming cycle is in progress.
A device that acknowledges must pull down the SDA
line during the acknowledge clock pulse in such a way
that the SDA line is sta ble low d uring the high pe riod of
the acknowledge related clock pulse. Of course, setup
and hold times must be taken into account. During
reads, a master m ust s ignal an end of dat a to the sl ave
by NOT generating an Acknow ledge bit on the las t byte
that has been cl ocke d out o f the slave . In th is ca se , the
slave (24XX128) will leave the data line high to enable
the master to generate the Stop condition.
FIGURE 4-1:DATA TRANSFER SEQUENCE ON THE SERIAL BUS
(A)(B)(D)(D)(C) (A)
SCL
SDA
Start
Condition
Address or
Acknowledge
Valid
Data
Allowed
to Change
FIGURE 4-2:ACKNOWLEDGE TIMING
Acknowledge
Bit
SCL
SDA
Data from transmitter
Transmitter must release the SDA line at this point,
allowing the Receiver to pull the SDA line low to
acknowledge the previous eight bits of data.
987654321123
Data from transmitter
Receiver must release the SDA line
at this point so the Transmitter can
continue sending data.
Stop
Condition
DS21191M-page 6 2004 Microchip Technology Inc.
24AA128/24LC128/24FC128
5.0DEVICE ADDRESSING
A control byte is the first byte received following the
Start condition from the master device (Figure 5-1).
The control byte consi sts of a 4-bit contro l code. For the
24XX128, this is set as ‘
operations. The next three bits of the control byte are
the Chip Select bits (A2, A1, A0). The Chip Select bits
allow the use of up to eight 24XX128 devices on the
same bus and are used to select which device is
accessed. The Chip Select bits in the control byte must
correspond to the logic lev els on the corresp onding A2,
A1 and A0 pins for the device to respond. These bits
are, in effect, the thre e Most Signi ficant bit s of the word
address.
For the MSOP package, the A0 and A1 pins are not
connected. During device addressing, the A0 and A1
Chip Select bits (Fig ures 5-1 and 5-2) should be set to
‘0’. Only two 24XX128 MSOP packages can be
connected to the same bus.
The last bit of the control byte defines the operation to
be performed. When set to a one, a read operation is
selected. When set to a zero, a write operation is
selected. The next two bytes received define the
address of the first data byte (Figure 5-2). Because
only A13…A0 are used, t he upper two addres s bit s a re
“don’t care” bits . The upper addre ss bits ar e transferred
first, followed by the less significant bits.
Following the Start condition, the 24XX128 monitors
the SDA bus checking the device type identifier being
transmitted. Upon receiving a ‘
appropriate devic e select b it s, th e slave d evice out put s
an Acknowledge si gnal on the SD A line. Dependi ng on
the state of the R/W
or write operation.
1010’ binary for read and write
1010’ code and
bit, the 24XX128 will select a read
FIGURE 5-1:CONTROL BYTE
FORMAT
Read/Write
Chip Select
Control Code
1010A2A1A0SACKR/W
Slave Address
Start Bit
Bit
Bits
Acknowledge Bit
5.1Contiguous Addressing Across
Multiple Devices
The Chip Select bits A2, A1,and A0 can be used to
expand the cont iguous addres s space for up to 1 Mbi t
by adding up to eight 24XX128s on the same bus. In
this case, software can use A0 of the control byte as
address bit A14; A1 as address bit A15; and A2 as
address bit A16. It is not possible to sequentially read
across device boundaries.
For the MSOP package, up to two 24XX128 devices
can be added for up to 256 Kbit of address space. In
this case, software can use A2 of the control byte as
address bit A16. Bits A0 (A14) and A1 (A15) of the
control byte must always be set to logic ‘0’ for the
MSOP.
FIGURE 5-2:ADDRESS SEQUENCE BIT ASSIGNMENTS
Control ByteAddress High ByteAddress Low Byte
A
1010
Control
Code
2004 Microchip Technology Inc.DS21191M-page 7
A2A1A
Chip
Select
Bits
R/WXX
0
13
A
12
A11A10A
A
8
9
A
••••••
7
A
0
X = don’t care bit
24AA128/24LC128/24FC128
6.0WRITE OPERATIONS
6.1Byte Write
Following the Start condition from the master, the
control code (four bits ), the Chi p Selec t (three b its) an d
the R/W bit (which i s a lo gic low) are cloc ked ont o the
bus by the master transmitter. This indicates to the
addressed slave rec eiver that the a ddress high byt e will
follow after it has generated an Acknowled ge bit during
the ninth clock cycle. Therefore, the next byte
transmitted by the master is the high-order byte of the
word address and will be written into the address
pointer of the 24XX128. The next byte is the Least
Significant Address Byte. After receiving another
Acknowledge signal from the 24XX128, the master
device will transmit the data word to be written into the
addressed memory location. The 24XX128 acknowledges again and the master generates a Stop
condition. This initiates the internal write cycle and
during this time, the 24XX128 will not generate
Acknowledge signals (Figure 6-1). If an attempt is
made to write to the arra y with the WP pin held high, the
device will acknowledge the command, but no write
cycle will occur, no data will be written, and the device
will immediately accept a new command. After a byte
Write command, the internal address counter will point
to the address location following the one that was just
written.
6.2Page Write
The write control byte, w ord add res s, and th e firs t da ta
byte are transmitted to th e 2 4XX1 28 in mu ch th e s am e
way as in a byte write. The exception is that instead of
generating a S t op cond ition, the maste r transm its up to
63 additional bytes, which are temporarily stored in the
on-chip page buffer, and will be written into memory
once the master has transmitted a Stop condition.
Upon receipt of each word, the six lower address
pointer bits are internally incremented by ‘
1’. If the
master should transmit more than 64 bytes prior to
generating the Stop condition, the address counter will
roll over and the previously received data will be overwritten. As with the byte write operation, once the Stop
condition is received, an internal write cycle will begin
(Figure 6-2). If an attempt is made to write to the array
with the WP pin held high, the device w ill acknow ledg e
the command, but no write cy cle w ill occ ur, no data will
be written and the device will immed iately acc ept a new
command.
6.3Write-Protection
The WP pin a llows t he user to wri te-prot ect the entire
array (0000-3FFF) when the pi n is tied to V
V
SS or left floating, the wri te protect ion i s disabl ed. Th e
WP pin is sampled at the Stop bit for every Write
command (Figure 1-1). Toggling the WP pin after the
Stop bi t wil l hav e no e ffe ct on t he ex ecutio n of th e wri te
cycle.
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 mu lti ple s 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.
CC. If tied to
FIGURE 6-1:BYTE WRITE
BUS ACTIVITY
MASTER
SDA LINE
BUS ACTIVITY
X = don’t care bit
S
T
Control
A
Byte
R
T
S10100
A1A
A
0
2
A
C
K
High Byte
XX
Address
A
C
K
Address
Low Byte
S
Data
A
C
K
T
O
P
P
A
C
K
FIGURE 6-2:PAGE WRITE
S
T
BUS ACTIVITY
MASTER
SDA LINE
BUS ACTIVITY
X = don’t care bit
DS21191M-page 8 2004 Microchip Technology Inc.
Control
A
Byte
R
T
S10100
A2A1A
0
A
C
K
XX
Address
High Byte
A
C
K
Address
Low Byte
Data Byte 0
A
C
K
A
C
K
Data Byte 63
S
T
O
P
P
A
C
K
Loading...
+ 18 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.