
Rev. 1.00
333 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
16 Motor Control T
imer (MCTM)
Bits
Field
Descriptions
[17:16]
CMSEL
Counter Mode Selection
00: Edge-aligned counting mode. Normal up-counting and down-counting
available for this mode. Counting direction is defined by the DIR bit.
01: Center-aligned counting mode 1. The counter counts up and down
alternatively. The compare match interrupt flag is set during the count-down
period.
10: Center-aligned counting mode 2. The counter counts up and down
alternatively. The compare match interrupt flag is set during the count-up
period.
11: Center-aligned counting mode 3. The counter counts up and down
alternatively. The compare match interrupt flag is set during the count-up and
count-down period.
[9:8]
CKDIV
Clock Division
These two bits define the frequency ratio between the timer clock (f
CLKIN
) and the
dead-time clock (f
DTS
). The dead-time clock is also used as the digital filter sampling
clock
00: f
DTS
= f
CLKIN
01: f
DTS
= f
CLKIN
/ 2
10: f
DTS
= f
CLKIN
/ 4
11: Reserved
[1]
UGDIS
Update event 1 interrupt generation disable control
0: Any of the following events will generate an update interrupt
- Counter overflow / underflow
- Setting the UEV1G bit
- Update generation through the slave mode
1: Only counter overflow/underflow generates an update interrupt
[0]
UEV1DIS
Update event 1 Disable control
0: Enable the update event 1 request by one of following events
- Counter overflow / underflow
- Setting the UEV1G bit
- Update generation through the slave mode
1: Disable the update event 1 (However the counter and the prescaler are
reinitialised if the UEV1G bit is set or if a hardware restart is received from the
slave mode)