Master Controller; Figure 40. Master Gptmn And Slave Gptmm / Mctmm Connection; Figure 41. Mto Selection - Holtek HT32F50231 User Manual

32-bit microcontroller with arm cortex-m0+
Table of Contents

Advertisement

32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241

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.

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.

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.
Rev. 1.00
GPTMn Master
MMSEL
MTO
TSE
UEVG bit
Counter enable signal
Update Event
Channel 0 Capture/Compare event
CH0OREF
CH1OREF
CH2OREF
CH3OREF
193 of 486
GPTMm/MCTMm Slave
SMSEL
ITI
TRSEL
MTO
MMSEL
July 31, 2018

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT32F50231 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Ht32f50241

Table of Contents