Timer Interconnection; Figure 131. Pausing Gptm Using The Mctm Ch0Oref Signal - Holtek HT32F50231 User Manual

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

Advertisement

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

Timer Interconnection

The timers can be internally connected together for timer chaining or synchronization. This can
be implemented by configuring one timer to operate in the master mode while configuring another
timer to be in the slave mode. The following figures present several examples of trigger selection
for the master and slave modes.
Using One Timer to Trigger Another Timer to Start or Stop Counting
Configure MCTM to be in the master mode and to send its channel 0 Output Reference signal
CH0OREF as a trigger output (MMSEL = 0x4).
Configure the MCTM CH0OREF waveform.
Configure the GPTM to receive its input trigger source from the MCTM trigger output (TRSEL
= 0xA).
Configure GPTM to operate in the pause mode (SMSEL = 0x5).
Enable GPTM by writing '1' to the TME bit.
Enable MCTM by writing '1' to the TME bit.
Master MCTM
f
CLKIN
MCTM
CH0OREF
MCTM
32
CNTR
Slave GPTM
GPTM
CNTR
GPTM
TEVIF

Figure 131. Pausing GPTM using the MCTM CH0OREF Signal

Rev. 1.00
33
34
FA
327 of 486
35
36
FB
FC
Software clearing
00
01
FD
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?

Questions and answers

This manual is also suitable for:

Ht32f50241

Table of Contents