ST STM32F101 series Reference Manual page 446

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F101 series:
Table of Contents

Advertisement

RM0008
Input capture mode
Bits 15:12 IC2F: Input capture 2 filter
Bits 11:10 IC2PSC[1:0]: Input capture 2 prescaler
Bits 9:8 CC2S: Capture/compare 2 selection
Note: The CC2S bits are writable only when the channel is OFF (CC2E = 0 in TIMx_CCER).
Bits 7:4 IC1F: Input capture 1 filter
Bits 3:2 IC1PSC: Input capture 1 prescaler
Bits 1:0 CC1S: Capture/Compare 1 selection
Note: The CC1S bits are writable only when the channel is OFF (CC1E = 0 in TIMx_CCER).
This bitfield defines the direction of the channel (input/output) as well as the used input.
00: CC2 channel is configured as output
01: CC2 channel is configured as input, IC2 is mapped on TI2
10: CC2 channel is configured as input, IC2 is mapped on TI1
11: CC2 channel is configured as input, IC2 is mapped on TRC. This mode works only if an
internal trigger input is selected through the TS bit (TIMx_SMCR register)
This bitfield defines the frequency used to sample the TI1 input and the length of the digital
filter applied to TI1. The digital filter is made of an event counter in which N events are
needed to validate a transition on the output:
0000: No filter, sampling is done at f
0001: f
=f
SAMPLING
CK_INT
0010: f
=f
SAMPLING
CK_INT
0011: f
=f
SAMPLING
CK_INT
0100: f
=f
/2, N=61100: f
SAMPLING
DTS
0101: f
=f
/2, N=81101: f
SAMPLING
DTS
0110: f
=f
/4, N=61110: f
SAMPLING
DTS
0111: f
=f
/4, N=81111: f
SAMPLING
DTS
This bitfield defines the ratio of the prescaler acting on the CC1 input (IC1).
The prescaler is reset as soon as CC1E='0' (TIMx_CCER register).
00: no prescaler, capture is done each time an edge is detected on the capture input
01: capture is done once every 2 events
10: capture is done once every 4 events
11: capture is done once every 8 events
This bitfield defines the direction of the channel (input/output) as well as the used input.
00: CC1 channel is configured as output
01: CC1 channel is configured as input, IC1 is mapped on TI1
10: CC1 channel is configured as input, IC1 is mapped on TI2
11: CC1 channel is configured as input, IC1 is mapped on TRC. This mode is working only if
an internal trigger input is selected through TS bit (TIMx_SMCR register)
General-purpose timers (TIM9 to TIM14)
1000: f
DTS
SAMPLING
, N=21001: f
=f
SAMPLING
, N=41010: f
=f
SAMPLING
, N=8 1011: f
=f
SAMPLING
=f
SAMPLING
DTS
=f
SAMPLING
DTS
=f
SAMPLING
DTS
=f
SAMPLING
DTS
DocID13902 Rev 15
=f
/8, N=6
DTS
/8, N=8
DTS
/16, N=5
DTS
/16, N=6
DTS
/16, N=8
/32, N=5
/32, N=6
/32, N=8
446/1128
460

Advertisement

Table of Contents
loading

This manual is also suitable for:

Stm32f107 seriesStm32f102 seriesStm32f103 seriesStm32f105 seriesStm32f101 series

Table of Contents