
M0A21/M0A23 Series
May 06, 2022
Page
420
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
(UART_FIFOSTS), and line control register (UART_LINE) for transmitter and receiver. The time-out
register (UART_TOUT) identifies the condition of time-out interrupt.
Auto-Baud Rate Measurement
This block is responsible for auto-baud rate measurement.
Interrupt Control and Status Register
There are eleven types of interrupts. Interrupt enable register (UART_INTEN) enable or disable the
responding interrupt and interrupt status register (UART_INTSTS) identifying the occurrence of the
responding interrupt.
Interrupt
Description
RDAINT
Receive Data Available Interrupt.
THERINT
Transmit Holding Register Empty Interrupt.
TXENDINT
Transmitter Empty Interrupt.
RLSINT
Receive Line Status Interrupt (parity error or frame error or break error).
MODEMINT
MODEM Status Interrupt.
RXTOINT
Receiver Buffer Time-out Interrupt.
BUFERRINT
Buffer Error Interrupt.
LININT
LIN Bus Interrupt.
WKINT
Wake-up Interrupt.
ABRINT
Auto-Baud Rate Interrupt.
SWBEINT
Single-wire Bit Error Detect Interrupt.
Table 6.11-2 UART Interrupt
6.11.4 Basic Configuration
The basic configurations of UART0 are as follows:
Clock Source Configuration
–
Select the source of UART0 peripheral clock on UART0SEL (CLK_CLKSEL1[26:24]).
–
Select the clock divider number of UART0 peripheral clock on UART0DIV
(CLK_CLKDIV0[11:8]).
–
Enable UART0 peripheral clock in UART0CKEN (CLK_APBCLK0[16]).
Reset UART0 controller in UART0RST (SYS_IPRST1[16]).
Pin Configuration
Group
Pin Name
GPIO
MFP
UART0
UART0_RXD
PD.1, PD.5
MFP3
PA.0, PA.1, PA.2, PA.3, PA.4, PA.5
PB.4, PB.5, PB.6, PB.7
PC.0, PC.1, PC.2, PC.3, PC.4, PC.5, PC.6,
PC.7
MFP9
UART0_TXD
PD.0, PD.4
MFP3
PA.0, PA.1, PA.2, PA.4, PA.5
MFP8