Capture/Compare Channels; Figure 97. Capture/Compare Channel (Example: Channel 1 Input Stage); Figure 98. Capture/Compare Channel 1 Main Circuit - ST STM32F40 Series Reference Manual

Hide thumbs Also See for STM32F40 Series:
Table of Contents

Advertisement

RM0090
14.3.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 97
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 97. 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.

Figure 98. Capture/compare channel 1 main circuit

read CCR1H
read CCR1L
CC1S[1]
CC1S[0]
IC1PS
CC1E
CC1G
TIM1_EGR
to
Figure 100
give an overview of one Capture/Compare channel.
TI1
TI1F
filter
f
downcounter
DTS
ICF[3:0]
TIMx_CCMR1
S
read_in_progress
Capture/compare preload register
R
capture_transfer
input
mode
Capture/compare shadow register
Doc ID 018909 Rev 4
Advanced-control timers (TIM1&TIM8)
TI1F_Rising
0
TI1FP1
Edge
Detector
TI1F_Falling
1
CC1P/CC1NP
TIMx_CCER
TI2F_rising
0
(from channel 2)
TI2F_falling
1
(from channel 2)
APB Bus
MCU-peripheral interface
8
8
compare_transfer
capture
Counter
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
write CCR1H
S
write_in_progress
write CCR1L
R
output
mode
UEV
(from time
comparator
base unit)
CNT>CCR1
CNT=CCR1
IC1PS
CC1E
TIMx_CCER
CC1S[1]
CC1S[0]
OC1PE
OC1PE
TIM1_CCMR1
370/1422

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Stm32f41 seriesStm32f42 seriesStm32f43 seriesRm0090

Table of Contents

Save PDF