
Rev. 1.00
375 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)
Output Stage
The SCTM output has function for compare match or PWM output. The channel output SCTM_
CHO is controlled by the CHOM, CHP and CHE bits in the corresponding CHOCFR, CHPOLR
and CHCTR registers.
Output Mode
Controller
CHOM
CHE
SCTM_CHO
CHCCR
CNTR
CHOREF
f
CLKIN
CHCMP Event
Output Enable
Controller
CHP
CHOREF
Figure 128. Output Stage Block Diagram
Channel Output Reference Signal
When the SCTM is used in the compare match output mode, the CHOREF signal (Channel Output
Reference signal) is defined by the CHOM bit setup. The CHOREF signal has several types of
output function which defines what happens to the output when the counter value matches the
contents of the CHCCR register. In addition to the low, high and toggle CHOREF output types;
there are also PWM mode 1 and PWM mode 2 outputs. In these modes, the CHOREF signal level
is changed according to the relationship between the counter value and the CHCCR content. There
are also two modes which will force the output into an inactive or active state irrespective of the
CHCCR content or counter values. With regard to a more detailed description refer to the relative
bit definition. The following table shows a summary of the output type setup.
Table 40. Compare Match Output Setup
CHOM Value
Compare Match Level
0x0
No change
0x1
Clear Output to 0
0x2
Set Output to 1
0x3
Toggle Output
0x4
Force Inactive Level
0x5
Force Active Level
0x6
PWM Mode 1
0x7
PWM Mode 2