13 I
2
C (I2C)
S1C17M12/M13 TECHNICAL MANUAL
Seiko Epson Corporation
13-9
(Rev. 1.2)
13.4.4 10-bit Addressing in Master Mode
A 10-bit address consists of the first address that contains two high-order bits and the second address that contains
eight low-order bits.
Slave address
7-bit address
0: WRITE (Master
→
Slave)
1: READ (Slave
→
Master)
A6
A5
D7
D6
A4
D5
A3
D4
A2
D3
A1
D2
A0
D1
R/W
D0
Eight low-order slave address bits
A7
A6
D7
D6
A5
D5
A4
D4
A3
D3
A2
D2
A1
D1
A0
D0
Two high-order slave address bits
10-bit address
1
First address
Second address
1
D7
D6
1
D5
1
D4
0
D3
A9
D2
A8
D1
R/W
D0
Figure 13.4.4.1 10-bit Address Configuration
The following shows a procedure to start data transfer in 10-bit address mode when the I2C Ch.
n
is placed into
master mode (see the 7-bit mode descriptions above for control procedures when a NACK is received or sending/
receiving data). Figure 13.4.4.2 shows an operation example.
Starting data transmission in 10-bit address mode
1. Issue a START condition by setting the I2C
n
CTL.TXSTART bit to 1.
2. Wait for a transmit buffer empty interrupt (I2C
n
INTF.TBEIF bit = 1) or a START condition interrupt (I2C-
n
INTF.STARTIF bit = 1).
Clear the I2C
n
INTF.STARTIF bit by writing 1 after the interrupt has occurred.
3. Write the first address to the I2C
n
TXD.TXD[7:1] bits and 0 that represents WRITE as the data transfer di-
rection to the I2C
n
TXD.TXD0 bit.
4. Wait for a transmit buffer empty interrupt (I2C
n
INTF.TBEIF bit = 1).
5. Write the second address to the I2C
n
TXD.TXD[7:0] bits.
6. Wait for a transmit buffer empty interrupt (I2C
n
INTF.TBEIF bit = 1).
7. Perform data transmission.
Starting data reception in 10-bit address mode
1 to 6. These steps are the same as the data transmission starting procedure described above.
7. Issue a repeated START condition by setting the I2C
n
CTL.TXSTART bit to 1.
8. Wait for a transmit buffer empty interrupt (I2C
n
INTF.TBEIF bit = 1) or a START condition interrupt (I2C-
n
INTF.STARTIF bit = 1).
Clear the I2C
n
INTF.STARTIF bit by writing 1 after the interrupt has occurred.
9. Write the first address to the I2C
n
TXD.TXD[7:1] bits and 1 that represents READ as the data transfer direc-
tion to the I2C
n
TXD.TXD0 bit.
10. Perform data reception.