Renesas RX100 Series User Manual page 649

32-bit mcu
Hide thumbs Also See for RX100 Series:
Table of Contents

Advertisement

RX13T Group
Start data reception
Read ORER, PER, and FER flags in SSR
SSR.ORER flag = 1,
SSR.PER flag = 1, or
SSR.FER flag = 1
No
Read receive data in RDR
No
All data received?
Set bits RIE and RE in SCR to 0
Figure 23.15
Example Flowchart of Serial Reception in Asynchronous Mode (1)
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
Initialization
No
Error processing
(Continued to next page)
RXI interrupt
Yes
*1
Yes
End
23. Serial Communications Interface (SCIg, SCIh)
[ 1 ]
[ 1 ]
SCI initialization:
Set data reception.
[ 2 ] [ 3 ] Receive error processing and break detection:
If a receive error occurs, an ERI interrupt is
generated. An error is identified by reading the
[ 2 ]
ORER, PER, and FER flags in SSR. After
performing the appropriate error processing, be
sure to set the ORER, PER, and FER flags to 0.
Reception cannot be resumed if any of these
Yes
flags is set to 1. In the case of a framing error, a
[ 3 ]
break can be detected by reading the value of
the input port corresponding to the RXDn pin.
[ 4 ]
Read the receive data in RDR once in the RXI
interrupt handling routine.
[ 5 ]
Serial reception continuation procedure:
To continue serial reception, before the stop bit
of the current frame is received, read data from
RDR in the RXI interrupt handling routine.
The RDR data can also be read by activating
the DTC.
[ 4 ]
[ 5 ]
Note:
The RDR register becomes the RDRH and RDRL registers
when 9-bit data length is selected. Read data in the order
from RDRH to RDRL.
Page 649 of 1041

Advertisement

Table of Contents
loading

Table of Contents