English
Language : 

HD64336900G Datasheet, PDF (235/408 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Tiny Series
Table 14.5 SSR Status Flags and Receive Data Handling
SSR Status Flag
RDRF* OER
FER
PER
Receive Data
Receive Error Type
1
1
0
0
Lost
Overrun error
0
0
1
0
Transferred to RDR Framing error
0
0
0
1
Transferred to RDR Parity error
1
1
1
0
Lost
Overrun error + framing error
1
1
0
1
Lost
Overrun error + parity error
0
0
1
1
Transferred to RDR Framing error + parity error
1
1
1
1
Lost
Overrun error + framing error +
parity error
Note: * The RDRF flag retains the state it had before data reception.
Start reception
[1] Read the OER, PER, and FER flags in
SSR to identify the error. If a receive
error occurs, performs the appropriate
Read OER, PER, and
[1]
FER flags in SSR
error processing.
[2] Read SSR and check that RDRF = 1,
then read the receive data in RDR.
The RDRF flag is cleared automatically.
OER+PER+FER = 1
No
Yes
[4]
Error processing
[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.
(Continued on next page) [4] If a receive error occurs, read the OER,
Read RDRF flag in SSR
[2]
PER, and FER flags in SSR to identify
the error. After performing the
appropriate error processing, ensure
No
RDRF = 1
that the OER, PER, and FER flags are
all cleared to 0. Reception cannot be
resumed if any of these flags are set to
Yes
1. In the case of a framing error, a
break can be detected by reading the
Read receive data in RDR
value of the input port corresponding to
the RxD pin.
Yes
All data received?
[3]
(A)
No
Clear RE bit in SCR3 to 0
<End>
Figure 14.9 Sample Serial Reception Data Flowchart (Asynchronous Mode)
Rev. 1.00, 11/03, page 207 of 376