Figure 14.13 Sample Serial Reception Flowchart (Clocked Synchronous 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)
Read OER flag in SSR
Read RDRF flag in SSR
No
Read receive data in RDR
Yes
All data received?
Clear RE bit in SCR3 to 0
[4]
Overrun error processing
Clear OER flag in SSR to 0

Figure 14.13 Sample Serial Reception Flowchart (Clocked Synchronous Mode)

Rev. 1.00 Aug. 28, 2006 Page 228 of 400
REJ09B0268-0100
Start reception
OER = 1
No
Error processing
(Continued below)
RDRF = 1
Yes
No
<End>
Error processing
<End>
[1]
Read the OER flag in SSR to determine if
there is an error. If an overrun error has
[1]
occurred, execute overrun error processing.
[2]
Read SSR and check that the RDRF flag is
set to 1, then read the receive data in RDR.
Yes
When data is read from RDR, the RDRF
flag is automatically cleared to 0.
[4]
[3]
To continue serial reception, before the
MSB (bit 7) of the current frame is received,
reading the RDRF flag and reading RDR
should be finished. When data is read from
RDR, the RDRF flag is automatically
[2]
cleared to 0.
[4]
If an overrun error occurs, read the OER
flag in SSR, and after performing the
appropriate error processing, clear the OER
flag to 0. Reception cannot be resumed if
the OER flag is set to 1.
[3]

Advertisement

Table of Contents
loading

Table of Contents