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 />

Figure 17. Counter timing diagram, update event when TIM_ARBE = 0<br />

(TIMx_ARR not buffered)<br />

Figure 18.<br />

Counter timing diagram, update event when TIM_ARBE = 1 (TIMx_ARR<br />

buffered)<br />

Down-counting mode<br />

In down-counting mode, the counter counts from the auto-reload value (contents of the<br />

TIMx_ARR register) down to 0, then restarts from the auto-reload value and generates a<br />

counter underflow event.<br />

An update event can be generated at each counter underflow, by setting the TIM_UG bit in<br />

the TIMx_EGR register, or by using the slave mode controller). Software can disable the<br />

update event by setting the TIM_UDIS bit in the TIMx_CR1 register, to avoid updating the<br />

shadow registers while writing new values in the buffer registers. No update event occurs<br />

until the TIM_UDIS bit is written to 0. However, the counter restarts from the current auto-<br />

Doc ID 018587 Rev 2 114/215

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

Saved successfully!

Ooh no, something went wrong!