![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 185](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630185.webp)
www.geehy.com Page 184
Field
Name
R/W
Description
11
OC2NOIS
R/W Configure OC2N output idle state. Refer to OC1NOIS bit
12
OC3OIS
R/W Configure OC3 output idle state. Refer to OC1OIS bit
13
OC3NOIS
R/W Configure OC3N output idle state. Refer to OC1NOIS bit
14
OC4OIS
R/W Configure OC4 output idle state. Refer to OC1OIS bit
15
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.
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)