English
Language : 

3069RF-ZTAT Datasheet, PDF (526/1003 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER
Initialize
(1)
(1) SCI initialization: the receive data
input function of the RxD pin is
Start receiving
selected automatically.
(2)(3) Receive error handling: if a receive
Read ORER flag in SSR
(2)
error occurs, read the ORER flag in
SSR, then after executing the
necessary error handling, clear the
ORER = 1
Yes
ORER flag to 0. Neither transmitting
nor receiving can resume while the
ORER flag remains set to 1.
No
(3)
Error handling
(4) SCI status check and receive data
(continued on next page)
read: read SSR, check that the RDRF
flag is set to 1, then read receive data
Read RDRF flag in SSR
(4)
from RDR and clear the RDRF flag to
0. Notification that the RDRF flag
has changed from 0 to 1 can also be
No
RDRF = 1
given by the RXI interrupt.
Yes
Read receive data from
RDR, and clear RDRF
flag to 0 in SSR
No
Finished receiving?
(5)
(5) To continue receiving serial data:
check the RDRF flag, read RDR, and
clear the RDRF flag to 0 before the
MSB (bit 7) of the current frame is
received. When the DMAC is
activated by a receive-data-full
interrupt request (RXI) to read RDR,
the RDRF flag is cleared
automatically.
Yes
Clear RE bit to 0 in SCR
<End>
Figure 13.18 Sample Flowchart for Serial Receiving (1)
Rev. 5.0, 09/04, page 504 of 978