
Rev. 1.00
306 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
15 Motor Control T
imer (MCTM)
Break Function
The MCTM includes break function and one input signal for MCTM break. The MT_BRK is default
function and from the external MT_BRK pin. The detailed block diagram is shown as below figure.
MT_BRK
CKFAIL
BKE
Break Event
(BEV)
f
sample
Filter
BKF
BKP
BRKG
BRKIF
BRKIE
Break Interrupt
(NVIC)
Delay
line
CMPx
Output
Stage
Figure 99. MCTM Break Signal Bolck Diagram
When the MT_BRK input has an active level or the Clock Monitor Circuitry detects a clock failure
event or comparator transition, a break event will be generated if the break function is enabled.
Meanwhile, each channel output will be forced to a reset state, an inactive or idle state. Moreover,
a break event can also be generated by the software asserting the BRKG bit in the EVGR register
even if the break function is disabled.
The MT_BRK input signal can be enabled by setting the BKE bit in the CHBRKCTR register. The
break input polarity can be selected by setting the BKP bit in CHBRKCTR register. The BKE and
BKP bits can be modified at the same time.
The digital filters are embedded in the input stage and clock controller block for the break signal.
The input filter of the MT_BRK signal can be enabled by setting the BKF bits in the CHBRKCTR
register. The digital filter is an N-event counter where N refers to how many valid transitions are
necessary to output a filtered signal.
Digital Filter (N=2)
No Filtered
J
Q
CK
K
Filtered
MT_BRK
f
SYSTEM
D
Q
CK
D
Q
CK
D
Q
CK
f
sampling
Figure 100. MT_BRK Pin Digital Filter Diagram with N = 2