
Rev. 1.00
385 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
16 Single-Channel T
imer (SCTM)
16 Single-Channel T
imer (SCTM)
Channel Output Configuration Register – CHOCFR
This register specifies the channel output mode configuration.
Offset:
0x040
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
CHPRE
Reserved
CHOM
Type/Reset
RW 0
RW 0 RW 0 RW 0
Bits
Field
Descriptions
[4]
CHPRE
Channel Capture/Compare Register (CHCCR) Preload Enable
0: CHCCR preload function is disabled
The CHCCR register can be immediately assigned a new value when the
CHPRE bit is cleared to 0 and the updated CHCCR value is used immediately.
1: CHCCR preload function is enabled
The new CHCCR value will not be transferred to its shadow register until the
update event occurs.
[2:0]
CHOM
Channel Output Mode Setting
These bits define the functional types of the output reference signal CHOREF.
000: No Change
001: Output 0 on compare match
010: Output 1 on compare match
011: Output toggles on compare match
100: Force inactive – CHOREF is forced to 0
101: Force active – CHOREF is forced to 1
110: PWM mode 1
- During up-counting, channel has an active level when CNTR < CHCCR or
otherwise has an inactive level.
111: PWM mode 2
- During up-counting, channel has an inactive level when CNTR < CHCCR
or otherwise has an active level.