Datasheet

Section 20 Serial Communication Interface 3 (SCI3, IrDA)
Page 712 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
Yes
<End>
No
Start transmission/reception
[3]
Overrun error processing
[4]
Read receive data in RDR
Yes
No
OER = 1?
Is data transfer continued?
[1]
Read TDRE flag in SSR
No
Yes
TDRE = 1
Write transmit data to TDR
No
Yes
RDRF = 1?
Read OER flag in SSR
[2]
Read RDRF flag in SSR
Clear TE and RE bits in SCR to 0
[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
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 data 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
TDR.
When data is written to TDR, the
TDRE flag is automatically cleared to
0. When data is read from RDR, the
RDRF flag is automatically cleared to
0.
If data is transferred to TDR by the
DTC with a transmit data empty
interrupt (TXI) request, the TDRE
flag is automatically checked and
cleared. If RDR data is transferred
by the DTC with a receive data full
iterrupt (RXI) request, the RDRF
flag is automatically cleared.
[4] 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 20.13.
Figure 20.14 Sample Flowchart of Simultaneous Transmit and Receive Operations
(Clocked Synchronous Mode)