EasyManuals Logo
Home>ST>Microcontrollers>STM32G4 Series

ST STM32G4 Series User Manual

ST STM32G4 Series
2126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1359 background imageLoading...
Page #1359 background image
RM0440 Rev 4 1359/2126
RM0440 General-purpose timers (TIM15/TIM16/TIM17)
1445
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 tim_ker_ck.
Figure 450 shows the behavior of the control circuit and the upcounter in normal mode,
without prescaler.
Figure 450. Control circuit in normal mode, internal clock divided by 1
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.
Figure 451. tim_ti2 external clock connection example
For example, to configure the upcounter to count in response to a rising edge on the tim_ti2
input, use the following procedure:
MSv62317V1
tim_ker_ck
tim_cnt_ck, tim_psc_ck
Counter register
CEN
UG
CNT_INIT
00
02
03
04 05
06 0732
33
34 35 36
31
01
MSv62365V1
External clock
mode 1
Internal clock
mode
tim_psc_ck
TIMx_SMCR
SMS[2:0]
tim_itrx
tim_ti1_ed
tim_ti1fp1
tim_ti2_fp2
TIMx_SMCR
TS[4:0]
tim_ti2_in0
0
1
TIMx_CCER
CC2P
TIMx_CCMR1
Edge
detector
tim_ti2f_rising
00110
000xx
00100
00101
Filter
ICF[3:0]
(internal clock)
tim_ti2
tim_trgi
tim_ker_ck
TIM_CH2
TIMx_TISEL
TI2SEL[3:0]
tim_ti2_in[1..15]
tim_ti2f_failing

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32G4 Series Specifications

General IconGeneral
BrandST
ModelSTM32G4 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals