Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>STM32W108C8</strong><br />
General-purpose timers<br />
Bits [15:12] TIM_IC4F: Input Capture 1 Filter. (Applies only if TIM_CC4S > 0)<br />
This defines the frequency used to sample the TI4 input, f Sampling , and the length of the digital<br />
filter applied to TI4. The digital filter requires N consecutive samples in the same state before<br />
being output.<br />
0000: f Sampling = PCLK, no filtering. 1000: f Sampling = PCLK/8, N=6.<br />
0001: f Sampling = PCLK, N=2. 1001: f Sampling = PCLK/8, N=8.<br />
0010: f Sampling = PCLK, N=4. 1010: f Sampling = PCLK/16, N=5.<br />
0011: f Sampling = PCLK, N=8. 1011: f Sampling = PCLK/16, N=6.<br />
0100: f Sampling = PCLK/2, N=6. 1100: f Sampling = PCLK/16, N=8.<br />
0101: f Sampling = PCLK/2, N=8. 1101: f Sampling = PCLK/32, N=5.<br />
0110: f Sampling = PCLK/4, N=6. 1110: f Sampling = PCLK/32, N=6.<br />
0111: f Sampling = PCLK/4, N=8. 1111: f Sampling = PCLK/32, N=8.<br />
Note: PCLK is 12 MHz when using the 24 MHz crystal oscillator, and 6 MHz using the 12 MHz<br />
RC oscillator.<br />
Bits [11:10] TIM_IC4PSC: Input Capture 1 Prescaler. (Applies only if TIM_CC4S > 0)<br />
00: No prescaling, capture each time an edge is detected on the capture input.<br />
01: Capture once every 2 events.<br />
10: Capture once every 4 events.<br />
11: Capture once every 6 events.<br />
Bits [9:8] TIM_CC4S: Capture / Compare 1 Selection<br />
This configures the channel as an output or an input. If an input, it selects the input source.<br />
00: Channel is an output.<br />
01: Channel is an input and is mapped to TI4.<br />
10: Channel is an input and is mapped to TI3.<br />
11: Channel is an input and is mapped to TRGI. This mode requires an internal trigger input<br />
selected by the TIM_TS bit in the TIMx_SMCR register.<br />
Note: TIM_CC2S may be written only when the channel is off (TIM_CC2E = 0 in the<br />
TIMx_CCER register).<br />
Bits [6:4] TIM_OC3M: Output Compare 1 Mode. (Applies only if TIM_CC3S = 0)<br />
See TIM_OC4M description above.<br />
Bit 3 TIM_OC3BE: Output Compare 3 Buffer Enable. (Applies only if TIM_CC3S = 0)<br />
See TIM_OC4BE description above.<br />
Bit 2 TIM_OC3FE: Output Compare 3 Fast Enable. (Applies only if TIM_CC3S = 0)<br />
See TIM_OC4FE description above.<br />
Bits [7:4] TIM_IC3F: Input Capture 1 Filter. (Applies only if TIM_CC3S > 0)<br />
See TIM_IC4F description above.<br />
Bits [3:2] TIM_IC3PSC: Input Capture 1 Prescaler. (Applies only if TIM_CC3S > 0)<br />
See TIM_IC4PSC description above.<br />
Doc ID 018587 Rev 2 152/215