
Rev. 1.00
310 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
16 Motor Control T
imer (MCTM)
16 Motor Control T
imer (MCTM)
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 109. 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 110. Channel 2 and Channel 3 Input Stages
Digital Filter
The digital filters are embedded in the input stage and clock controller block for the MT_CH0 ~
MT_CH3 pins. The digital filter in the MCTM is an N-event counter where N refers to how many
valid transitions are necessary to output a filtered signal. The N value can be 0, 2, 4, 5, 6 or 8
according to the selection for each filter.