
Rev. 1.00
252 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
14 General-Purpose T
imer (GPTM)
Bits
Field
Descriptions
[10:8]
SMSEL
Slave Mode Selection
SMSEL [2:0]
Mode
Descriptions
000
Disable Mode
The prescaler is clocked directly by the internal
clock.
001
Quadrature
Decoder Mode 1
The counter uses the clock pulse generated from
the interaction between the TI0 and TI1 signals to
drive the counter prescaler. A transition of the TI0
edge is used in this mode depending upon the TI1
level.
010
Quadrature
Decoder Mode 2
The counter uses the clock pulse generated from
the interaction between the TI0 and TI1 signals to
drive the counter prescaler. A transition of the TI1
edge is used in this mode depending upon the TI0
level.
011
Quadrature
Decoder Mode 3
The counter uses the clock pulse generated from
the interaction between the TI0 and TI1 signals
to drive the counter prescaler. A transition of one
channel edge is used in the quadrature decoder
mode 3 depending upon the other channel level.
100
Restart Mode
The counter value restarts from 0 or the CRR
shadow register value depending upon the
counter mode on the rising edge of the STI signal.
The registers will also be updated.
101
Pause Mode
The counter starts to count when the selected
trigger input STI is high. The counter stops
counting on the instant, not being reset, when the
STI signal changes its state to a low level. Both
the counter start and stop control are determined
by the STI signal.
110
Trigger Mode
The counter starts to count from the original value
in the counter on the rising edge of the selected
trigger input STI. Only the counter start control is
determined by the STI signal.
111
STIED
The rising edge of the selected trigger signal STI
will clock the counter.
[0]
TSE
Timer Synchronization Enable
0: No action
1: Master timer (current timer) will generate a delay to synchronize its slave timer
through the MTO signal.