
Rev. 1.00
299 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
15 Motor Control T
imer (MCTM)
15 Motor Control T
imer (MCTM)
Input Stage
The input stage consists of a digital filter, a channel polarity selection, edge detection and a channel
prescaler. The channel 0 input signal TI0 can be chosen to come from the MT_CH0 signal or the
Excusive-OR function of the MT_CH0, MT_CH1 and MT_CH2 signals. The channel input signal TIx
is sampled by a digital filter to generate a filtered input signal TIxFP. Then the channel polarity and
the edge detection block can generate a TIxSyED signal for the input capture function. The effective
input event number can be set by the channel capture input source prescaler setting field CHxPSC.
Filter
TI0FP
TI0FN
TI0F
MT_CH0
f
sampling
CH0P
Filter
TI1FP
TI1FN
TI1F
CH1P
MT_CH1
TI0S0
TI1S0
TI0S1
TI1S1
TRCED
CH0PRESCALER
CH1PRESCALER
TI0S0ED
CH0PSC
CH1PSC
CH0CCS
CH1CCS
CH0PSC
CH1PSC
CH0CAP Event
CH1CAP Event
Edge
Detection
Edge
Detection
Edge
Detection
Edge
Detection
TI1S0ED
TI0S1ED
TI1S1ED
MT_CH1
MT_CH2
TI0SRC
TI0XOR
Edge
Detection
Edge
Detection
TI0BED
XOR
f
sampling
f
CLKIN
TI0
TI1
f
CLKIN
Figure 89. Channel 0 and Channel 1 Input Stages
Filter
TI2FP
TI2FN
TI2F
MT_CH2
CH2P
Filter
TI3FP
TI3FN
TI3F
CH3P
MT_CH3
TI2S2
TI3S2
TI2S3
TI3S3
TRCED
CH2PRESCALER
CH3PRESCALER
TI2S2ED
CH2PSC
CH3PSC
CH2CCS
CH3CCS
CH2PSC
CH3PSC
CH2CAP Event
CH3CAP Event
Edge
Detection
Edge
Detection
Edge
Detection
Edge
Detection
TI3S2ED
TI2S3ED
TI3S3ED
f
CLKIN
f
sampling
f
sampling
TI2
TI3
Figure 90. Channel 2 and Channel 3 Input Stages