32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F52220/HT32F52230
14
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.
BFTM
APB
clock
Figure 59. 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
Rev. 1.10
Counter
Controller
EN
CLR
32-bit Up Counter
BFTMCNTR
236 of 366
OSM
MIF
Comparator
MIEN
BFTMCMPR
To A/D Converter
To NVIC
November 09, 2018
Need help?
Do you have a question about the HT32F52220 and is the answer not in the manual?