M34D64-W Device operation
13/27
3.5 Memory addressing
To start communication between the bus master and the slave device, the bus master must
initiate a Start condition. Following this, the bus master sends the Device Select Code,
shown in Table 2.: Device select code (on Serial Data (SDA), most significant bit first).
The Device Select Code consists of a 4-bit Device Type Identifier, and a 3-bit Chip Enable
“Address” (E2, E1, E0). To address the memory array, the 4-bit Device Type Identifier is
1010b.
Up to eight memory devices can be connected on a single I
2
C bus. Each one is given a
unique 3-bit code on the Chip Enable (E0, E1, E2) inputs. When the Device Select Code is
received on Serial Data (SDA), the device only responds if the Chip Enable Address is the
same as the value on the Chip Enable (E0, E1, E2) inputs.
The 8
th
bit is the Read/Write bit (RW). This bit is set to 1 for Read and 0 for Write operations.
If a match occurs on the Device Select code, the corresponding device gives an
acknowledgment on Serial Data (SDA) during the 9
th
bit time. If the device does not match
the Device Select code, it deselects itself from the bus, and goes into Standby mode.
Table 5. Operating modes
Mode RW bit WC
(1)
1. X = V
IH
or V
IL
.
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
Device operation M34D64-W
14/27
Figure 7. Write mode sequences with WC = 0 (data write enabled)
3.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 7.: Write mode
sequences with WC = 0 (data write enabled), and waits for two address bytes. The device
responds to each address byte with an acknowledge bit, and then waits for the data byte(s).
Writing to the memory may be inhibited if Write Control (WC
) is driven high. Any Write
instruction with Write Control (WC
) driven high (during a period of time from the Start
condition until the end of the two address bytes) will not modify the contents of the top
quarter of the memory.
Each data byte in the memory has a 16-bit (two byte wide) address. The Most Significant
Byte (Table 3.: Most significant byte) is sent first, followed by the Least Significant Byte ( : ).
Bits b15 to b0 form the address of the byte in memory.
When the bus master generates a Stop condition immediately after the Ack bit (in the “10
th
bit” time slot), either at the end of a Byte Write or a Page Write, the internal EEPROM Write
cycle is triggered. A Stop condition at any other time slot does not trigger the internal Write
cycle.
During the internal Write cycle, Serial Data (SDA) is disabled internally, and the device does
not respond to any requests.
Stop
Start
Byte Write Dev sel Byte addr
Byte addr Data in
WC
Start
Page Write Dev sel Byte addr Byte addr 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
M34D64-W Device operation
15/27
3.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 (top quarter of the memory), by Write Control
(WC
) being driven high, the location is not modified. The bus master terminates the transfer
by generating a Stop condition, as shown in Figure 7.: Write mode sequences with WC = 0
(data write enabled).
3.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. If Write Control (WC
) is high, the contents
of the addressed top quarter of the memory location are not modified. After each byte is
transferred, the internal byte address counter (the 5 least significant address bits only) is
incremented. The transfer is terminated by the bus master generating a Stop condition.

M34D64-WMN6P

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

Products related to this Datasheet