5/26
M24C16, M 24C 08, M24C04, M24C02, M24C01
DEVICE OPERATION
The device supports the I2C prot oc ol. Thi s i s sum-
marized in Figure 5. Any device that sends data on
to the bus is defined to be a transmitter, and any
device that reads the data to be a receiver. The
device that c ontro ls the data transfer is kn own as
the bus master, and t he other as the slave device.
A data transfer can only be initiated by the bus
master, w hic h will a ls o pro vi de t he s er ial c loc k f o r
synchronization. The M24Cxx device is always a
slave in all communication.
Start Condition
Start is identified by a falling edge of Serial Data
(SDA) while Serial Clock (SCL) is stable in the
High state. A Start condition must precede any
data transfer command. The device continuously
monitors (except during a Write cycle ) Se ri a l Data
(SDA) and Serial Clock (SCL) for a Start condition,
and will not re spond unles s one is given.
Stop Condition
Stop is identified by a rising edge of Serial Data
(SDA) while Serial Clock (SCL) is stable and driv-
en High. A Stop condition terminat es comm unica-
tion between the device and the bus master. A
Read command that is followed by NoAck can be
followed by a Stop condition to force the device
into the Stand-by mode. A Stop condition at the
end of a W rite command triggers the int ernal EE-
P R OM Write c y cle.
Acknowledge Bit (ACK)
The acknowledge bit is used to indicate a success-
ful byte t ransfer. The bus transmitt er, whether it be
bus master or slave device, releases Serial Data
(SDA) after sending eight bits of data. During the
9th clock pulse period, the receiver pulls Serial
Data (SDA) Low to acknowledge the receipt of the
eight dat a bits.
Data Input
During data input, the device samples Serial Data
(SDA) on the rising edge of Serial Clock (SCL).
For correct device operation, Serial Data (SDA)
must be stable during the rising edge of Serial
Clock (SCL), and the Serial Data (SDA) signal
must change
only
when Serial Clock (SCL) is dri v-
en Low.
Memory Addressing
To start communication between the bus master
and the slave device, the bus mas ter must initiate
a Start condition. Following this, the bus master
sends the Device Select Code, shown in Table 2
(on Serial Data (SDA ), most significant bit f i rst).
The Device Select Code consists of a 4-bit Device
Type Identifier, and a 3-bit Chip Enable “Add re ss”
(E2, E1, E0). To address the memory array, t he 4-
bit Device Type Identifi er is 1010b.
When the Device Select Code is received on Seri-
al Data (SDA), the device only responds if t he Chip
Enable Address is the same as the value on the
Chip Enable (E0, E1, E2) inputs .
The 8th bit i s the Read/Write bit (RW). This bit is
set to 1 fo r Read and 0 for Write operations.
If a match occurs on the Device Select code, the
corresponding device gives an acknowledgment
on Serial Dat a (SDA) du ring the 9th bit time. If the
device does not match the Device Select code, it
deselects itself from the bus, and goes into Stand-
by mode.
Devices with larger memory capacities (the
M24C16, M24C08 and M24C04) need more ad-
dress bits. E0 is not available for use on devices
that need to use address line A8; E1 is not avail-
able for devices t hat need t o use addres s line A9,
and E2 is not available f or devices that need to use
address line A10 (see Figure 3 and Table 2 for de-
tails). Using the E0, E1 and E2 inputs pins, up to
eight M24C02 (or M24C01), four M24C04, two
M24C08 or one M24C16 device can be connected
to one I2C bus. In each case, and in the hybrid cas-
es, this gives a total mem ory capacity of 16 Kbits,
2 KBytes (except where M24C01 devices are
used).
Table 3. O per ating Modes
No te: 1. X = VIH or VIL.
Mode RW bit WC 1 Bytes Initial Sequence
Current Address Read 1 X 1 START, Device Select, RW = 1
Random Address Read 0X1
START, Device Select, RW = 0, Addre ss
1 X reSTART, Device Select, RW = 1
Sequential Read 1 X ≥ 1 Similar to Current or Random Address Read
Byte Write 0 VIL 1 START, Device Select, RW = 0
Page Write 0 VIL ≤ 16 START, Device Select, RW = 0