Datasheet

Table Of Contents
Section 17 Serial Communications Interface 3 (SCI3, IrDA)
Rev. 2.00 Jul. 04, 2007 Page 405 of 692
REJ09B0309-0200
These interrupts are shown in table 17.15.
Table 17.15 Transmit/Receive Interrupts
Interrupt Flags Interrupt Request Conditions Notes
RXI3 RDRF
RIE
When serial reception is
performed normally and receive
data is transferred from RSR to
RDR, bit RDRF is set to 1, and if
bit RIE is set to 1 at this time, an
RXI3 is enabled and an interrupt
is requested. (See figure 17.21
(a).)
The RXI3 interrupt routine reads
the receive data transferred to
RDR and clears bit RDRF to 0.
Continuous reception can be
performed by repeating the above
operations until reception of the
next RSR data is completed.
TXI3 TDRE
TIE
When TSR is found to be empty
(on completion of the previous
transmission) and the transmit
data placed in TDR is transferred
to TSR, bit TDRE is set to 1. If bit
TIE is set to 1 at this time, a TXI3
is enabled and an interrupt is
requested. (See figure 17.21 (b).)
The TXI3 interrupt routine writes
the next transmit data to TDR and
clears bit TDRE to 0. Continuous
transmission can be performed by
repeating the above operations
until the data transferred to TSR
has been transmitted.
TEI3 TEND
TEIE
When the last bit of the character
in TSR is transmitted, if bit TDRE
is set to 1, bit TEND is set to 1. If
bit TEIE is set to 1 at this time, a
TEI3 is enabled and an interrupt
is requested. (See figure 17.21
(c).)
A TEI3 indicates that the next
transmit data has not been written
to TDR when the last bit of the
transmit character in TSR is
transmitted.