DocID11090 Rev 4 11/26
M34F04 Device operation
25
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 (on Serial Data (SDA), most significant bit first).
The Device Select Code consists of a 4-bit Device Type Identifier, and a 2-bit Chip Enable
“Address” (E2, E1). To address the memory array, the 4-bit Device Type Identifier is 1010b.
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 (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 Stand-by mode.
Using the E1 and E2 inputs pins, up to four M34F04 devices can be connected to one I
2
C
bus.
Table 2. Device select code
Device Type Identifier
(1)
1. The most significant bit, b7, is sent first.
Chip Enable
(2)(3)
2. E1 and E2 are compared against the respective external pins on the memory device.
3. A8 represents most significant bits of the address.
RW
b7 b6 b5 b4 b3 b2 b1 b0
Device Select
Code
1010E2E1A8RW
Table 3. Operating modes
Mode RW bit WC
(1)
1. Z = unconnected and floating
X = VIH or VIL or unconnected and floating.
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 (upper addresses) 0 V
IL
or Z 1 START, Device Select, RW = 0
Byte Write (lower addresses) 0 X 1 START, Device Select, RW
= 0
Page Write (upper addresses) 0 V
IL
or Z ≤ 16 START, Device Select, RW = 0
Page Write (lower addresses) 0 X ≤ 16 START, Device Select, RW
= 0