General-purpose timers (TIM2 to TIM5)
The delay between the rising edge on ETR and the actual clock of the counter is due to the
resynchronization circuit on the ETRP signal.
Counter clock = CK_INT =CK_PSC
13.3.4
Capture/compare channels
Each Capture/Compare channel (see
(including a shadow register), an input stage for capture (with digital filter, multiplexing and
prescaler) and an output stage (with comparator and output control).
The input stage samples the corresponding TIx input to generate a filtered signal TIxF.
Then, an edge detector with polarity selection generates a signal (TIxFPx) which can be
used as trigger input by the slave mode controller or as the capture command. It is
prescaled before the capture register (ICxPS).
Figure 113. Capture/compare channel (example: channel 1 input stage)
TI1
Filter
f
downcounter
DTS
ICF[3:0]
TIMx_CCMR1
300/709
Figure 112. Control circuit in external clock mode 2
CK_INT
CNT_EN
ETR
ETRP
ETRF
Counter register
TI1F_Rising
TI1F
Edge
TI1F_Falling
detector
CC1P/CC1NP
(from channel 2)
(from channel 2)
34
Figure
113) is built around a capture/compare register
TI1F_ED
0
TI1FP1
1
TI2FP1
TRC
TIMx_CCER
(from slave mode
controller)
TI2F_Rising
0
TI2F_Falling
1
RM0041 Rev 6
35
To the slave mode controller
01
IC1
Divider
10
/1, /2, /4, /8
11
CC1S[1:0]
ICPS[1:0]
TIMx_CCER
TIMx_CCMR1
RM0041
36
MS37362V1
IC1PS
CC1E
MS33115V1
Need help?
Do you have a question about the STM32F100 Series and is the answer not in the manual?
Questions and answers