EasyManuals Logo

ST STM32L4x6 User Manual

ST STM32L4x6
1693 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 #899 background imageLoading...
Page #899 background image
DocID024597 Rev 3 899/1693
RM0351 General-purpose timers (TIM2/TIM3/TIM4/TIM5)
929
1. Configure TIM3 master mode to send its Update Event (UEV) as trigger output
(MMS=010 in the TIM3_CR2 register).
2. Configure the TIM3 period (TIM3_ARR registers).
3. Configure TIM2 to get the input trigger from TIM3 (TS=010 in the TIM2_SMCR
register).
4. Configure TIM2 in trigger mode (SMS=110 in TIM2_SMCR register).
5. Start TIM3 by writing ‘1 in the CEN bit (TIM3_CR1 register).
Figure 295. Triggering TIM2 with update of TIM3
As in the previous example, you can initialize both counters before starting counting.
Figure 296 shows the behavior with the same configuration as in Figure 295 but in trigger
mode instead of gated mode (SMS=110 in the TIM2_SMCR register).
Figure 296. Triggering TIM2 with Enable of TIM3
Starting 2 timers synchronously in response to an external trigger
In this example, we set the enable of TIM3 when its TI1 input rises, and the enable of TIM2
with the enable of TIM3. Refer to Figure 292 for connections. To ensure the counters are
069
&.B,17
7,0&17
)'7,0&17
:ULWH7,) 
7,0&(1 &17B(1
7,07,)
)( ))   
  
7,08(9
069
&.B,17
7,0&17
7,0&17B,1,7
:ULWH7,) 
7,0&(1 &17B(1
7,07,)
(
 
(

&'  ( ($
7,0&17
7,0&17B,1,7
7,0
ZULWH&17

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32L4x6 Specifications

General IconGeneral
BrandST
ModelSTM32L4x6
CategoryMicrocontrollers
LanguageEnglish

Related product manuals