GD32A50x User Manual
441
filtering capability.
Basic principle of digital filter: continuously sample the external trigger signal
according to f
SAMP
and record the number of times of the same level of the signal.
After reaching the filtering capacity configured by this bit-field, it is considered to be
an effective level.
The filtering capability configuration is as follows:
EXTFC[3:0]
Times
f
SAMP
4’b0000
Filter disabled.
4’b0001
2
f
CK_TIMER
4’b0010
4
4’b0011
8
4’b0100
6
f
DTS_CK
/2
4’b0101
8
4’b0110
6
f
DTS_CK
/4
4’b0111
8
4’b1000
6
f
DTS_CK
/8
4’b1001
8
4’b1010
5
f
DTS_CK
/16
4’b1011
6
4’b1100
8
4’b1101
5
f
DTS_CK
/32
4’b1110
6
4’b1111
8
7
MSM
Master-slave mode
This bit can be used to synchronize the selected timers to begin counting at the
same time. The TRGI is used as the start event, and through TRGO, timers are
connected together.
0: Master-slave mode disabled
1: Master-slave mode enabled
6:4
TRGS[2:0]
Trigger selection
This bit-field specifies which signal is selected as the trigger input to synchronize
the timers.
000: Internal trigger input 0 (ITI0)
001: Internal trigger input 1 (ITI1)
010: Internal trigger input 2 (ITI2)
011: Internal trigger input 3 (ITI3)
100: CI0 edge flag (CI0F_ED)
101: The filtered output of channel 0 input (CI0FE0)
110: The filtered output of channel 1 input (CI1FE1)
111: The filtered output of external trigger input (ETIFP)
These bits must not be changed when slave mode is enabled.