Capture/Compare Channels; Figure 170. Control Circuit In External Clock Mode 1; Figure 171. Capture/Compare Channel (Example: Channel 1 Input Stage) - ST STM32F100 Series Reference Manual

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

Advertisement

General-purpose timers (TIM15/16/17)
15.4.5

Capture/compare channels

Each Capture/Compare channel is built around a capture/compare register (including a
shadow register), a input stage for capture (with digital filter, multiplexing and prescaler) and
an output stage (with comparator and output control).
Figure 147
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 171. Capture/compare channel (example: channel 1 input stage)

The output stage generates an intermediate waveform which is then used for reference:
OCxRef (active high). The polarity acts at the end of the chain.
400/709

Figure 170. Control circuit in external clock mode 1

CNT_EN
Counter clock = CK_CNT = CK_PSC
Counter register
to
Figure 174
give an overview of one Capture/Compare channel.
TI1
TI1F
filter
f
downcounter
DTS
ICF[3:0]
TIMx_CCMR1
TI2
34
TIF
Write TIF=0
TI1F_Rising
0
TI1FP1
Edge
Detector
TI1F_Falling
1
CC1P
TIMx_CCER
TI2F_rising
0
(from channel 2)
TI2F_falling
1
(from channel 2)
RM0041 Rev 6
35
36
TI1F_ED
to the slave mode controller
01
TI2FP1
IC1
divider
10
/1, /2, /4, /8
TRC
11
(from slave mode
controller)
CC1S[1:0]
ICPS[1:0]
TIMx_CCMR1
RM0041
IC1PS
CC1E
TIMx_CCER

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F100 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents