Slave Controller; Figure 44. Slave Controller Diagram; Figure 45. Gptm In Restart Mode - Holtek HT32F12345 User Manual

32-bit microcontroller with arm cortex-m3 core
Table of Contents

Advertisement

32-Bit Arm
®
Cortex
®
-M3 MCU
HT32F12345

Slave Controller

The GPTM can be synchronized with an external trigger in several modes including the Restart
mode, the Pause mode and the Trigger mode which is selected by the SMSEL field in the MDCFR
register. The trigger input of these modes comes from the STI signal which is selected by the
TRSEL field in the TRCFR register. The operation modes in the Slave Controller are described in
the accompanying sections.
Trigger Controller

Figure 44. Slave Controller Diagram

Restart Mode
The counter and its prescaler can be reinitialized in response to a rising edge of the STI signal. When
a STI rising edge occurs, the update event software generation bit named UEVG will automatically
be asserted by hardware and the trigger event flag will also be set. Then the counter and prescaler
will be reinitialized. Although the UEVG bit is set to 1 by hardware, the update event does not really
occur. It depends upon whether the update event disable control bit UEVDIS is set to 1 or not. If the
UEVDIS is set to 1 to disable the update event to occur, there will no update event will be generated,
however the counter and prescaler are still reinitialized when the STI rising edge occurs. If the
UEVDIS bit in the CNTCFR register is cleared to enable the update event to occur, an update event
will be generated together with the STI rising edge, then all the preloaded registers will be updated.
Timer Counter Reload Register CRR = 32
STI source signal
STI source signal
(reset counter)
(Up-counting)
(Down-counting)

Figure 45. GPTM in Restart Mode

Rev. 1.10
STI
Slave
Controller
SMSEL
(polarity=0)
(polarity=1)
STI
CK_CNT
UEVG bit
CNTR
27
28
29
CNTR
27
26
25
TEVIF
230 of 590
Trigger Event
Reset/Stop/Start Counter
Restart/Pause/Trigger Mode
Sync.
Trigger Event
0
30
31
1
2
24
23
32
31
30
November 28, 2018

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents