Device operation M24C64-DF, M24C64-W, M24C64-R, M24C64-F
16/44 Doc ID 16891 Rev 26
4.6 Write operations
Following a Start condition the bus master sends a device select code with the Read/Write
bit (RW
) reset to 0. The device acknowledges this, as shown in Figure 10, and waits for two
address bytes. The device responds to each address byte with an acknowledge bit, and
then waits for the data Byte.
Each data byte in the memory has a 16-bit (two byte wide) address. The Most Significant
Byte (Ta bl e 3 ) is sent first, followed by the Least Significant Byte (Ta bl e 4). Bits b15 to b0
form the address of the byte in memory.
When the bus master generates a Stop condition immediately after a data byte Ack bit (in
the “10
th
bit” time slot), either at the end of a Byte Write or a Page Write, the internal Write
cycle is triggered. A Stop condition at any other time slot does not trigger the internal Write
cycle.
After the Stop condition, the delay t
W
, and the successful completion of a Write operation,
the device’s internal address counter is incremented automatically, to point to the next byte
address after the last one that was modified.
During the internal Write cycle, Serial Data (SDA) is disabled internally, and the device does
not respond to any requests.
If the Write Control input (WC) is driven High, the Write instruction is not executed and the
accompanying data bytes are not acknowledged, as shown in Figure 9.
4.7 Byte Write
After the device select code and the address bytes, the bus master sends one data byte. If
the addressed location is Write-protected, by Write Control (WC
) being driven high, the
device replies with NoAck, and the location is not modified. If, instead, the addressed
location is not Write-protected, the device replies with Ack. The bus master terminates the
transfer by generating a Stop condition, as shown in Figure 10.
4.8 Page Write
The Page Write mode allows up to 32 bytes 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 address bits (b12-b5) are the same. If more bytes are sent than will fit up to the end
of the row, a condition known as ‘roll-over’ occurs. This should be avoided, as data starts to
become overwritten in an implementation dependent way.
The bus master sends from 1 to 32 bytes of data, each of which is acknowledged by the
device if Write Control (WC
) is low. If Write Control (WC) is high, the contents of the
addressed memory location are not modified, and each data byte is followed by a NoAck.
After each byte is transferred, the internal byte address counter (inside the page) is
incremented. The transfer is terminated by the bus master generating a Stop condition.
M24C64-DF, M24C64-W, M24C64-R, M24C64-F Device operation
Doc ID 16891 Rev 26 17/44
Figure 10. Write mode sequences with WC = 0 (data write enabled)
4.9 Write Identification Page (M24C64-D only)
The Identification Page (32 bytes) is an additional page which can be written and (later)
permanently locked in Read-only mode. The Identification Page is written by issuing an
Write Identification Page instruction. This instruction uses the same protocol and format as
Page Write (into memory array), except for the following differences:
Device type identifier = 1011b
MSB address bits A15/A5 are don't care except for address bit A10 which must be ‘0’.
LSB address bits A4/A0 define the byte address inside the Identification Page.
If the Identification Page is locked, the data bytes transferred during the Write Identification
Page instruction are not acknowledged (NoAck).
Stop
Start
Byte Write Dev Select Byte address
Byte address Data in
WC
Start
Page Write Dev Select Byte address Byte address Data in 1
WC
Data in 2
AI01106d
Page Write
(cont'd)
WC (cont'd)
Stop
Data in N
ACK
R/W
ACK ACK ACK
ACK ACK ACK ACK
R/W
ACKACK
Device operation M24C64-DF, M24C64-W, M24C64-R, M24C64-F
18/44 Doc ID 16891 Rev 26
4.10 Lock Identification Page (M24C64-D only)
The Lock Identification Page instruction (Lock ID) permanently locks the Identification Page
in Read-only mode. The Lock ID instruction is similar to Byte Write (into memory array) with
the following specific conditions:
Device type identifier = 1011b
Address bit A10 must be ‘1’; all other address bits are don't care
The data byte must be equal to the binary value xxxx xx1x, where x is don't care
If the Identification Page is locked, the data bytes transferred during the Lock Identification
Page instruction are not acknowledged (NoAck).
4.11 ECC (Error Correction Code) and Write cycling
The M24C64 devices identified with the process letter A or K offer an ECC (Error Correction
Code) logic which compares each 4-byte word with its associated 6 EEPROM bits of ECC.
As a result, if a single bit out of 4 bytes of data happens to be erroneous during a Read
operation, the ECC detects it and replaces it by the correct value. The read reliability is
therefore much improved by the use of this feature.
Note however that even if a single byte has to be written, 4 bytes are internally modified
(plus the ECC bits), that is, the addressed byte is cycled together with the three other bytes
making up the word. It is therefore recommended to write by word (4 bytes) at address 4*N
(where N is an integer) in order to benefit from the larger amount of Write cycles.
The M24C64 devices are qualified as 1 million (1,000,000) Write cycles, using a cycling
routine that writes to the device by multiples of 4-byte words.

M24C64-FMB6TG

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
EEPROM 128 Kbit 64 Kbit 1.7 V to 5.5 V
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet