Renesas H8 Series Hardware Manual page 408

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

Advertisement

Section 10 Serial Communication Interface
• Receiving
Figure 10.8 shows an example of a flowchart for data reception. This procedure should be
followed for data reception after initializing SCI3.
Start
Read bits OER,
PER, FER in SSR
OER + PER
+ FER = 1?
No
Read bit RDRF
in SSR
RDRF = 1?
Yes
Read receive
data in RDR
Continue data
reception?
No
Clear bit RE to
0 in SCR3
End
Figure 10.8 Example of Data Reception Flowchart (Asynchronous Mode)
Rev. 7.00 Mar 10, 2005 page 366 of 652
REJ09B0042-0700
[1]
Yes
[2]
No
Receive error
processing
[3]
Yes
(A)
[1]
Read bits OER, PER, and FER in the
serial status register (SSR) to determine
if there is an error. If a receive error has
occurred, execute receive error
processing.
[2]
Read SSR and check that bit RDRF is
set to 1. If it is, read the receive data
in RDR. When the RDR data is read,
bit RDRF is cleared to 0 automatically.
[3]
When continuing data reception, finish
reading of bit RDRF and RDR before
receiving the stop bit of the current
frame. When the data in RDR is read,
bit RDRF is cleared to 0 automatically.
[4]

Advertisement

Table of Contents
loading

Table of Contents