SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 135
Version 1.1
5:4
EMC2[1:0]
Determines the functionality of CT16Bn_PWM2 when MR2=TC.
00: Do Nothing.
01: CT16Bn_PWM2 pin is LOW.
10: CT16Bn_PWM2 pin is HIGH.
11: Toggle CT16Bn_PWM2 pin.
R/W
0
3:2
EMC1[1:0]
Determines the functionality of CT16Bn_PWM1 when MR1=TC.
00: Do Nothing.
01: CT16Bn_PWM1 pin is LOW.
10: CT16Bn_PWM1 pin is HIGH.
11: Toggle CT16Bn_PWM1.
R/W
0
1:0
EMC0[1:0]
Determines the functionality of CT16Bn_PWM0 when MR0=TC.
00: Do Nothing.
01: CT16Bn_PWM0 pin is LOW.
10: CT16Bn_PWM0 pin is HIGH.
11: Toggle CT16Bn_PWM0.
R/W
0
10.8.23 CT16Bn PWM Control register (CT16Bn_PWMCTRL) (n=0,2,5)
Address Offset: 0x98
The PWM Control register is used to configure the match outputs as PWM outputs. Each match output can be
in-dependently set to perform either as PWM output or as match output whose function is controlled by
register.
For CT16B0/2/5, a maximum of 4 single edge controlled PWM outputs can be selected on the CT16Bn_PWMCTRL[3:0]
outputs. One additional match register determines the PWM cycle length. When a match occurs in any of the other
match registers, the PWM output is set to HIGH. The timer is reset by the match register that is configured to set the
PWM cycle length. When the timer is reset to zero, all currently HIGH match outputs configured as PWM outputs are
cleared.
Bit
Name
Description
Attribute
Reset
31:24
PWMKEY[7:0]
PWM register key.
Read as 0. When writing to the register you must write 0x5A to PWMKEY,
otherwise behaviour of writing to the register is ignored.
W
0
23
PWM3IOEN
CT16Bn_PWM3/GPIO selection bit
0: CT16Bn_PWM3 pin act as GPIO
1: CT16Bn_PWM3 pin act as match output, and output signal depends on
PWM3EN bit.
R/W
0
22
PWM2IOEN
CT16Bn_PWM2/GPIO selection bit
0: CT16Bn_PWM2 pin act as GPIO
1: CT16Bn_PWM2 pin act as match output, and output signal depends on
PWM2EN bit.
R/W
0
21
PWM1IOEN
CT16Bn_PWM1/GPIO selection bit
0: CT16Bn_PWM1 pin act as GPIO
1: CT16Bn_PWM1 pin act as match output, and output signal depends on
PWM1EN bit.
R/W
0
20
PWM0IOEN
CT16Bn_PWM0/GPIO selection bit
0: CT16Bn_PWM0 pin act as GPIO
1: CT16Bn_PWM0 pin act as match output, and output signal depends on
PWM0EN bit.
R/W
0
19:12
Reserved
R
0
11:10
PWM3M0DE[1:0]
PWM3 output mode
00: PWM mode 1
PWM3 is 0 when TC<MR3 during Up-counting period
PWM3
is 0 when TC≤MR3 during Down-counting period
01: PWM mode 2
PWM3 is 1 when TC<MR3 during Up-counting period
PWM3
is 1 when TC≤MR3 during Down-counting period
10: PWM3 is forced to 0.
11: PWM3 is forced to 1.
R/W
0
9:8
PWM2M0DE[1:0]
PWM2 output mode
00: PWM mode 1
PWM2 is 0 when TC<MR2 during Up-counting period
R/W
0