![Geehy SEMICONDUCTOR APM32F405 Series User Manual Download Page 218](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630218.webp)
www.geehy.com Page 217
Field
Name
R/W
Description
000: Disable the slave mode, the timer can be used as master mode
timer to affect the work of slave mode timer; if CTRL1_CNTEN=1,
the prescaler is directly driven by the internal clock.
001: Encoder mode 1; according to the level of TI1FP1, the counter
counts at the edge of TI2FP2.
010: Encoder mode 2; according to the level of TI2FP2, the counter
counts at the edge of TI1FP1.
011: Encoder mode 3; according to the input level of another signal, the
counter counts at the edge of TI1FP1 and TI2FP2.
100: Reset mode; the slave mode timer resets the counter after
receiving the rising edge signal of TRGI and generates the signal
to update the register.
101: Gated mode; the slave mode timer starts the counter to work after
receiving the TRGI high level signal; it stops the counter when
receiving TRGI low level; when receiving TRGI high level signal
again, the timer will continue to work; the counter is not reset
during the whole period.
110: Trigger mode, the slave mode timer starts the counter to work after
receiving the rising edge signal of TRGI.
111: External clock mode 1; select the rising edge signal of TRGI as the
clock source to drive the counter to work.
3
Reserved
6:4
TRGSEL
R/W
Trigger Input Signal Select
In order to avoid false edge detection when changing the bit value, it
must be changed when SMFSEL=0.
000: Internal trigger ITR0
001: Internal trigger ITR1
010: Internal trigger ITR2
011: Internal trigger ITR3
100: Channel 1 input edge detector TIF_ED
101: Channel 1 post-filtering timer input TI1FP1
110: Channel 2 post-filtering timer input TI2FP2
111: External trigger input (ETRF)
7
MSMEN
R/W
Master/slave Mode Enable
0: Invalid
1: Enable the master/slave mode
11:8
ETFCFG
R/W
External Trigger Filter Configure
0000: Filter disabled, sampling by f
DTS
0001
:
DIV=1
,
N=2
0010
:
DIV=1
,
N=4
0011
:
DIV=1
,
N=8
0100
:
DIV=2
,
N=6
0101
:
DIV=2
,
N=8
0110
:
DIV=4
,
N=6
0111
:
DIV=4
,
N=8
1000
:
DIV=8
,
N=6
1001
:
DIV=8
,
N=8
1010
:
DIV=16
,
N=5