Datasheet

Table Of Contents
Section 17 Serial Communications Interface 3 (SCI3, IrDA)
Rev. 2.00 Jul. 04, 2007 Page 388 of 692
REJ09B0309-0200
Yes
No
Start reception
[1]
No
Yes
Read RDRF flag in SSR
[2]
[3]
Clear RE bit in SCR to 0
Read OER, PER, and
FER flags in SSR
Error processing
(Continued on next page)
[4]
Read receive data in RDR
Yes
No
OER+PER+FER = 1
RDRF = 1
Continue data reception?
[1] Read the OER, PER, and FER flags in
SSR to identify the error. If a receive
error occurs, performs the appropriate
error processing.
[2] Read SSR and check that RDRF = 1,
then read the receive data in RDR.
The RDRF flag is cleared automatically.
[3] To continue serial reception, before the
stop bit for the current frame is
received, read the RDRF flag and read
RDR.
The RDRF flag is cleared automatically.
[4] If a receive error occurs, read the OER,
PER, and FER flags in SSR to identify
the error. After performing the
appropriate error processing, ensure
that the OER, PER, and FER flags are
all cleared to 0. Reception cannot be
resumed if any of these flags are set to
1. In the case of a framing error, a
break can be detected by reading the
value of the input port corresponding to
the RXD3 pin.
(A)
End
Figure 17.8 Sample Serial Data Reception Flowchart (Asynchronous Mode) (1)