MCBSTM32EXL Keil, MCBSTM32EXL Datasheet - Page 353

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
RM0008
As in the previous example, you can initialize both counters before starting counting.
Figure 143
mode instead of gated mode (SMS=110 in the TIM2_SMCR register).
Figure 143. Triggering timer 2 with Enable of timer 1
Using one timer as prescaler for another timer
For example, you can configure Timer 1 to act as a prescaler for Timer 2. Refer to
Figure 139
Starting 2 timers synchronously in response to an external trigger
In this example, we set the enable of timer 1 when its TI1 input rises, and the enable of
Timer 2 with the enable of Timer 1. Refer to
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). then it outputs a periodic signal on each counter
overflow.
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 external clock mode 1 (SMS=111 in TIM2_SMCR register).
Start Timer 2 by writing ‘1’ in the CEN bit (TIM2_CR1 register).
Start Timer 1 by writing ‘1’ in the CEN bit (TIM1_CR1 register).
TIMER1-CNT_INIT
TIMER2-CNT_INIT
TIMER 2-TIF
TIMER1-CNT
TIMER2-CNT
shows the behavior with the same configuration as in
for connections. To do this:
write CNT
TIMER2
CK_INT
75
CD
Doc ID 13902 Rev 9
00
Write TIF=0
00
Figure 139
E7
for connections. To ensure the
General-purpose timer (TIMx)
01
E8
Figure 142
E9
02
but in trigger
EA
353/995

Related parts for MCBSTM32EXL