2008-2016 Microchip Technology Inc. DS20002124G-page 7
24AA02E48/24AA025E48/24AA02E64/24AA025E64
3.0 FUNCTIONAL DESCRIPTION
The 24AA02XEXX supports a bidirectional, 2-wire bus
and data transmission protocol. A device that sends
data onto the bus is defined as transmitter, while a
device receiving data is defined as a receiver. The bus
has to be controlled by a master device which gener-
ates the Serial Clock (SCL), controls the bus access
and generates the Start and Stop conditions, while the
24AA02XEXX works as slave. Both master and slave
can operate as transmitter or receiver, but the master
device determines which mode is activated.
4.0 BUS 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 whenever the clock line is high. Changes in
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.1 Bus Not Busy (A)
Both data and clock lines remain high.
4.2 Start 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.3 Stop Data Transfer (C)
A low-to-high transition of the SDA line while the clock
(SCL) is high determines a Stop condition. All
operations must be ended with a Stop condition.
4.4 Data 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 clock pulse per
bit of data.
Each data transfer is initiated with a Start condition and
terminated with a Stop condition. The number of data
bytes transferred between Start and Stop conditions is
determined by the master device and is, theoretically,
unlimited (although only the last sixteen will be stored
when doing a write operation). When an overwrite does
occur, it will replace data in a first-in first-out (FIFO)
fashion.
4.5 Acknowledge
Each receiving device, when addressed, is obliged to
generate an acknowledge after the reception of each
byte. The master device must generate an extra clock
pulse which is associated with this Acknowledge bit.
The device that acknowledges has to pull down the
SDA line during the acknowledge clock pulse in such a
way that the SDA line is stable-low during the high
period of the acknowledge related clock pulse. Of
course, setup and hold times must be taken into
account. During reads, a master must signal an end of
data to the slave by not generating an Acknowledge bit
on the last byte that has been clocked out of the slave.
In this case, the slave (24AA02XEXX) 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
Note: The 24AA02XEXX does not generate any
Acknowledge bits if an internal
programming cycle is in progress.
SCL
SDA
(A) (B) (D) (D) (A)(C)
Start
Condition
Address or
Acknowledge
Valid
Data
Allowed
to Change
Stop
Condition
24AA02E48/24AA025E48/24AA02E64/24AA025E64
DS20002124G-page 8 2008-2016 Microchip Technology Inc.
5.0 DEVICE ADDRESSING
A control byte is the first byte received following the
Start condition from the master device. The control byte
consists of a four-bit control code. For the
24AA02XEXX, this is set as ‘1010
binary for read and
write operations. For the 24AA02E48/24AA02E64 the
next three bits of the control byte are “don’t cares”.
For the 24AA025E48/24AA025E64, 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
24AA025E48/24AA025E64 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 levels on the corresponding A2, A1 and A0
pins for the device to respond. These bits are in effect
the three Most Significant bits of the word address.
For the 6-pin SOT-23 package, the A2 address pin is
not available. During device addressing, the A2 Chip
Select bit should be set to0’.
The last bit of the control byte defines the operation to
be performed. When set to ‘1’, a read operation is
selected. When set to ‘0’, a write operation is selected.
Following the Start condition, the 24AA02XEXX moni-
tors the SDA bus, checking the device type identifier
being transmitted and, upon a
1010 code, the slave
device outputs an Acknowledge signal on the SDA line.
Depending on the state of the R/W bit, the
24AA02XEXX will select a read or write operation.
FIGURE 5-1: CONTROL BYTE
ALLOCATION
5.1 Contiguous Addressing Across
Multiple Devices
The Chip Select bits A2, A1 and A0 can be used to
expand the contiguous address space for up to 16K bits
by adding up to eight 24AA025E48/24AA025E64
devices on the same bus. In this case, software can
use A0 of the control byte as address bit A8, A1 as
address bit A9 and A2 as address bit A10. It is not
possible to sequentially read across device
boundaries.
For the SOT-23 package, up to four
24AA025E48/24AA025E64 devices can be added for
up to 8K bits of address space. In this case, software
can us A0 of the control byte as address bit A8, and
A1 as address bit A9. It is not possible to sequentially
read across device boundaries.
FIGURE 5-2: ADDRESS SEQUENCE BIT ASSIGNMENTS
Operation
Control
Code
Chip Select R/W
Read 1010 Chip Address 1
Write 1010 Chip Address 0
10 10
A2* A1* A0*
R/W
ACK
Start Bit
Read/Write
Bit
S
Slave Address
Acknowledge Bit
Control Code
Chip
Select
Bits
Note: * Bits A0, A1 and A2 are “don’t cares” for
the 24AA02E48/24AA02E64.
1010 R/W
A
7
A
0
••••
Control Byte
Address Low Byte
Control
Code
Chip
Select
bits
Note: * Bits A0, A1 and A2 are “don’t cares” for the 24AA02E48/24AA02E64.
A2*
A1*
A0*
2008-2016 Microchip Technology Inc. DS20002124G-page 9
24AA02E48/24AA025E48/24AA02E64/24AA025E64
6.0 WRITE OPERATION
6.1 Byte Write
Following the Start condition from the master, the
device code (four bits), the chip address (three bits)
and the R/W bit which is a logic-low, is placed onto the
bus by the master transmitter. This indicates to the
addressed slave receiver that a byte with a word
address will follow once it has generated an
Acknowledge bit during the ninth clock cycle.
Therefore, the next byte transmitted by the master is
the word address and will be written into the Address
Pointer of the 24AA02XEXX. After receiving another
Acknowledge signal from the 24AA02XEXX, the
master device will transmit the data word to be written
into the addressed memory location. The
24AA02XEXX acknowledges again and the master
generates a Stop condition. This initiates the internal
write cycle and, during this time, the 24AA02XEXX will
not generate Acknowledge signals (Figure 6-1).
6.2 Page Write
The write control byte, word address and the first data
byte are transmitted to the 24AA02XEXX in the same
way as in a byte write. However, instead of generating
a Stop condition, the master transmits up to eight data
bytes to the 24AA02XEXX, 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 three
lower-order Address Pointer bits (four for the
24AA025E48/24AA025E64) are internally incremented
by one.
The higher-order five bits (four for the
24AA025E48/24AA025E64) of the word address
remain constant. If the master should transmit more
than eight words (16 for the
24AA025E48/24AA025E64) 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).
6.3 Write Protection
The upper half of the array (80h-FFh) is permanently
write-protected. Write operations to this address range
are inhibited. Read operations are not affected.
The remaining half of the array (00h-7Fh) can be
written to and read from normally.
FIGURE 6-1: BYTE WRITE
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.
S P
Bus Activity
Master
SDA Line
Bus Activity
S
T
A
R
T
S
T
O
P
Control
Byte
Word
Address
Data
A
C
K
A
C
K
A
C
K
101
0
A2*A1*A0*
0
Chip
Select
Bits
Note: * Bits A0, A1 and A2 are “don’t cares” for the 24AA02E48/24AA02E64.

24AA02E48T-I/OT

Mfr. #:
Manufacturer:
Microchip Technology
Description:
EEPROM 2K, 256x8 1.8V Serial EE
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union