GD32VF103 User Manual
294
Table
15
-
6
. Slave controller examples
Mode Selection
Source Selection
Polarity Selection
Filter and Prescaler
LIST
SMC[2:0]
3'b100 (restart
mode)
3'b101 (pause
mode)
3'b110 (event
mode)
TRGS[2:0]
000: ITI0
001: ITI1
010: ITI2
011: ITI3
100: CI0F_ED
101: CI0FE0
110: CI1FE1
111: ETIFP
If you choose the
CI0FE0 or CI1FE1,
configure the CHxP and
CHxNP for the polarity
selection and inversion.
If you choose the ETIF,
configure the ETP for
polarity selection and
inversion.
For the ITIx no filter
and prescaler can be
used.
For the CIx, configure
Filter by CHxCAPFLT,
no prescaler can be
used.
For the ETIF, configure
Filter by ETFC and
Prescaler by ETPSC.
Exam1
Restart mode
The counter can be
clear and restart
when a rising trigger
input.
TRGS[2:0]=3’b000
ITI0 is the
selection.
For ITI0, no polarity
selector can be used.
For the ITI0, no filter
and prescaler can be
used.
Figure 15-48. Restart mode
TIMER_CK
CEN
CNT_REG
5E
5F
60
61
62
63
00
01
02
03
04
00
01
02
UPIF
ITI0
TRGIF
Internal sync delay
Exam2
Pause mode
The counter can be
paused when the
trigger input is low.
TRGS[2:0]=3’b101
CI0FE0 is the
selection.
TI0S=0.
(
Non-xor
)
[CH0NP==0, CH0P==0]
no inverted. Capture will
be sensitive to the rising
edge only.
Filter is bypass in this
example.