Hitachi H8/3672 Series Hardware Manual page 211

Single-chip microcomputer
Table of Contents

Advertisement

Start reception
Read MPIE bit in SCR3
Read OER and FER flags in SSR
FER+OER = 1
No
Read RDRF flag in SSR
No
RDRF = 1
Yes
Read receive data in RDR
No
This station's ID?
Yes
Read OER and FER flags in SSR
FER+OER=1
No
Read RDRF flag in SSR
RDRF = 1
Yes
Read receive data in RDR
Yes
All data received?
No
Clear RE bit in SCR3 to 0
<End>
Figure 13-17 Sample Multiprocessor Serial Reception Flowchart (1)
[1]
[2]
[1]
[3]
[2]
Yes
[3]
[4]
[5]
Yes
[4]
No
[5]
Error processing
(Continued on
next page)
[A]
Set the MPIE bit in SCR to 1.
Read OER and FER in SSR to check for
errors. Receive error processing is performed
in cases where a receive error occurs.
Read SSR and check that the RDRF flag is
set to 1, then read the receive data in RDR
and compare it with this station's ID.
If the data is not this station's ID, set the MPIE
bit to 1 again, and clear the RDRF flag to 0.
When data is read from RDR, the RDRF flag
is automatically cleared to 0.
SCI status check and data reception:
Read SSR and check that the RDRF flag is
set to 1, then read the data in RDR.
If a receive error occurs, read the OER and
FER flags in SSR to identify the error. After
performing the appropriate error processing,
ensure that the OER and FER flags are all
cleared to 0.
Reception cannot be resumed if either of
these flags is set to 1.
In the case of a framing error, a break can be
detected by reading the RxD pin value.
Rev. 1.0, 03/01, page 187 of 280

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3672f-ztat hd64f3672H8/3670f-ztat hd64f3670

Table of Contents