01.06.2014 Views

STM32W108C8

STM32W108C8

STM32W108C8

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>STM32W108C8</strong><br />

General-purpose timers<br />

Bits [6:4] TIM_MMS: Master Mode Selection<br />

This selects the information to be sent in master mode to a slave timer for synchronization<br />

using the trigger output (TRGO).<br />

000: Reset - the TIM_UG bit in the TMRx_EGR register is trigger output.<br />

If the reset is generated by the trigger input (slave mode controller configured in reset mode),<br />

then the signal on TRGO is delayed compared to the actual reset.<br />

001: Enable - counter enable signal CNT_EN is trigger output.<br />

This mode is used to start both timers at the same time or to control a window in which a slave<br />

timer is enabled. The counter enable signal is generated by either the TIM_CEN control bit or<br />

the trigger input when configured in gated mode. When the counter enable signal is controlled<br />

by the trigger input there is a delay on TRGO except if the master/slave mode is selected (see<br />

the TIM_MSM bit description in TMRx_SMCR register).<br />

010: Update - update event is trigger output.<br />

This mode allows a master timer to be a prescaler for a slave timer.<br />

011: Compare Pulse.<br />

The trigger output sends a positive pulse when the TIM_CC1IF flag is to be set (even if it was<br />

already high) as soon as a capture or a compare match occurs.<br />

100: Compare - OC1REF signal is trigger output.<br />

101: Compare - OC2REF signal is trigger output.<br />

110: Compare - OC3REF signal is trigger output.<br />

111: Compare - OC4REF signal is trigger output.<br />

10.3.3 Timer x slave mode control register (TIMx_SMCR)<br />

Table 89.<br />

Address offset: 0xE008 (TIM1) and 0xF008 (TIM2)<br />

Reset value: 0x0000 0000<br />

Timer x slave mode control register (TIMx_SMCR)<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />

Reserved<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

TIM_E<br />

TP<br />

TIM_E<br />

CE<br />

TIM_M<br />

SM<br />

TIM_ETPS<br />

TIM_ETF<br />

TIM_TS<br />

Reserv<br />

TIM_SMS<br />

ed<br />

rw rw rw rw rw rw rw<br />

Bit 15 TIM_ETP: External Trigger Polarity<br />

This bit selects whether ETR or the inverse of ETR is used for trigger operations.<br />

0: ETR is non-inverted, active at a high level or rising edge.<br />

1: ETR is inverted, active at a low level or falling edge.<br />

Doc ID 018587 Rev 2 144/215

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!