Device addressing. STMicroelectronics M24C08-A125
Tangazo
Tangazo
Device operation M24C08-A125
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, as
The device select code consists of a 4-bit device type identifier and a Chip Enable address
(E2). A device select code handling any value other than 1010b (to select the memory) or
1011b (to select the Identification page) is not acknowledged by the memory device.
Up to two memory devices can be connected on a single I2C bus. When the device select code is received, the memory device only responds if the Chip Enable Address is the same as the value decoded on the E2 input.
The 8th bit is the Read/Write bit (RW). This bit is set to 1 for Read and 0 for Write operations.
Table 2. Device select code
Device type identifier
(1)
Chip Enable address
(2)
RW b5 b4 b3 b2 b1 b0 b7 b6
When accessing the memory
When accessing the identification page
1
1
1. The most significant bit, b7, is sent first.
2. X bit is a Don’t Care bit
0
0
1
1
0
1
E2
E2
A9
X
A8
X
RW
RW
If the memory device does not match the device select code, it deselects itself from the bus, and enters the Standby mode.
If the memory device matches the device select code, the corresponding memory device gives an acknowledgment on Serial Data (SDA) during the 9th SCL clock period. Once the memory device has acknowledged the device select code, the memory device waits for the master to send the address byte. The memory device responds to the address byte with an acknowledge bit.
12/40 DocID025850 Rev 6
M24C08-A125 Device operation
Table 3. Significant address bits
Memory
(Device type identifier = 1010b)
Identification page
(Device type identifier = 1011b)
Random
Address Read b2
(1)
A9
Write
A9
Read
Identification page
Write
Identification page
Lock
Identification page
Read lock status
X X X b1
A8 X X X b4 b3 b2 b1 b0 b7 b6 b5
A7
A6
A5
A4
A3
A2
A1
A 0
A7
A6
A5
A4
A3
A2
A1
A 0
1. Address bits defined inside the DeviceSelect code (see
X
A3
A2
A1
A 0
0
X
X
X
A3
A2
A1
A 0
0
X
X
X
X
X
X
X
1
X
X
Note: A: significant address bit.
X: bit is Don’t Care.
DocID025850 Rev 6 13/40
39
Pakua
Tangazo