GD32W51x User Manual
469
Mode Selection
Source Selection
Polarity Selection
Filter and Prescaler
101: CI0FE0
110: CI1FE1
111: ETIFP
If ETIFP is selected as
the trigger source,
configure the ETP for
polarity selection and
inversion.
prescaler can be
used.
For the ETIFP, filter
can be used by
configuring ETFC and
prescaler can be used
by configuring ETPSC.
Exam 1
Restart m ode
The counter w ill be
cleared and restart
w hen a rising edge of
trigger input comes.
TRGS[2:0] = 3’b000
ITI0 is selected.
For ITI0, no polarity
selector can be used.
For the ITI0, no filter
and prescaler can be
used.
Figure 17-24. Restart m ode
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
Exam 2
Pause m ode
The counter w ill be
paused w hen the
trigger input is low ,
and it w ill start w hen
the trigger input is
high.
TRGS[2:0]=3’b101
CI0FE0 is selected.
TI0S=0 (Non-xor)
[CH0NP=0, CH0P=0]
CI0FE0 does not
invert. The capture
event w ill occur on the
rising edge only.
Filter is bypassed in
this example.
Figure 17-25. Pause m ode
TIMER_CK
CEN
CNT_REG
5E
5F
60
61
62
CI0
TRGIF
CI0FE0
63