01.06.2014 Views

STM32W108C8

STM32W108C8

STM32W108C8

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

General-purpose timers<br />

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

Bit 1 TIM_UDIS: Update Disable<br />

0: An update event is generated as soon as a counter overflow occurs, a software update is<br />

generated, or a hardware reset is generated by the slave mode controller. Shadow registers are<br />

then loaded with their buffer register values.<br />

1: An update event is not generated and shadow registers keep their value (TIMx_ARR,<br />

TIMx_PSC, TIMx_CCRy). The counter and the prescaler are reinitialized if the TIM_UG bit is<br />

set or if a hardware reset is received from the slave mode controller.<br />

Bit 0 TIM_CEN: Counter Enable<br />

0: Counter disabled.<br />

1: Counter enabled.<br />

Note: External clock, gated mode and encoder mode can work only if the TIM_CEN bit has<br />

been previously set by software. Trigger mode sets the TIM_CEN bit automatically<br />

through hardware.<br />

10.3.2 Timer x control register 2 (TIMx_CR2)<br />

Address offset: 0xE004 (TIM1) and 0xF004 (TIM2)<br />

Reset value: 0x0000 0000<br />

Table 88.<br />

Timer x control register 2 (TIMx_CR2)<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 />

Reserved<br />

TIM_TI<br />

1S<br />

TIM_MMS<br />

Reserved<br />

rw<br />

rw<br />

Bit 7 TIM_TI1S: TI1 Selection<br />

0: TI1M (input of the digital filter) is connected to TI1 input.<br />

1: TI1M is connected to the TI_HALL inputs (XOR combination).<br />

143/215 Doc ID 018587 Rev 2

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

Saved successfully!

Ooh no, something went wrong!