
Rev. 1.00
292 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
14 Pulse W
idth Modulator (PWM)
15 Basic Function T
imer (BFTM)
15
Basic Function Timer (BFTM)
Introduction
The Basic Function Timer Module, BFTM, is a 32-bit up-counting counter designed to measure
time intervals, generate one shot pulses or generate repetitive interrupts. The BFTM can operate
in two modes which are repetitive and one shot modes. The repetitive mode restarts the counter at
each compare match event which is generated by the internal comparator. The BFTM also supports
a one shot mode which will force the counter to stop counting when a compare match event occurs.
BFTMCMPR
Comparator
BFTMCNTR
32-bit Up-Counter
Counter
Controller
BFTM APB
clock
EN
CLR
MIEN
MIF
To NVIC
OSM
Figure 89. BFTM Block Diagram
Features
▄
32-bit up-counting counter
▄
Compare Match function
▄
Includes debug mode
▄
Clock source: BFTM APB clock
▄
Counter value can be R/W on the fly
▄
One shot mode: counter stops counting when compare match occurs
▄
Repetitive mode: counter restarts when compare match occurs
▄
Compare Match interrupt enable / disable control