
Rev. 1.00
295 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
15 Basic Function T
imer (BFTM)
Register Map
The following table shows the BFTM registers and their reset values.
Table 33. BFTM Register Map
Register
Offset
Description
Reset Value
BFTMCR
0x000
BFTM Control Register
0x0000_0000
BFTMSR
0x004
BFTM Status Register
0x0000_0000
BFTMCNTR
0x008
BFTM Counter Value Register
0x0000_0000
BFTMCMPR
0x00C
BFTM Compare Value Register
0xFFFF_FFFF
Register Descriptions
BFTM Control Register – BFTMCR
This register specifies the overall BFTM control bits.
Offset:
0x000
Reset value: 0x0000_0000
31
30
29
28
27
26
25
24
Reserved
Type/Reset
23
22
21
20
19
18
17
16
Reserved
Type/Reset
15
14
13
12
11
10
9
8
Reserved
Type/Reset
7
6
5
4
3
2
1
0
Reserved
CEN
OSM
MIEN
Type/Reset
RW 0 RW 0 RW 0
Bits
Field
Descriptions
[2]
CEN
BFTM Counter Enable Control
0: BFTM is disabled
1: BFTM is enabled
When this bit is set to 1, the BFTM counter will start to count. The counter will stop
counting and the counter value will remain unchanged when the CEN bit is cleared
to 0 by the application program regardless of whether it is in the repetitive or one
shot mode. However, in the one shot mode, the counter will stop counting and be
reset to 0 when the CEN bit is cleared to 0 by the timer hardware circuitry which
results from a compare match event.
[1]
OSM
BFTM One Shot Mode Selection
0: Counter operates in repetitive mode
1: Counter operates in one shot mode
[0]
MIEN
BFTM Compare Match Interrupt Enable Control
0: Compare Match Interrupt is disabled
1: Compare Match Interrupt is enabled