5/19
M24C64, M24C32
the Device Select Code, it deselects itself from the
bus, and goes into stand-by mode.
There are two modes both for read and write.
These are summarized in Table 6 and described
later. A communication between the m aster and
the slave is ended with a STOP condition.
Each data byte in the m emory has a 16-bit (two
byte wide) address. The Most Significant Byte (Table 4) is sent first, f ollowed by the Least significant
Byte (Table 5). Bits b15 to b0 form t he addre ss of
the byte in memory. Bits b15 to b13 are treated as
a Don’t Care bit on the M24C64 memory. Bits b15
to b12 are treated as Don’t Care bits on the
M24C32 me m o r y .
Write Operations
Following a START con dition the ma ster sends a
Device Select Code with the RW
bit set to ’0’, as
shown in Table 6. The memory acknowledges this,
and waits for two address bytes. The memory responds to each address byte with an acknowledge
bit, and then waits for the data byte.
Writing to the memory may be inhibited if the WC
input pin is taken high. Any write command with
WC
=1 (during a period of time from the START
condition until the end of the two address bytes)
will not modify the me mory c ontents, and t he accompanying data bytes will
not
be acknowledged
(as shown in Figure 5).
Byte Write
In the Byte Write mode, after the Device Select
Code and the address bytes, the master sends
one data byte. If the addressed lo cation is write
protected by the WC
pin, the memory replies with
a NoAck, and the location is not modified. If, instead, the WC
pin has been held at 0, as shown in
Figure 6, the memory replies with an Ack. The
master terminates the transfer by generating a
STOP condition.
Page Write
The Page Write mode allows u p to 32 by tes to be
written in a single write cycle, provided that they
are all located in the same ’row’ in the memory:
that is the most significant memory add ress bits
(b12-b5 for the M24C64 and b11-b5 for the
M24C32) are the same. If more bytes are sent
than will fit up to the end of t he row, a condit ion
known as ‘roll-over’ occurs. Data starts to become
overwritten (in a way not formally specified in this
data sheet).
The master sends from one up to 32 bytes of data,
each of which is acknow ledged by the memory if
the W C
pin is low. If the WC pin is high, the contents of the addressed memory location are not
modified, and each data byte is followed by a
NoAck. After each byte i s tran sferred, the i nte rnal
Table 3. Device Select Code
1
Note: 1. The most significant bit, b7, is sent first.
Device Type Identifier Chip Enable RW
b7 b6 b5 b4 b3 b2 b1 b0
Device Select Code 1 0 1 0 E2 E1 E 0 RW
Table 4. Most Significant Byte
Note: 1. b15 to b13 are Don’t Care on the M24C6 4 series.
b15 to b12 are Don’t Care on the M 24C32 serie s.
Table 5. Least Significant Byte
b15 b14 b13 b12 b11 b10 b9 b8
b7 b6 b5 b4 b3 b2 b1 b0
Table 6. Operating Modes
Note: 1. X = V
IH
or V
IL
.
Mode RW bit
WC
1
Bytes Initial Sequence
Current Address Read 1 X 1 START, Device Select, RW
= ‘1’
Random Address Read
0X
1
START, Device Select, RW
= ‘0’, Address
1 X reSTART, Device Select, RW
= ‘1’
Sequential Read 1 X ≥ 1 Similar to Current or Random Address Read
Byte Write 0 V
IL
1 START, Device Select, RW = ‘0’
Page Write 0 V
IL
≤ 32 START, Device Select, RW = ‘0’