GD32F10x User Manual
302
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ETP
SMC1
ETPSC[1:0]
ETFC[3:0]
MSM
TRGS[2:0]
Reserved
SMC[2:0]
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value
15
ETP
External trigger polarity
This bit specifies the polarity of ETI signal
0: ETI is active at rising edge or high level .
1: ETI is active at falling edge or low level .
14
SMC1
Part of SMC for enable External clock mode1.
In external clock mode 1, the counter is clocked by any active edge on the ETIFP
signal.
0: External clock mode 1 disabled
1: External clock mode 1 enabled.
When the slave mode is configured as restart mode, pause mode or event mode,
the timer can still work in the external clock 1 mode by setting this bit. But the TRGS
bits must not be 3’b111 in this case.
The clock source of the timer will be ETIFP if external clock mode 0 and external
clock mode 1 are configured at the same time.
Note:
External clock mode 0 enable is in this register’s SMC[2:0] bit-filed.
13:12
ETPSC[1:0]
The prescaler of external trigger
The frequency of external trigger signal ETIFP must not be at higher than 1/4 of
TIMER_CK frequency. When the external trigger signal is a fast clock, the prescaler
can be enabled to reduce ETIFP frequency.
00: Prescaler disable.
01: The prescaler is 2.
10: The prescaler is 4.
11: The prescaler is 8.
11:8
ETFC[3:0]
External trigger filter control
The external trigger can be filtered by digital filter and this bit-field configure the
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:
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...