Hitachi H8/3672 Series Hardware Manual page 206

Single-chip microcomputer
Table of Contents

Advertisement

Start transmission/reception
Read TDRE flag in SSR
No
Write transmit data to TDR
Read ORER flag in SSR
Read RDRF flag in SSR
No
Read receive data in RDR
Yes
All data received?
Clear TE and RE bits in SCR to 0
Figure 13-14 Sample Flowchart of Simultaneous Serial Transmit and Receive Operations
Rev. 1.0, 03/01, page 182 of 280
TDRE = 1
Yes
Yes
OER = 1
Error processing
No
RDRF = 1
Yes
No
<End>
(Clocked Synchronous Mode)
[1] Read SSR and check that the TDRE
flag is set to 1, then write transmit
data to TDR.
When data is written to TDR, the
[1]
TDRE flag is automatically cleared to
0.
[2] Read SSR and check that the RDRF
flag is set to 1, then read the receive
data in RDR.
When data is read from RDR, the
RDRF flag is automatically cleared to
0.
[3] To continue serial transmission/
reception, before the MSB (bit 7) of
the current frame is received, finish
reading the RDRF flag, reading RDR.
Also, before the MSB (bit 7) of the
current frame is transmitted, read 1
from the TDRE flag to confirm that
writing is possible. Then write data to
[4]
TDR.
When data is written to TDR, the
TDRE flag is automatically cleared to
0. When data is read from RDR, the
[2]
RDRF flag is automatically cleared to
0.
[4] Receive error processing:
If an overrun error occurs, read the
OER flag in SSR, and after
performing the appropriate error
processing, clear the OER flag to 0.
Transmission/reception cannot be
resumed if the OER flag is set to 1.
For overrun error processing, see
figure 13-13.
[3]

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents