528
Chapter 16
Asynchronous Serial Interface (UARTA)
Preliminary User’s Manual U17566EE1V2UM00
16.5.7
UART reception
The reception wait status is set by setting the UAnCTL0.UAnPWR bit to 1 and
then setting the UAnCTL0.UAnRXE bit to 1. In the reception wait status, the
RXDAn pin is monitored and start bit detection is performed.
Start bit detection is performed using a two-step detection routine.
First the rising edge of the RXDAn pin is detected and sampling is started at
the falling edge. The start bit is recognized if the RXDAn pin is low level at the
start bit sampling point. After a start bit has been recognized, the receive
operation starts, and serial data is saved to the UARTAn receive shift register
according to the set baud rate.
When the reception complete interrupt request signal (INTUAnR) is output
upon reception of the stop bit, the data of the UARTAn receive shift register is
written to the UAnRX register. However, if an overrun error (UAnSTR.UAnOVE
bit) occurs, the receive data at this time is not written to the UAnRX register
and is discarded.
Even if a parity error (UAnSTR.UAnPE bit) or a framing error (UAnSTR.UAnFE
bit) occurs during reception, reception continues until the reception position of
the first stop bit, and INTUAnR is output following reception completion.
Figure 16-8
UART reception
S
t
a
rt
b
it
D0
D1
D2
D
3
D4
D5
D6
D7
P
a
rity
b
it
S
top
b
it
INTUAnR
UAnRX
electronic components distributor