
Rev. 1.00
396 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
17 Basic Function T
imer (BFTM)
One Shot Mode
By setting the OSM bit in BFTMCR register to 1, the BFTM will operate in the one shot mode. The
BFTM starts to count when the CEN bit is set to 1 by the application program. The counter value
will remain unchanged if the CEN bit is cleared to 0 by the application program. However, the
counter value will be reset to 0 and stop counting when the CEN bit is cleared automatically to 0 by
the internal hardware when a counter compare match event occurs.
CMP
CNT
MIF
CEN
Time
CNT value unchanged
when CEN is reset
By S/W
: Cleared by hardware
: Cleared by software
: Updated by software
Figure 135. BFTM – One Shot Mode
CMP
CNT
MIF
CEN
Time
0xFFFF_FFFF
: Cleared by hardware
: Cleared by software
: Updated by software
Figure 136. BFTM – One Shot Mode Counter Updating
Trigger ADC Start
When a BFTM compare match event occurs, a compare match interrupt flag, MIF, will be
generated which can be used as an A/D Converter input trigger source.