General-purpose timers (TIM15/TIM16/TIM17)
only by software (except UG which remains cleared automatically). As soon as the CEN bit
is written to 1, the prescaler is clocked by the internal clock CK_INT.
Figure 209
without prescaler.
Figure 209. Control circuit in normal mode, internal clock divided by 1
Counter initialization (internal)
Counter clock = CK_CNT = CK_PSC
Counter register
External clock source mode 1
This mode is selected when SMS=111 in the TIMx_SMCR register. The counter can count at
each rising or falling edge on a selected input.
TI2
Filter
ICF[3:0]
TIMx_CCMR1
508/874
shows the behavior of the control circuit and the upcounter in normal mode,
Internal clock
CEN=CNT_EN
UG
31
Figure 210. TI2 external clock connection example
TI2F_Rising
Edge
detector
TI2F_Falling
CC2P
TIMx_CCER
3 2
33
34
35 36
TIMx_SMCR
TS[2:0]
ITRx
0xx
TI1_ED
100
TI1FP1
101
0
TI2FP2
110
1
(internal clock)
RM0366 Rev 5
00
01
02
03 04 05
TRGI
External clock
mode 1
CK_INT
Internal clock
mode
SMS[2:0]
TIMx_SMCR
RM0366
06
07
MSv31085V3
CK_PSC
MS31086V2
Need help?
Do you have a question about the STM32F301 6 Series and is the answer not in the manual?