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