
Rev. 1.00
228 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
14 General-Purpose T
imer (GPTM)
Trigger Controller
The trigger controller is used to select the trigger source and setup the trigger level or trigger edge
condition. For the internal trigger input, it can be selected by the Trigger Selection bits TRSEL in
the TRCFR register. For all the trigger sources except the UEVG bit software trigger, the internal
edge detection circuitry will generate a clock pulse at each trigger signal rising edge to stimulate
some GPTM functions which are triggered by a trigger signal rising edge.
Trigger Controller Block = Edge Trigger Mux + Level Trigger Mux
Edge
Detection
ITI0
ITI1
ITI2
ITI0ED
ITI1ED
ITI2ED
STI
TRSEL[2:0]
TRSEL[3]
0
1
0
S/W Set
UEVG Bit
TI0S0
TI1S1
ITI0
ITI1
ITI2
Level Trigger Source = Internal (ITIx) + Channel input (TIn) + Software UEVG bit
f
CLKIN
STI_S0
STI_S1
000
001
010
011
others
Reserved
000
001
010
011
others
Reserved
Level Trigger Mux
Edge Trigger Source = Internal (ITIx) + Channel input (TIn)
Internal Trigger Input
Reserved
STIED
TRCED
TI0S0ED
TI1S1ED
TRSEL[2:0]
TRSEL[3]
0
1
0
Edge Trigger Mux
TI0BED
ITI0ED
ITI1ED
ITI2ED
STIED_S0
STIED_S1
Reserved
000
001
010
011
others
000
001
010
011
others
Reserved
Reserved
Figure 44. Trigger Controller Block