
GD32F403xx User Manual
328
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 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 disable
1: Master-slave mode enable
6:4
TRGS[2:0]
Trigger selection
This bit-field specifies which signal is selected as the trigger input, which is used to
synchronize the counter.
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: channel 0 input Filtered output (CI0FE0)
110: channel 1 input Filtered output (CI1FE1)
111: External trigger input filter output(ETIFP)
These bits must not be changed when slave mode i s enabled.
3
Reserved
Must be kept at reset value.
2:0
SMC[2:0]
Slave mode control
000: Disable mode. The slave mode is disabled; The prescaler is clocked directly
by the internal clock (TIMER_CK) when CEN bit is set high.
001: Quadrature decoder mode 0.The counter counts on CI0FE0 edge, while the
direction depends on CI1FE1 level.
010: Quadrature decoder mode 1.The counter counts on CI1FE1 edge, while the
direction depends on CI0FE0 level.
011: Quadrature decoder mode 2.The counter counts on both CI0FE0 and CI1FE1
edge, while the direction depends on each other.
100: Restart mode. The counter is reinitialized and an update event is generated
on the rising edge of the selected trigger input.
101: Pause mode. The trigger input enables the counter clo ck when it is high and
disables the counter clock when it is low.