
Rev. 1.00
193 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
13 General-Purpose T
imer (GPTM)
Master Controller
The GPTMs and MCTMs can be linked together internally for timer synchronization or chaining.
When one GPTM is configured to be in the Master Mode, the GPTM Master Controller will
generate a Master Trigger Output (MTO) signal which includes a reset, a start, a stop signal or
a clock source which is selected by the MMSEL field in the MDCFR register to trigger or drive
another GPTM or MCTM, if exists, which is configured in the Slave Mode.
GPTMn Master
MTO
ITI
GPTMm/MCTMm Slave
MMSEL
SMSEL
TSE
TRSEL
Figure 40. Master GPTMn and Slave GPTMm / MCTMm Connection
The Master Mode Selection bits, MMSEL, in the MDCFR register are used to select the MTO
source for synchronizing another slave GPTM or MCTM if exists.
Channel 0 Capture/Compare event
MTO
UEVG bit
Counter enable signal
Update Event
CH0OREF
CH1OREF
CH2OREF
CH3OREF
MUX
MMSEL
Figure 41. MTO Selection
For example, setting the MMSEL field to 0x5 is to select the CH1OREF signal as the MTO signal
to synchronize another slave GPTM or MCTM. For a more detailed description, refer to the related
MMSEL field definitions in the MDCFR register.