CHAPTER 4 I
2
C COMMUNICATIONS
User’s Manual U18438EJ2V0UD
51
4.2 Explanation of Operation
4.2.1 I
2
C bus function
(a) Start
conditions
A start condition is met when the SCL pin is at high level (a serial clock has not been output) and the SDA pin
changes from high level to low level.
A start condition is a signal that the master device outputs to the slave device when starting a serial transfer.
This I
2
C bus only supports the slave function.
Figure 4-2. Start Conditions
SCL
SDA
H
(b) Slave
ID
The slave ID is defined by the 7 bits of data that follow the start condition.
This slave ID is used to select a specific slave out of several slaves connected to a bus line. Normally, one
slave ID is assigned to one slave. Since the
µ
PD71312 has two internal slave IDs, however, LCDCTL
(control register) and LCDSEG (display memory) can be selected as access targets.
A slave detects via hardware that data on the SDA line is a slave ID, and checks whether the 7-bit data
matches the slave ID (0111000 or 0111001 in the
µ
PD71312). If the 7-bit data matches the slave ID values,
the
µ
PD71312 is selected and communicates with the master device until the master device transmits a start
condition or stop condition.
Figure 4-3. Slave ID
SCL
SDA
1
2
3
4
5
6
7
8
9
ID6
ID5
ID4
ID3
ID2
ID1
ID0
R/W
Slave ID