
Rev. 1.00
192 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
13 General-Purpose T
imer (GPTM)
13 General-Purpose T
imer (GPTM)
Pause Mode
In the Pause Mode, the selected STI input signal level is used to control the counter start / stop
operation. The counter starts to count when the selected STI signal is at a high level and stops
counting when the STI signal is changed to a low level, here the counter will maintain its present
value and will not be reset. Since the Pause function depends upon the STI level to control the counter
stop / start operation, the selected STI trigger signal can not be derived from the TI0BED signal.
CK_ CNT
STI
CNT_ EN
27
CNTR
28
29
30
31
TEVIF
Sync
Software clearing
STI source signal
(polarity=0)
STI source signal
Sync
(polarity=1)
Figure 38. GPTM in Pause Mode
Trigger Mode
After the counter is disabled to count, the counter can resume counting when an STI rising edge
signal occurs. When an STI rising edge occurs, the counter will start to count from the current
value in the counter. Note that if the STI signal is selected to be derived from the UEVG bit
software trigger, the counter will not resume counting. When software triggering using the UEVG
bit is selected as the STI source signal, there will be no clock pulse generated which can be used to
make the counter resume counting. Note that the STI signal is only used to enable the counter to
resume counting and has no effect on controlling the counter to stop counting.
CK_CNT
STI
CNT_EN
27
CNTR
(Up-counting)
29
30
31
32
TEVIF
Sync
Software clearing
28
STI source signal
(polarity=0)
STI source signal
(polarity=1)
Figure 39. GPTM in Trigger Mode