MCBSTM32EXL Keil, MCBSTM32EXL Datasheet - Page 352

no-image

MCBSTM32EXL

Manufacturer Part Number
MCBSTM32EXL
Description
BOARD EVALUATION FOR STM32F103ZE
Manufacturer
Keil
Datasheets

Specifications of MCBSTM32EXL

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
General-purpose timer (TIMx)
352/995
Figure 141. Gating timer 2 with Enable of timer 1
Using one timer to start another timer
In this example, we set the enable of Timer 2 with the update event of Timer 1. Refer to
Figure 139
non-zero) on the divided internal clock as soon as the update event is generated by Timer 1.
When Timer 2 receives the trigger signal its CEN bit is automatically set and the counter
counts until we write ‘0’ to the CEN bit in the TIM2_CR1 register. Both counter clock
frequencies are divided by 3 by the prescaler compared to CK_INT (f
Figure 142. Triggering timer 2 with update of timer 1
TIMER2-CEN=CNT_EN
TIMER1-CEN=CNT_EN
Configure Timer 1 master mode to send its Update Event (UEV) as trigger output
(MMS=010 in the TIM1_CR2 register).
Configure the Timer 1 period (TIM1_ARR registers).
Configure Timer 2 to get the input trigger from Timer 1 (TS=000 in the TIM2_SMCR
register).
Configure Timer 2 in trigger mode (SMS=110 in TIM2_SMCR register).
Start Timer 1 by writing ‘1’ in the CEN bit (TIM1_CR1 register).
TIMER1-CNT_INIT
TIMER2-CNT_INIT
TIMER1-UEV
TIMER1-CNT
TIMER2-CNT
TIMER 2-TIF
TIMER1-CNT
TIMER2-CNT
TIMER 2-TIF
for connections. Timer 2 starts counting from its current value (which can be
write CNT
CK_INT
TIMER2
CK_INT
75
AB
FD
Doc ID 13902 Rev 9
FE
00
45
Write TIF=0
00
FF
Write TIF=0
E7
00
01
E8
46
01
47
CK_CNT
02
02
E9
48
= f
CK_INT
RM0008
/3).

Related parts for MCBSTM32EXL