
Rev. 1.00
207 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
13 General-Purpose T
imer (GPTM)
In the Single Pulse mode, the STI active edge which sets the TME bit to 1 will enable the counter.
However, there exist several clock delays to perform the comparison result between the counter
value and the CHxCCR value. In order to reduce the delay to a minimum value, the user can set
the CHxIMAE bit in each CHxOCFR register. After an STI rising edge trigger occurs in the single
pulse mode, the CHxOREF signal will immediately be forced to the state which the CHxOREF
signal will change to as the compare match event occurs without taking the comparison result into
account. The CHxIMAE bit is available only when the output channel is configured to operate in
the PWM mode 1 or PWM mode 2 and the trigger source is derived from the STI signal.
CHxIMAE
CHxOREF
GT_CNT
CHxCCR
CRR
Counter Value
Time
Up-Counting Mode
Minimum delay
STI
TME
0
1
2
3
4
5
6
CKDIV = 0
Counter Start Time
(PWM1)
(PWM2)
ITIx
Figure 58. Immediate Active Mode Minimum Delay