Hitachi H8/3692 ユーザーズマニュアル

ページ / 397
Rev. 1.0, 07/01, page 201 of 372
Yes
No
Start reception
[1]
No
Yes
Read receive data in SSR
[3]
Clear RE bit in SCR3 to 0
Read OER, PER, and
FER flags in SSR
Error processing
[4]
Read receive data in RDR
Yes
No
OER+PER+FER = 1
RDRF = 1
All data received?
[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 and 
clear the RDRF flag to 0.  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, read 
RDR, and clear the RDRF flag to 0.  
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.
(A)
(Continued on next page)
[2]
End
Figure 14-8   Sample Serial Reception Data Flowchart (Asynchronous mode)(1)