MCBSTM32EXL Keil, MCBSTM32EXL Datasheet - Page 290
MCBSTM32EXL
Manufacturer Part Number
MCBSTM32EXL
Description
BOARD EVALUATION FOR STM32F103ZE
Manufacturer
Keil
Specifications of MCBSTM32EXL
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 290 of 995
- Download datasheet (9Mb)
Advanced-control timers (TIM1&TIM8)
13.3.19
290/995
TIMx and external trigger synchronization
The TIMx timer can be synchronized with an external trigger in several modes: Reset mode,
Gated mode and Trigger mode.
Slave mode: Reset mode
The counter and its prescaler can be reinitialized in response to an event on a trigger input.
Moreover, if the URS bit from the TIMx_CR1 register is low, an update event UEV is
generated. Then all the preloaded registers (TIMx_ARR, TIMx_CCRx) are updated.
In the following example, the upcounter is cleared in response to a rising edge on TI1 input:
●
●
●
The counter starts counting on the internal clock, then behaves normally until TI1 rising
edge. When TI1 rises, the counter is cleared and restarts from 0. In the meantime, the
trigger flag is set (TIF bit in the TIMx_SR register) and an interrupt request, or a DMA
request can be sent if enabled (depending on the TIE and TDE bits in TIMx_DIER register).
The following figure shows this behavior when the auto-reload register TIMx_ARR=0x36.
The delay between the rising edge on TI1 and the actual reset of the counter is due to the
resynchronization circuit on TI1 input.
Figure 95. Control circuit in reset mode
Configure the channel 1 to detect rising edges on TI1. Configure the input filter duration
(in this example, we don’t need any filter, so we keep IC1F=0000). The capture
prescaler is not used for triggering, so you don’t need to configure it. The CC1S bits
select the input capture source only, CC1S = 01 in the TIMx_CCMR1 register. Write
CC1P=0 in TIMx_CCER register to validate the polarity (and detect rising edges only).
Configure the timer in reset mode by writing SMS=100 in TIMx_SMCR register. Select
TI1 as the input source by writing TS=101 in TIMx_SMCR register.
Start the counter by writing CEN=1 in the TIMx_CR1 register.
Counter clock = ck_cnt = ck_psc
Counter register
TIF
TI1
UG
Doc ID 13902 Rev 9
30
31
32 33 34 35 36
00
01 02 03 00 01 02 03
RM0008
Related parts for MCBSTM32EXL
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
KEIL C-COMPILER (US ONLY)
Manufacturer:
Silicon Laboratories Inc
Part Number:
Description:
KEIL C-COMPILER INTERNATIONAL
Manufacturer:
Silicon Laboratories Inc
Part Number:
Description:
KEIL C-COMPILER US VERSION
Manufacturer:
Silicon Laboratories Inc
Part Number:
Description:
DEV KIT FOR STM32
Manufacturer:
STMicroelectronics
Datasheet:
Part Number:
Description:
KIT STARTER FOR STM32
Manufacturer:
STMicroelectronics
Datasheet:
Part Number:
Description:
KIT STARTER FOR STM32F10XE MCU
Manufacturer:
STMicroelectronics
Datasheet:
Part Number:
Description:
KIT STARTER KEIL FOR STR910
Manufacturer:
STMicroelectronics
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories KEIL ULINK PRO 5V ADAPTOR KIT
Manufacturer:
Keil Software
Part Number:
Description:
Development Boards & Kits - ARM KEIL NUVOTON EVAL BD CORTEX-M0 + ULINK-ME
Manufacturer:
Keil Tools
Datasheet:
Part Number:
Description:
Development Boards & Kits - ARM KEIL NUVOTON EVAL BD CORTEX-M0
Manufacturer:
Keil Tools
Datasheet:
Part Number:
Description:
BOARD EVAL FOR LPC213X ARM MCU
Manufacturer:
NXP Semiconductors
Datasheet:
Part Number:
Description:
K60N512 Keil Tower Kit
Manufacturer:
Freescale Semiconductor
Datasheet: