12 I
2
C (I2C)
12-20
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
Note
: If the
I2C
n
CTL.MODEN bit is altered from 1 to 0 during sending/receiving data, the data
being sent/received cannot be guaranteed. When setting the I2C
n
CTL.MODEN bit to 1 again
after that, be sure to write 1 to the I2C
n
CTL.SFTRST bit as well.
i2C Ch.
n
Transmit Data Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
I2C
n
TXD
15–8 –
0x00
–
R
–
7–0 TXD[7:0]
0x00
H0
R/W
Bits 15–8 Reserved
Bits 7–0
TXD[7:0]
Data can be written to the transmit data buffer through these bits. Make sure the I2C
n
INTF.TBEIF bit
is set to 1 before writing data.
Note: Be sure to avoid writing to the I2C
n
TXD register when the I2C
n
INTF.TBEIF bit = 0, otherwise
transmit data cannot be guaranteed.
i2C Ch.
n
Receive Data Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
I2C
n
RXD
15–8 –
0x00
–
R
–
7–0 RXD[7:0]
0x00
H0
R
Bits 15–8 Reserved
Bits 7–0
RXD[7:0]
The receive data buffer can be read through these bits.
i2C Ch.
n
Status and interrupt Flag Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
I2C
n
INTF
15–13 –
0x0
–
R
–
12 SDALOW
0
H0
R
11 SCLLOW
0
H0
R
10 BSY
0
H0/S0
R
9
TR
0
H0
R
8
–
0
–
R
7
BYTEENDIF
0
H0/S0
R/W Cleared by writing 1.
6
GCIF
0
H0/S0
R/W
5
NACKIF
0
H0/S0
R/W
4
STOPIF
0
H0/S0
R/W
3
STARTIF
0
H0/S0
R/W
2
ERRIF
0
H0/S0
R/W
1
RBFIF
0
H0/S0
R
Cleared by reading the I2C
n
RXD reg-
ister.
0
TBEIF
0
H0/S0
R
Cleared by writing to the I2C
n
TXD
register.
Bits 15–13 Reserved
Bit 12
SDalOW
This bit indicates that SDA is set to low level.
1 (R):
SDA = Low level
0 (R):
SDA = High level