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.
[ 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
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
flags is set to 1. In the case of a framing error, a
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 DMAC or DTC.