Figure 10.18 Example Of Data Reception Flowchart (Synchronous Mode) - Renesas H8/3847R Series Hardware Manual

8-bit single-chip microcomputer super low power
Table of Contents

Advertisement

• Receiving
Figure 10.18 shows an example of a flowchart for data reception. This procedure should be
followed for data reception after initializing SCI3.
Read bit OER
1
OER = 1?
Read bit RDRF
2
RDRF = 1?
Read receive
data in RDR
Continue data
3
reception?
Clear bit RE to
0 in SCR3

Figure 10.18 Example of Data Reception Flowchart (Synchronous Mode)

Start
in SSR
Yes
No
in SSR
No
Yes
Overrun error
4
processing
Yes
No
Start overrun
4
error processing
End
Overrun error
processing
Clear bit OER to
End of overrun
error processing
Section 10 Serial Communication Interface
1.
Read bit OER in the serial status register
(SSR) to determine if there is an error.
If an overrun error has occurred, execute
overrun 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 MSB (bit 7) of the current
frame. When the data in RDR is read,
bit RDRF is cleared to 0 automatically.
4.
If an overrun error has occurred, read bit
OER in SSR, and after carrying out the
necessary error processing, clear bit OER
to 0. Reception cannot be resumed if bit
OER is set to 1.
0 in SSR
Rev. 6.00 Aug 04, 2006 page 393 of 680
REJ09B0145-0600

Advertisement

Table of Contents
loading

Table of Contents