MS51
Nov. 28, 2019
Page
348
of 491
Rev 1.00
MS51
32K
SE
RIES
TE
CHNICAL RE
F
EREN
CE MA
N
UAL
PIOCON1
– PWM or I/O Select
Register
SFR Address
Reset Value
PIOCON1
C6H, Page 1
0000_0000 b
7
6
5
4
3
2
1
0
PIO17
-
PIO15
-
PIO04
PIO05
PIO14
-
R/W
-
R/W
-
R/W
R/W
R/W
-
Bit
Name
Description
7
PIO17
P1.7/PWM pin function select
0 = P1.7/PWM3_CH0 pin functions as GPIO P1.7.
1 = P1.7/PWM3_CH0 pin functions as PWM3_CH0 output.
5
PIO15
P1.5/PWM pin function select
0 = P1.5/PWM pin functions as P1.5.
1 = P1.5/PWM pin functions as PWM0_CH5 / PWM3_CH1 output.
When AUXR5[3:2].PWM3CH1P = 11, PIO15 = 1 , P1.5 define as PWM3_CH1.
When AUXR5[3:2].PWM3CH1P = 00 ,PIO15 = 1, P1.5 define as PWM0_CH5.
3
PIO04
P0.4/PWM pin function select
0 = P0.4/PWM pin functions as P0.4.
1 = P0.4/PWM pin functions as PWM0_CH3 / PWM2_CH1 output.
When AUXR4[7:6].PWM2CH1P = 11, PIO04 = 1 , P1.4 define as PWM2_CH1.
When AUXR4[7:6].PWM2CH1P = 00 ,PIO04 = 1, P1.4 define as PWM0_CH5.
2
PIO05
P0.5/PWM pin function select
0 = P0.5/PWM pin functions as P0.5.
1 = P0.5/PWM pin functions as PWM0_CH2 / PWM2_CH0 output.
(PWM2CH0P=11, select PWM2_CH0; others select PWM0_CH3)
1
PIO14
P1.4/PWM pin function select
0 = P1.4/PWM pin functions as P1.4.
1 = P1.4/PWM pin functions as PWM0_CH1 / PWM1_CH1 output.
(PWM1_CH1P=10, select PWM1_CH1; others select PWM0_CH1)