Input Capture Mode; Figure 179. Capture/Compare Channel 1 Main Circuit; Figure 180. Output Stage Of Capture/Compare Channel (Channel 1) - ST STM32F40 Series Reference Manual

Hide thumbs Also See for STM32F40 Series:
Table of Contents

Advertisement

RM0090

Figure 179. Capture/compare channel 1 main circuit

read CCR1H
read CCR1L
CC1S[1]
CC1S[0]
IC1PS
CC1E
CC1G
TIM1_EGR

Figure 180. Output stage of capture/compare channel (channel 1)

CNT > CCR1
CNT = CCR1
The capture/compare block is made of one preload register and one shadow register. Write
and read always access the preload register.
In capture mode, captures are actually done in the shadow register, which is copied into the
preload register.
In compare mode, the content of the preload register is copied into the shadow register
which is compared to the counter.
16.4.5

Input capture mode

In Input capture mode, the Capture/Compare Registers (TIMx_CCRx) are used to latch the
value of the counter after a transition detected by the corresponding ICx signal. When a
capture occurs, the corresponding CCXIF flag (TIMx_SR register) is set and an interrupt or
a DMA request can be sent if they are enabled. If a capture occurs while the CCxIF flag was
already high, then the over-capture flag CCxOF (TIMx_SR register) is set. CCxIF can be
S
read_in_progress
Capture/compare preload register
R
capture_transfer
input
mode
Capture/compare shadow register
OC1_REF
Output mode
controller
OC1M[2:0]
TIMx_CCMR1
Doc ID 018909 Rev 4
General-purpose timers (TIM9 to TIM14)
APB Bus
MCU-peripheral interface
8
8
compare_transfer
capture
Counter
To the master mode
controller
write CCR1H
S
write_in_progress
write CCR1L
R
CC1S[1]
output
mode
CC1S[0]
UEV
(from time
comparator
base unit)
CNT>CCR1
CNT=CCR1
0
Output
enable
circuit
1
CC1P
TIMx_CCER
CC1E TIMx_CCER
OC1PE
OC1PE
TIM1_CCMR1
OC1
ai17720
492/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