32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
Register Descriptions
Timer Counter Configuration Register – CNTCFR
This register specifies the PWM counter configuration.
Offset:
0x000
Reset value: 0x0000_0000
31
Type/Reset
23
Type/Reset
15
Type/Reset
7
Type/Reset
Bits
Field
[24]
DIR
[17:16]
CMSEL
[1]
UGDIS
[0]
UEVDIS
Rev. 1.00
30
29
28
Reserved
22
21
20
Reserved
14
13
12
6
5
4
Reserved
Descriptions
Counting Direction
0: Count-up
1: Count-down
Note: This bit is read only when the Timer is configured to be in the Center-aligned
mode.
Counter Mode Selection
00: Edge-aligned mode. Normal up-counting and down-counting available for this
mode. Counting direction is defined by the DIR bit
01: Center-aligned mode 1. The counter counts up and down alternatively. The
compare match interrupt flag is set during the count-down period
10: Center-aligned mode 2. The counter counts up and down alternatively. The
compare match interrupt flag is set during the count-up period
11: Center-aligned mode 3. The counter counts up and down alternatively. The
compare match interrupt flag is set during the count-up and count-down period
Update event interrupt generation disable control
0: Any of the following events will generate an update interrupt
- Counter overflow / underflow
- Setting the UEVG bit
- Update generation through the slave mode
1: Only counter overflow / underflow generates an update interrupt
Update event Disable control
0: Enable the update event request by one of following events:
- Counter overflow / underflow
- Setting the UEVG bit
- Update generation through the slave mode
1: Disable the update event (However the counter and the prescaler are
reinitialized if the UEVG bit is set or if a hardware restart is received from the
slave mode)
267 of 486
27
26
19
18
RW
11
10
Reserved
3
2
UGDIS
RW
25
24
DIR
RW
0
17
16
CMSEL
0 RW
0
9
8
1
0
UEVDIS
0 RW
0
July 31, 2018
Need help?
Do you have a question about the HT32F50231 and is the answer not in the manual?
Questions and answers