
Rev. 1.00
314 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
15 Motor Control T
imer (MCTM)
Single Pulse Mode
Once the timer is set to operate in the single pulse mode, it is not necessary to set the timer enable
bit TME in the CTR register to 1 to enable the counter. The trigger to generate a pulse can be
sourced from the STI signal rising edge or by setting the TME bit to 1 using software. Setting the
TME bit to 1 or a trigger from the STI signal rising edge can generate a pulse and then keep the
TME bit at a high state until the update event 1 occurs or the TME bit is cleared to 0 by software.
If the TME bit is cleared to 0 using software, the counter will be stopped and its value held.
If the TME bit is automatically cleared to 0 by a hardware update event 1, the counter will be
reinitialised.
Triggered by S/W
Triggered by STI
Cleared by
Update Event
Flag is set by compare match and
cleared by S/W
CRR
CHxCCR
TME bit
STI
UEV1IF
CHxCCIF
Counter Value
Flag is set by update event 1
and cleared by S/W
Counter stopped
and held
Time
Counter
reinitialized
Cleared by S/W
Delay
Delay
CHxOREF
(PWM1)
Delay
Delay
(PWM2)
CHxIMAE=0
Min. delay
CHxIMAE=1
Min. delay
CHxOREF
(PWM1)
(PWM2)
Delay
Delay
Figure 108. Single Pulse Mode