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
R
A
K
E
/
P
W
M
3
_
C
H
1
/
P
W
M
0
_
C
H
5
/
I
2
C
1
_
S
D
A
/
U
A
R
T
2
_
R
X
D
/
L
C
D
_
S
E
G
4
/
A
C
M
P
0
_
N
1
/
A
D
C
_
C
H
5
/
P
2
.0
IC
0
/
P
1
.3
IC
1
/
U
A
R
T
3
_
T
X
D
/
L
C
D
_
D
H
2
/
P
1
.2
IC
2
/
U
A
R
T
1
_
T
X
D
/
U
A
R
T
3
_
R
X
D
/
L
C
D
_
D
H
1
/
P
1
.1
V
L
C
D
S
T
A
D
C
/
X
3
2
_
IN
/
P
W
M
0
_
C
H
0
/
U
A
R
T
2
_
R
X
D
/
P
5
.5
P5.0 / UART1_TXD / I2C1_SCL / UART0_TXD / ICE_DAT
nRESET
P0.0 / SPI0_MOSI / SPI1_MOSI / UART2_TXD / UART0_RXD / TK1 / PWM0_CH5
P0.1 / SPI0_MISO / SPI1_MISO / UART2_RXD / UART0_TXD / TK2 / PWM0_CH4
P0.2 / SPI0_CLK / SPI1_CLK / UART1_RXD / I2C1_SDA / TK3 / PWM0_CH3
P0.3 / SPI0_SS / SPI1_SS / UART1_TXD / I2C1_SCL / TK4 / STADC / PWM0_CH2 / CLKO
P0.6 / LCD_SEG0 / UART0_RXD / I2C1_SDA / PWM3_CH1 / INT0
P0.7 / LCD_SEG1 / UART0_TXD / I2C1_SCL / PWM3_CH0 / INT1
P5.2 / UART0_RXD / I2C0_SDA / XT1_OUT
P5.3 / UART0_TXD / I2C0_SCL / XT1_IN
P5.4 / UART2_TXD / PWM0_CH1 / X32_OUT
P
1
.7
/
L
C
D
_
S
E
G
1
8
/
U
A
R
T
0
_
R
X
D
/
L
C
D
_
C
O
M
7
P
1
.6
/
L
C
D
_
S
E
G
1
9
/
U
A
R
T
0
_
T
X
D
/
L
C
D
_
C
O
M
6
P
1
.5
/
L
C
D
_
S
E
G
2
0
/
I
2
C
1
_
S
D
A
/
L
C
D
_
C
O
M
5
P
1
.4
/
L
C
D
_
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LCD_SEG12 / ADC_CH10 / P3.0
V
REF
AV
SS
ACMP0_O / PWM3_CH0 / UART1_TXD / LCD_SEG7 / ADC_CH15 / P2.7
ACMP1_O / PWM3_CH1 / UART1_RXD / LCD_SEG6 / P2.6
Figure 4.1-21 ML54MD1AE Multi-Function Pin assignment
Pin ML54MD1AE Pin Function
1
P2.5 / ADC_CH0 / ACMP0_P0 / ACMP1_P0 / LCD_COM0 / I2C0_SCL / PWM0_CH0 / UART2_TXD / T0
/ INT0
2
P2.4 / ADC_CH1 / ACMP0_N0 / LCD_COM1 / I2C0_SDA / PWM0_CH1 / UART2_RXD / T1 / INT1
3
P2.3 / ADC_CH2 / ACMP0_P1 / ACMP1_P1 / I2C1_SCL / LCD_COM2 / UART1_TXD / PWM0_CH2 /
PWM0_BRAKE