Hitachi H8/3637 Hardware Manual page 261

H8/3637 series
Table of Contents

Advertisement

Receiving: Figure 10.16 shows a typical flow chart for receiving data. After SCI3 initialization,
follow the procedure below.
Start
1
Read bit OER in SSR
OER = 1?
No
2
Read bit RDRF in SSR
RDRF = 1?
Yes
Read received data in RDR
Continue
3
receiving?
No
Clear bit RE in SCR3 to 0
End
Start overrun
4
processing
Overrun error
processing
Clear bit OER in
SSR to 0
End overrun
error processing
Figure 10.16 Typical Data Receiving Flow Chart in Synchronous Mode
Yes
No
4
Overrun error processing
Yes
1. Read bit OER in the serial status register (SSR)
to determine if an error has occurred. If an
overrun error has occurred, overrun 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 data is read from RDR, RDRF is
automatically cleared to 0.
3.
To continue receiving data, read bit RDRF and
read the received data in RDR before the MSB
(bit 7) of the present frame is received.
When data is read from RDR, RDRF is
automatically cleared to 0.
4.
When an overrun error occurs, read bit OER in
SSR. After the necessary error processing,
be sure to clear OER to 0.
Data receiving cannot be resumed while bit
OER is set to 1.
257

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3635H8/3636

Table of Contents