English
Language : 

HD6417751 Datasheet, PDF (739/1105 Pages) Renesas Technology Corp – SuperH RISC engine
Start
Initialization
1
Start of reception
2
No
ORER = 0 and PER = 0?
Yes
No
RDRF = 1?
Error handling
3
Yes
Read receive data from
SCRDR1 and clear RDRF flag 4
in SCSSR1 to 0
No
All data received?
5
Yes
Clear RE bit in SCSCR1 to 0 6
End of reception
Figure 17.9 Sample Reception Processing Flowchart
Mode Switching Operation: When switching from receive mode to transmit mode, first confirm
that the receive operation has been completed, then start from initialization, clearing RE to 0 and
setting TE to 1. The RDRF flag or the PER and ORER flags can be used to check that the receive
operation has been completed.
When switching from transmit mode to receive mode, first confirm that the transmit operation has
been completed, then start from initialization, clearing TE to 0 and setting RE to 1. The TEND
flag can be used to check that the transmit operation has been completed.
Rev. 3.0, 04/02, page 699 of 1064