
M0A21/M0A23 Series
May 06, 2022
Page
421
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
PB.4, PB.5, PB.6, PB.7
PC.0, PC.1, PC.2, PC.3, PC.4, PC.5, PC.6,
PC.7
UART0_nCTS
PA.0, PA.1, PA.2, PA.3
PB.4, PB.5, PB.6, PB.7
PC.0, PC.1, PC.2, PC.3, PC.4, PC.5, PC.6,
PC.7
MFP3
UART0_nRTS
PA.2, 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
MFP2
The basic configurations of UART1 are as follows:
Clock Source Configuration
–
Select the source of UART1 peripheral clock on UART1SEL (CLK_CLKSEL1[30:28]).
–
Select the clock divider number of UART1 peripheral clock on UART1DIV
(CLK_CLKDIV0[15:12]).
–
Enable UART1 peripheral clock in UART1CKEN (CLK_APBCLK0[17]).
Reset UART1 controller in UART1RST (SYS_IPRST1[17]).
Pin Configuration
Group
Pin Name
GPIO
MFP
UART1
UART1_RXD
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
MFP29
UART1_TXD
PA.0, PA.1, PA.2, 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
MFP28
UART1_nCTS
PD.2, PD.6
MFP6
PB.4
MFP30
UART1_nRTS
PD.3, PD.7
MFP6
PC.2
MFP30
UART Interface Controller Pin description is shown in Table 6.11-3:
Pin
Type
Description
UARTx_TXD
Output
UARTx transmit
UARTx_RXD
Input
UARTx receive
UARTx_nCTS
Input
UARTx modem clear to send
UARTx_nRTS
Output
UARTx modem request to send
Table 6.11-3 UART Interface Controller Pin
6.11.5 Functional Description
The UART controller supports five function modes including UART, LIN, IrDA, RS-485, and Single-wire