EasyManuals Logo

ST STM32F446 Series User Manual

ST STM32F446 Series
1328 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 #535 background imageLoading...
Page #535 background image
RM0390 Rev 4 535/1328
RM0390 General-purpose timers (TIM2 to TIM5)
581
Figure 180. Control circuit in external clock mode 1
External clock source mode 2
This mode is selected by writing ECE=1 in the TIMx_SMCR register.
The counter can count at each rising or falling edge on the external trigger input ETR.
Figure 181 gives an overview of the external trigger input block.
Figure 181. External trigger input block
For example, to configure the upcounter to count each 2 rising edges on ETR, use the
following procedure:
1. As no filter is needed in this example, write ETF[3:0]=0000 in the TIMx_SMCR register.
2. Set the prescaler by writing ETPS[1:0]=01 in the TIMx_SMCR register
3. Select rising edge detection on the ETR pin by writing ETP=0 in the TIMx_SMCR
register
4. Enable external clock mode 2 by writing ECE=1 in the TIMx_SMCR register.
5. Enable the counter by writing CEN=1 in the TIMx_CR1 register.
The counter counts once each 2 ETR rising edges.
&RXQWHUFORFN &.B&17 &.B36&
&RXQWHUUHJLVWHU
 
7,
&17B(1
7,)
:ULWH7,) 
069
069
75*,
&.B,17
7,0[B60&5
606>@
LQWHUQDOFORFN
7,) RU
7,) RU
RU
(QFRGHU
PRGH
(75)
(&(
7,0[B60&5
(73
(75SLQ
(75
'LYLGHU

)LOWHU
GRZQFRXQWHU
&.B,17
(753
7,0[B60&5
(736>@
7,0[B60&5
(7)>@
([WHUQDOFORFN
PRGH
([WHUQDOFORFN
PRGH
,QWHUQDOFORFN
PRGH
&.B36&

Table of Contents

Other manuals for ST STM32F446 Series

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F446 Series Specifications

General IconGeneral
BrandST
ModelSTM32F446 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals