
Rev. 1.00
304 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
16 Motor Control T
imer (MCTM)
16 Motor Control T
imer (MCTM)
Trigger Controller
The trigger controller is used to select the trigger source and setup the trigger level and edge trigger
conditions. For the internal trigger input (ITIx), it can be selected by the Trigger Selection bits,
TRSEL, in the TRCFR register. For all the trigger sources except the UEV1G bit software trigger,
the internal edge detection circuitry will generate a clock pulse at each trigger signal rising edge to
activate some MCTM 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
STIED
TRCED
TI0S0ED
TI1S1ED
TRSEL[2:0]
TRSEL[3]
0
1
0
Edge Trigger Mux
TI0BED
ITI0ED
ITI1ED
ITI2ED
STI
TRSEL[2:0]
TRSEL[3]
0
1
0
SW Set
UEV1G Bit
TI0S0
TI1S1
ITI0
ITI1
ITI2
Level Trigger Source = Internal (ITIx) + Channel input (TIn) + Software UEV1G bit
f
CLKIN
STIED_S0
STIED_S1
STI_S0
STI_S1
Reserved
000
001
010
011
others
000
001
010
011
others
Reserved
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
Reserved
Figure 99. Trigger Controller Block