Datasheet
Section 16 I
2
C Bus Interface 2 (IIC2) (Option)
Rev.7.00 Mar. 18, 2009 page 801 of 1136
REJ09B0109-0700
16.5 Interrupt Request
There are six interrupt requests in this module; transmit data empty, transmit end, receive data full,
NACK detection, STOP recognition, and arbitration lost. Table 16.3 shows the contents of each
interrupt request.
Table 16.3 Interrupt Requests
Interrupt Request Abbreviation Interrupt Condition
Transmit Data Empty TXI (TDRE=1)
•
(TIE=1)
Transmit End TEI (TEND=1)
•
(TEIE=1)
Receive Data Full RXI (RDRF=1)
•
(RIE=1)
STOP Recognition STPI (STOP=1)
•
(STIE=1)
NACK Detection NAKI {(NACKF=1)+(AL=1)}
•
(NAKIE=1)
Arbitration Lost
Interrupt exception handling is performed when the interrupt conditions listed in table 16.3 are set
to 1 and the CPU is ready to accept interrupts. During exception handling, the interrupt sources
should be cleared. Note, however, that TDRE and TEND are automatically cleared by writing
transmit data to ICDRT, and RDRF is automatically cleared by reading data from ICDRR. In
particular, if TDRE is set at the same time transmit data is written to ICDRT, and then TDRE is
cleared again, an extra byte of data may be transmitted.










