32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F52342/HT32F52352
Using one timer to trigger another timer to start counting
▄
Configure MCTM to operate in the master mode and to send its Update Event UEV as the trigger
output (MMSEL = 0x02).
▄
Configure the MCTM period by setting the CRR register.
▄
Configure GPTM to get the input trigger source from the MCTM trigger output (TRSEL =
0x0A).
▄
Configure GPTM to be in the slave trigger mode (SMSEL = 0x06).
▄
Start MCTM by writing '1' to the TME bit.
f
CLKIN
MCTM
UEV1IF
MCTM
13
CNTR
GPTM
CNTR
GPTM
TME bit
GPTM
TEVIF
Figure 112. Triggering GPTM with MCTM Update Event 1
Rev. 1.30
14
15
FA
Software cleaning
343 of 656
00
01
FB
FC
02
03
FD
September 28, 2018
Need help?
Do you have a question about the HT32F52342 and is the answer not in the manual?