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 />
10.3.10 Timer x auto-reload register (TIMx_ARR)<br />
Table 96.<br />
Address offset: 0xE02C (TIM1) and 0xF02C (TIM2)<br />
Reset value: 0x0000 0000<br />
Timer x auto-reload register (TIMx_ARR)<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_ARR<br />
rw<br />
Bits [15:0] TIM_ARR: Auto-reload value<br />
TIM_ARR is the value to be loaded in the shadow auto-reload register.<br />
The auto-reload register is buffered. Writing or reading the auto-reload register accesses the<br />
buffer register. The content of the buffer register is transfered in the shadow register<br />
permanently or at each update event UEV, depending on the auto-reload buffer enable bit<br />
(TIM_ARBE) in TMRx_CR1 register. The update event is sent when the counter reaches the<br />
overflow point (or underflow point when down-counting) and if the TIM_UDIS bit equals 0 in the<br />
TMRx_CR1 register. It can also be generated by software. The counter is blocked while the<br />
auto-reload value is 0.<br />
10.3.11 Timer x capture/compare 1 register (TIMx_CCR1)<br />
Table 97.<br />
Address offset: 0xE034 (TIM1) and 0xF034 (TIM2)<br />
Reset value: 0x0000 0000<br />
Timer x capture/compare 1 register (TIMx_CCR1)<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_CCR<br />
rw<br />
Bits [15:0] TIM_CCR: Capture/compare value<br />
If the CC1 channel is configured as an output (TIM_CC1S = 0):<br />
TIM_CCR1 is the buffer value to be loaded in the actual capture/compare 1 register. It is loaded<br />
permanently if the preload feature is not selected in the TMR1_CCMR1 register (bit OC1PE).<br />
Otherwise the buffer value is copied to the shadow capture/compare 1 register when an update<br />
event occurs. The active capture/compare register contains the value to be compared to the<br />
counter TMR1_CNT and signaled on the OC1 output.<br />
If the CC1 channel is configured as an input (TIM_CC1S is not 0):<br />
CCR1 is the counter value transferred by the last input capture 1 event (IC1).<br />
155/215 Doc ID 018587 Rev 2