
Rev. 1.00
307 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
16 Motor Control T
imer (MCTM)
Master Controller
The MCTMs and GPTMs can be linked together internally for timer synchronisation or chaining.
When one MCTM is configured to be in the Master Mode, the MCTM Master Controller will
generate a Master Trigger Output (MTO) signal which can reset, restart, stop the Slave counter or
be a clock source of the Slave Counter. This can be selected by the MMSEL field in the MDCFR
register to trigger or drive another MCTM or GPTM, if exists, which should be configured in the
Slave Mode.
MCTMn Master
MTO
ITI
GPTMm Slave
MMSEL
SMSEL
TSE
TRSEL
Figure 104. Master MCTMn and Slave GPTMm Connection
The Master Mode Selection bits, MMSEL, in the MDCFR register are used to select the MTO
source for synchronising another slave MCTM or GPTM if exists.
Channel 0 Capture/Compare event
MTO
UEV1G bit
Counter enable signal
Update Event 1
CH0OREF
CH1OREF
CH2OREF
CH3OREF
MUX
MMSEL
Figure 105. MTO Selection
For example, setting the MMSEL field to 0x5 is to select the CH1OREF signal as the MTO signal
to synchronise another slave MCTM or GPTM. For a more detailed description, refer to the related
MMSEL field definitions in the MDCFR register.