English
Language : 

HD6417034 Datasheet, PDF (438/691 Pages) Renesas Technology Corp – SuperH RISC ENGINE SH7032 AND SH7034
Initialization
(1)
Start transmitting and receiving
Read TDRE bit in SSR
(2)
No
TDRE = 1?
Yes
Write transmit data to TDR
and clear TDRE bit in
SSR to 0
Read ORER bit in SSR
ORER = 1?
No
Yes
(3)
Error handling
Read RDRF bit in SSR
(4)
No
RDRF = 1?
Yes
Read receive data in
RDR and clear RDRF bit
(5)
in SSR to 0
No
Total
count transmitted and
received?
Yes
Clear TE and RE bits in
SCR to 0
Transmitting/receiving ends
Note: When switching from transmitting or receiving to simultaneous transmitting and
receiving, clear both the TE bit and the RE bit to 0, then set both this to 1
simultaneously.
Figure 13.20 Sample Flowchart for Serial Transmitting and Receiving
402