EasyManuals Logo

ST ST32M103 Series User Manual

ST ST32M103 Series
519 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 #250 background imageLoading...
Page #250 background image
General purpose timer (TIMx) UM0306
250/519
Slave mode: Trigger mode
The counter can start in response to an event on a selected input.
In the following example, the up-counter starts in response to a rising edge on TI2 input:
Configure the channel 2 to detect rising edges on TI2. Configure the input filter duration
(in this example, we don’t need any filter, so we keep IC2F=0000). The capture
prescaler is not used for triggering, so you don’t need to configure it. CC2S bits are
selecting the input capture source only, CC2s=01 in TIMx_CCMR1 register. Write
CC2P=1 in TIMx_CCER register to validate the polarity (and detect low level only).
Configure the timer in trigger mode by writing SMS=110 in TIMx_SMCR register. Select
TI2 as the input source by writing TS=110 in TIMx_SMCR register.
When a rising edge occurs on TI2, the counter starts counting on the internal clock and the
TIF flag is set.
The delay between the rising edge on TI2 and the actual start of the counter is due to the
resynchronization circuit on TI2 input.
Figure 110. Control circuit in trigger mode
COUNTER CLOCK = ck_cnt = ck_psc
COUNTER REGISTER
35 36 37 3834
TI2
cnt_en
TIF
www.BDTIC.com/ST

Table of Contents

Other manuals for ST ST32M103 Series

Questions and Answers:

Question and Answer IconNeed help?

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

ST ST32M103 Series Specifications

General IconGeneral
BrandST
ModelST32M103 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals