Hitachi H8/3637 Hardware Manual page 254

H8/3637 series
Table of Contents

Advertisement

Start
Read bits OER, PER, and
1
FER in SSR
OER + PER +
FER = 1
2
Read bit RDRF in SSR
RDRF = 1?
Read received data in RDR
3
Continue receiving?
Clear bit RE in SCR3 to 0
End
Start receive
4
error processing
OER = 1?
No
FER = 1?
No
PER = 1?
No
Clear bits OER, PER, and
FER in SSR to 0
End receive error
processing
Figure 10.10 Typical Serial Data Receiving Flow Chart in Asynchronous Mode
250
Yes
No
No
Yes
4
Receive error processing
Yes
No
A
Yes
Yes
Yes
Parity error
processing
1. Read bits OER, PER, and
FER in the serial status
register (SSR) to
determine if a receive
error has occurred.
If a receive error has
occurred, receive error
processing is executed.
2. Read the serial status register
(SSR), and after confirming
that bit RDRF = 1, read
received data from the receive
data register (RDR).
When RDR data is read, RDRF
is automatically cleared to 0.
3. To continue receiving data,
read bit RDRF and finish
reading RDR before the stop
bit of the present frame is
received.
When data is read from RDR,
RDRF is automatically cleared
to 0.
4. When a receive error occurs,
read bits OER, PER, and FER
in SSR to determine which
error (s) occurred.
After the necessary error
processing, be sure to clear
the above bits all to 0.
Data receiving cannot be resumed
while any of bits OER, PER, or
Overrun error
FER is set to 1.
processing
When a framing error occurs,
a break can be detected by
reading the RXD pin value.
Yes
Break?
No
Framing error
processing
A

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3635H8/3636

Table of Contents