
Rev. 1.00
372 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
16 Single-Channel T
imer (SCTM)
Channel Controller
The SCTM channel can be used as the capture input or compare match output. The capture input or
compare match output channel is composed of a preload register and a shadow register. Data access
of the APB bus is always implemented by reading/writing the preload register.
When used in the input capture mode, the counter value is captured into the CHCCR shadow
register first and then transferred into the CHCCR preload register when the capture event occurs.
When used in the compare match output mode, the contents of the CHCCR preload register is
copied into the associated shadow register, the counter value is then compared with the register
value.
CHCCR
(Preload Register)
CHCCR
(Shadow Register)
APB Bus Interface
Capture
Controller
Capture
Capture Transfer
Compare
Controller
Compare Transfer
Read CHCCR
CHCCS
CHCCS
CHCCG
CHPRE
CHE
CHPSC
Write CHCCR
Update Event
CHCCR
TM_CNT
Figure 124. Capture/Compare Block Diagram