STMicroelectronics STM32F05 series Reference Manual page 341

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0091
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
This bit-field 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 is working only if
an internal trigger input is selected through TS bit (TIMx_SMCR register)
Note: CC2S bits are writable only when the channel is OFF (CC2E = 0 in TIMx_CCER).
Bits 7:4 IC1F: Input capture 1 filter
This bit-field defines the frequency used to sample 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
0010: f
0011: f
0100: f
0101: f
0110: f
0111: f
Note: In the current silicon revision, f
Bits 3:2 IC1PSC: Input capture 1 prescaler
This bit-field defines the ratio of the prescaler acting on 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
Bits 1:0 CC1S: Capture/Compare 1 selection
This bit-field 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)
Note: CC1S bits are writable only when the channel is OFF (CC1E = 0 in TIMx_CCER).
=f
, N=2
SAMPLING
CK_INT
=f
, N=4
SAMPLING
CK_INT
=f
, N=8
SAMPLING
CK_INT
=f
/2, N=6
SAMPLING
DTS
=f
/2, N=8
SAMPLING
DTS
=f
/4, N=6
SAMPLING
DTS
=f
/4, N=8
SAMPLING
DTS
ICxF[3:0]= 1, 2 or 3.
Doc ID 018940 Rev 1
General-purpose timers (TIM2 and TIM3)
1000: f
DTS
SAMPLING
1001: f
SAMPLING
1010: f
SAMPLING
1011: f
SAMPLING
1100: f
SAMPLING
1101: f
SAMPLING
1110: f
SAMPLING
1111: f
SAMPLING
is replaced in the formula by CK_INT when
DTS
=f
/8, N=6
DTS
=f
/8, N=8
DTS
=f
/16, N=5
DTS
=f
/16, N=6
DTS
=f
/16, N=8
DTS
=f
/32, N=5
DTS
=f
/32, N=6
DTS
=f
/32, N=8
DTS
341/742

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F05 series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents