English
Language : 

SH7020 Datasheet, PDF (408/509 Pages) Renesas Technology Corp – SuperH™ RISC engine
Initialization
(1)
Start transmitting and receiving
Read TDRE bit of the SSR (2)
No
TDRE = 1?
Yes
Write transmit data to the TDR
and clear the TDRE bit of the
SSR to 0
Read the ORER bit of the SSR
ORER = 1?
No
Yes
(3)
Error handling
Read the SSR's RDRF bit (4)
No
RDRF = 1?
Yes
Read the receive data of the
RDR and clear the RDRF bit of (5)
the SSR to 0
No
Total
count transmitted and
received?
Yes
Clear the TE and RE bits of
the SCR to 0
Transmitting/receiving ends
Note: In switching from transmitting or receiving to simultaneous transmitting and receiving,
clear both TE and RE to 0, then set both TE and RE to 1.
Figure 13.20 Sample Flowchart for Serial Transmitting
RENESAS 393