
Rev. 1.00
285 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
14 General-Purpose T
imer (GPTM)
15 Motor Control T
imer (MCTM)
15
15
Motor Control Timer (MCTM)
Introduction
The Motor Control Timer consists of one 16-bit up/down-counter, four 16-bit Capture/Compare
Registers (CCRs), one 16-bit Counter-Reload Register (CRR), one 8-bit Repetition Counter (REPR)
and several control/status registers. It can be used for a variety of purposes which include general
time measurement, input signal pulse width measurement, output waveform generation for signals
such as single pulse generation or PWM generation, including dead time insertion.
TRCED
XOR
TI0
MT_CH0
MT_CH1
MT_CH2
MT_CH3
Input Filter
& Polarity Selection
& Edge Detection
CH0
PRESCALER
CH1
PRESCALER
CH2
PRESCALER
CH3
PRESCALER
CH1 Capture/Compare
Register (CH1CCR)
CH2 Capture/Compare
Register (CH2CCR)
CH3 Capture/Compare
Register (CH3CCR)
TM_CNT
CH0 Capture/Compare
Register (CH0CCR)
Reload
Register (CRR)
DTG
Dead Time
Register
DTG
DTG
Output
Control
Output Conf.
Registers
Output
Control
Output
Control
Output
Control
MT_CH0O
MT_CH0NO
MT_CH1O
MT_CH1NO
MT_CH2O
MT_CH2NO
MT_CH3O
MT_BRK
Input Polarity &
Filter
Clock Failure Event
CMPx
(Note)
Transition EVent
TI1
TI2
TI3
MT_BRK
PSC
PRESCALER
Repetition
Down-Counter
REPR
Register
Input Filter
& Polarity Selection
& Edge Detection
Edge
Detector
ITI0
ITI1
ITI2
TI0S0ED
TI0S1ED
TI1S0ED
TI1S1ED
Input Filter
& Polarity Selection
& Edge Detection
Input Filter
& Polarity Selection
& Edge Detection
TI2S2ED
TI2S3ED
TI3S2ED
TI3S3ED
TRCED
STIED
TI0S0ED
TI1S1ED
TI0BED
Clock
Controller
f
CLKIN
CK_CNT
CK_PSC
Slave
Controller
STI
CH0OREF
CH1OREF
CH2OREF
CH3OREF
Restart
Pause
Trigger
Up/Dn
CEV0
CEV2
CEV1
CEV3
Master
Controller
MEV0
MEV1
MEV2
MEV3
BEV
UEV1
TEV
TME
CHxOREF
(x = 0 ~ 3)
CEVx
UEV1
MTO
To other Timers ITIx
To ADC
UEV1G
UEV1G
CEVx : Channel x Capture Event
UEV1 : Update Event 1
TEV : Trigger Event
MEVx : Channel x Compare Match Event
UEV2 : Update Event 2
BEV : Break Event
MDCFR
Register
TI0S0
TI1S1
Note: It is only available for HT32F54243 and HT32F54253 devices.
Figure 73. MCTM Block Diagram