Datasheet
Section 20 Serial Communication Interface 3 (SCI3, IrDA)
Page 704 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
Yes
<End>
No
Start reception
[1]
No
Yes
Read RDRF flag in SSR
[2]
[3]
Clear RE bit in SCR3 to 0
Read OER, PER, and
FER flags in SSR
Receive error processing
(Continued on next page)
[4]
Read receive data in RDR
Yes
No
OER+PER+FER = 1
RDRF = 1
Is data reception continued?
[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 data reception, before the
stop bit for the current frame is
received, read the RDRF flag and read
RDR. The RDRF flag is cleared
automatically by te RDR read.
If RDR data is transferred by the DTC
which was activated by an RXI
interrupt, 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 RxD pin.
(A)
Figure 20.8 Sample Flowchart for Data Reception (Asynchronous Mode) (1)