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 6 TIM_TG: Trigger Generation<br />
0: Does nothing.<br />
1: Sets the TIM_TIF flag in the INT_TIMxFLAG register.<br />
Bit 4 TIM_CC4G: Capture/Compare 4 Generation<br />
0: Does nothing.<br />
1: If CC4 configured as output channel:<br />
The TIM_CC4IF flag is set.<br />
If CC4 configured as input channel:<br />
The TIM_CC4IF flag is set.<br />
The INT_TIMMISSCC4IF flag is set if the TIM_CC4IF flag was already high.<br />
The current value of the counter is captured in TMRx_CCR4 register.<br />
Bit 3 TIM_CC3G: Capture/Compare 3 Generation<br />
0: Does nothing.<br />
1: If CC3 configured as output channel:<br />
The TIM_CC3IF flag is set.<br />
If CC3 configured as input channel:<br />
The TIM_CC3IF flag is set.<br />
The INT_TIMMISSCC3IF flag is set if the TIM_CC3IF flag was already high.<br />
The current value of the counter is captured in TMRx_CCR3 register.<br />
Bit 2 TIM_CC2G: Capture/Compare 2 Generation<br />
0: Does nothing.<br />
1: If CC2 configured as output channel:<br />
The TIM_CC2IF flag is set.<br />
If CC2 configured as input channel:<br />
The TIM_CC2IF flag is set.<br />
The INT_TIMMISSCC2IF flag is set if the TIM_CC2IF flag was already high.<br />
The current value of the counter is captured in TMRx_CCR2 register.<br />
Bit 1 TIM_CC1G: Capture/Compare 1 Generation<br />
0: Does nothing.<br />
1: If CC1 configured as output channel:<br />
The TIM_CC1IF flag is set.<br />
If CC1 configured as input channel:<br />
The TIM_CC1IF flag is set.<br />
The INT_TIMMISSCC1IF flag is set if the TIM_CC1IF flag was already high.<br />
The current value of the counter is captured in TMRx_CCR1 register.<br />
Bit 0 TIM_UG: Update Generation<br />
0: Does nothing.<br />
1: Re-initializes the counter and generates an update of the registers. This also clears the<br />
prescaler counter but the prescaler ratio is not affected. The counter is cleared if center-aligned<br />
mode is selected or if TIM_DIR=0 (up-counting), otherwise it takes the auto-reload value<br />
(TMR1_ARR) if TIM_DIR=1 (down-counting).<br />
147/215 Doc ID 018587 Rev 2