Renesas H8 Series Hardware Manual page 422

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

Advertisement

Section 10 Serial Communication Interface
Start
Set bit MPIE to 1
in SCR3
Read bits OER
and FER in SSR
OER + FER = 1?
Read bit RDRF
in SSR
RDRF = 1?
Read receive
data in RDR
Own ID?
Read bits OER
and FER in SSR
OER + FER = 1?
Read bit RDRF
in SSR
RDRF = 1?
Read receive
data in RDR
Continue data
reception?
Clear bit RE to
0 in SCR3
End
Figure 10.19 Example of Multiprocessor Data Reception Flowchart
Rev. 7.00 Mar 10, 2005 page 380 of 652
REJ09B0042-0700
[1]
[2]
Yes
No
[3]
No
Yes
No
Yes
Yes
No
[4]
No
Yes
Receive error
4
processing
Yes
No
[1]
Set bit MPIE to 1 in SCR3.
[2]
Read bits OER 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.
[3]
Read SSR and check that bit RDRF is
set to 1. If it is, read the receive data in
RDR and compare it with this receiver's
own ID. If the ID is not this receiver's,
set bit MPIE to 1 again. When the RDR
data is read, bit RDRF is cleared to 0
automatically.
[4]
Read SSR and check that bit RDRF is
set to 1, then read the data in RDR.
[5]
If a receive error has occurred, read bits
OER and FER in SSR to identify the error,
and after carrying out the necessary error
processing, ensure that bits OER and FER
are both cleared to 0. Reception cannot be
resumed if either of these bits is set to 1.
In the case of a framing error, a break can
be detected by reading the value of the
RXD
pin.
32
[5]
(A)

Advertisement

Table of Contents
loading

Table of Contents