www.geehy.com Page 242
Field
Name
R/W
Description
0: Disable
1: Enable
9:8
CLKDIV
R/W
Clock Divide Factor
For the configuration of dead time and digital filter, CK_INT provides the
clock, and the dead time and the clock of the digital filter can be adjusted
by setting this bit.
00
:
t
DTS
=t
CK_INT
01
:
t
DTS
=2×t
CK_INT
10
:
t
DTS=
4×t
CK_INT
11: Reserved
15:10
Reserved
Control register 2 (TMRx_CTRL2)
Offset address: 0x04
Reset value: 0x0000
Field
Name
R/W
Description
3:0
Reserved
6:4
MMSEL
R/W
Master Mode Signal Select
The signals of timers working in master mode can be used for TRGO,
which affects the work of timers in slave mode and cascaded with master
timer, and specifically affects the configuration of timers in slave mode.
000: Reset; the reset signal of master mode timer is used for TRGO
001: Enable; the counter enable signal of master mode timer is used for
TRGO
010: Update; the update event of master mode timer is used for TRGO
011: Compare pulses; when the master mode timer captures/compares
successfully (CCxIFLG=1), a pulse signal is output for TRGO
100: Compare mode 1; OC1REF is used to trigger TRGO
101: Compare mode 2; OC2REF is used to trigger TRGO
110: Compare mode 3; OC3REF is used to trigger TRGO
111: Compare mode 4; OC4REF is used to trigger TRGO
15:7
Reserved
Slave mode control register (TMRx_SMCTRL)
Offset address: 0x08
Reset value: 0x0000
Field
Name
R/W
Description
2:0
SMFSEL
R/W
Slave Mode Function Select
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.