GD32F403xx User Manual
275
Master-slave management
The TIMERx can be synchronized with a trigger in several modes including the restart mode,
the pause mode and the event mode which is selected by the SMC [2:0] in the
TIMERx_SMCFG register. The trigger input of these modes can be selected by the TRGS
[2:0] in the TIMERx_SMCFG register.
Table 16-4. Slave mode example table
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 f or the polarity
selection and inversion.
If you choose the ETIF,
conf igure the
ETP
for
polarity
selection
and
inversion.
For the ITIx no f ilter and
prescaler can be used.
For the CIx, configure Filter
by
CHxCAPFLT,
no
prescaler can be used.
For the ETIF, conf igure
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’b00
0
ITI0 is the
selection.
-
For ITI0, no polarity selector
can be used.
-
For the ITI0, no f ilter and
prescaler can be used.
Figure 16-22. 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