Figure 14.9 Sample Serial Reception Data Flowchart (Asynchronous Mode) - Renesas H8 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8 Series:
Table of Contents

Advertisement

Section 14 Serial Communication Interface 3 (SCI3)
Start reception
Read OER, PER, and
FER flags in SSR
OER+PER+FER = 1
Read RDRF flag in SSR
No
RDRF = 1
Read receive data in RDR
Yes
All data received?
(A)
Clear RE bit in SCR3 to 0

Figure 14.9 Sample Serial Reception Data Flowchart (Asynchronous Mode)

Rev. 3.00 Sep. 14, 2006 Page 218 of 408
REJ09B0105-0300
[1]
Yes
No
Error processing
(Continued on next page)
[2]
Yes
[3]
No
<End>
[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
[4]
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 RxD pin.

Advertisement

Table of Contents
loading

Table of Contents