Download Print this page

ST STM32F301 6 Series Reference Manual page 466

Advanced arm-based 32-bit mcus

Advertisement

General-purpose timer (TIM2)
Clock
Prescaler
Figure 193. Master/slave connection example with 1 channel only timers
Clock
Prescaler
Counter
Compare 1
Note:
The timers with one channel only (see
the OC1 output signal can be used to trigger some other timers (including timers described
in other sections of this document). Check the "TIMx internal trigger connection" table of any
TIMx_SMCR register on the device to identify which timers can be targeted as slave.
The OC1 signal pulse width must be programmed to be at least 2 clock cycles of the
destination timer, to make sure the slave timer detects the trigger.
For instance, if the destination's timer CK_INT clock is 4 times slower than the source timer,
the OC1 pulse width must be 8 clock cycles.
Using one timer as prescaler for another timer
For example, TIM1 can be configured to act as a prescaler for TIM2. Refer to
do this:
466/874
Figure 192. Master/Slave timer example
TIM1
MMS
UEV
Master
TRGO1
mode
control
Counter
TIM_mstr
Output
tim_oc1
control
TIM_CH1
TS
SMS
Slave
ITR1
mode
control
Input
trigger
selection
TS
SMS
Slave
tim_itr
mode
control
Input
trigger
selection
Figure
193) do not feature a master mode. However,
RM0366 Rev 5
TIM2
CK_PSC
Prescaler
TIM_slv
CK_PSC
Prescaler
RM0366
Counter
MS32694V1
Counter
MSv65225V1
Figure
192. To

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F301 6 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series