
Rev. 1.00
294 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
15 Basic Function T
imer (BFTM)
15 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 91. BFTM – One Shot Mode
CMP
CNT
MIF
CEN
Time
0xFFFF_FFFF
: Cleared by hardware
: Cleared by software
: Updated by software
Figure 92. 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.