数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4013 数据表(PDF) 13 Page - STMicroelectronics

部件名 AN4013
功能描述  The purpose of this document
PDF  37 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4013 数据表(HTML) 13 Page - STMicroelectronics

Back Button AN4013 Datasheet HTML 9Page - STMicroelectronics AN4013 Datasheet HTML 10Page - STMicroelectronics AN4013 Datasheet HTML 11Page - STMicroelectronics AN4013 Datasheet HTML 12Page - STMicroelectronics AN4013 Datasheet HTML 13Page - STMicroelectronics AN4013 Datasheet HTML 14Page - STMicroelectronics AN4013 Datasheet HTML 15Page - STMicroelectronics AN4013 Datasheet HTML 16Page - STMicroelectronics AN4013 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 37 page
background image
DocID022500 Rev 4
13/37
AN4013
General-purpose timer modes
36
Particular case
To facilitate the input capture measurement, the timer counter is reset after each rising edge
detected on the timer input channel by:
selecting TIxFPx as the input trigger by setting the TS bits in the SMCR register
selecting the reset mode as the slave mode by configuring the SMS bits in the SMCR
register
Using this configuration, when an edge is detected, the counter is reset and the period of the
external signal is automatically given by the value on the CCRx register. This method is
used only with channel 1 or channel 2.
In this case, the input capture prescaler (ICPSC) is not considered in the period
computation.
The period is computed as follows:
Period = CCRx /(TIMx_CLK *(PSC+1)* polarity_index(1))
The polarity index is 1 if rising or falling edge is used, and 2 if both edges are used.
For more details on using the timer in this mode, refer to the examples provided in the
STM32xx standard peripheral libraries in the /Project/STM32xx_StdPeriph_Examples/
TIM/InputCapture folder.
STM32Cube F3 firmware package includes examples in the following directories:
Projects\STM32F3-Discovery\Examples\TIM\TIM_InputCapture,
Projects\STM32373C_EVAL\Examples\TIMTIM_InputCapture,
Projects\STM32303E_EVAL\Examples\TIM\TIM_InputCapture and
Projects\STM32303C_EVAL\Examples\TIM\TIM_InputCapture
2.4
Timer output compare mode
To control an output waveform, or to indicate when a period of time has elapsed, the timer is
used in one of the following output compare modes. The main difference between these
modes is the output signal waveform.
Output compare timing: The comparison between the output compare register CCRx
and the counter CNT has no effect on the outputs. This mode is used to generate a
timing base.
Output compare active: Set the channel output to active level on match. The OCxRef
signal is forced high when the counter (CNT) matches the capture/compare register
(CCRx).
Output compare inactive: Set channel to inactive level on match. The OCxRef signal
is forced low when the counter (CNT) matches the capture/compare register (CCRx).
Output compare toggle: OCxRef toggles when the counter (CNT) matches the
capture/compare register (CCRx).
Output compare forced active/inactive: OCREF is forced high (active mode) or low
(inactive mode) independently from counter value.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com