
Rev. 1.00
200 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
13 General-Purpose T
imer (GPTM)
13 General-Purpose T
imer (GPTM)
Table 26. Counting Direction and Encoding Signals
Counting Mode
Level
TI0S0
TI1S1
Rising
Falling
Rising
Falling
Counting on TI0 only
(SMSEL = 0x1)
TI1S1 = High
Down
Up
—
—
TI1S1 = Low
Up
Down
—
—
Counting on TI1 only
(SMSEL = 0x2)
TI0S0 = High
—
—
Up
Down
TI0S0 = Low
—
—
Down
Up
Counting on TI0 and TI1
(SMSEL = 0x3)
TI1S1 = High
Down
Up
X
X
TI1S1 = Low
Up
Down
X
X
TI0S0 = High
X
X
Up
Down
TI0S0 = Low
X
X
Down
Up
Note:
“—” → “no counting”; “X” → impossible
TI0
TI1
Up
Down
Quadrature Decoder
Counting on Both TI0 & TI1
(CH0P = 0, CH1P = 0)
Figure 49. Both TI0 and TI1 Quadrature Decoder Counting