16-18
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
16.5.
Interrupts
The I2C has a function to generate the interrupts shown in Table 16.5.1.
Table 16.5.1 I2C Interrupt Function
Interrupt
Interrupt flag
Set condition
Clear condition
End of data
transfer
I2C_
n
INTF.BYTEENDIF
When eight-bit data transfer and the following ACK/
NACK transfer are completed
Writing 1,
software reset
General call
address reception
I2C_
n
INTF.GCIF
Slave mode only: When the general call address is
received
Writing 1,
software reset
NACK reception
I2C_
n
INTF.NACKIF
When a NACK is received
Writing 1,
software reset
STOP condition
I2C_
n
INTF. STOPIF
Master mode: When a STOP condition is generated
and the bus free time (tBUF) between STOP and
START conditions has elapsed
Slave mode: When a STOP condition is detected
while the I2C Ch.
n
is selected as the slave currently
accessed
Writing 1,
software reset
START condition
I2C_
n
INTF. STARTIF
Master mode: When a START condition is issued
Slave mode: When an address match is detected
(including general call)
Writing 1,
software reset
Error detection
I2C_
n
INTF. ERRIF
Refer to
“Er
ror
Detection.”
Writing 1,
software reset
Receive bu
ff
er full
I2C_
n
INTF. RBFIF
When received data is loaded to the receive data
bu
ff
er
Reading received
data (to empty
the
receive data bu
ff
er),
software reset
Transmit bu
ff
er
empty
I2C_
n
INTF. TBEIF
Master mode: When a START condition is issued or
when an ACK is received from the slave
Slave mode: When transmit data written to the
transmit data bu
ff
er is transferred to the shift
register or when an address match is detected with
R/W bit set to 1
Writing transmit data
The I2C provides interrupt enable bits corresponding to each interrupt flag. An interrupt request is sent
to the CPU core only when the interrupt flag, of which interrupt has been enabled by the interrupt
enable bit, is set. For
more information on interrupt control, refer to the “Interrupt” chapte
r.
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...