Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1602 Datasheet(PDF) 6 Page - STMicroelectronics

Part # AN1602
Description  16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1602 Datasheet(HTML) 6 Page - STMicroelectronics

Back Button AN1602 Datasheet HTML 2Page - STMicroelectronics AN1602 Datasheet HTML 3Page - STMicroelectronics AN1602 Datasheet HTML 4Page - STMicroelectronics AN1602 Datasheet HTML 5Page - STMicroelectronics AN1602 Datasheet HTML 6Page - STMicroelectronics AN1602 Datasheet HTML 7Page - STMicroelectronics AN1602 Datasheet HTML 8Page - STMicroelectronics AN1602 Datasheet HTML 9Page - STMicroelectronics AN1602 Datasheet HTML 10Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 6 / 21 page
background image
6/21
16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
Figure 6. Frequency Measurement
In this example we will also use two 16-bit variables to hold the 16-bit timer value each time
an input capture occurs (StartPeriod: for the first rising edge and EndPeriod for the second
falling edge). In addition to these two variables, we will need an extra variable (FirstEdge)
which is used to indicate the first rising edge or the second edge.
– FisrtEdge =0: First Rising edge (PeriodStart)
– FisrtEdge =1: Second Rising edge (PeriodEnd)
In this case we will need only one input capture pin (ARTIC1) configured to detect only rising
edge.
The capture steps are shown in Figure 7. After selecting the timer frequency and the input
capture edge we wait for an input capture interrupt. Depending on the FirstEdge value the
input capture parameters (ICxR and the TBU) are transferred into PeriodStart or PeriodEnd.
Figure 7. Input Capture Sequence
Frequency= 1 / Period
input capture
No
YES
0
1
- Configure Time clock frequency
- Select sensitive edge on ICAP pins
- Cascade PWMART & TBU, FirstEdge = 0
- Store the TBU (compensated value)
in PeriodStartHR
- Store the ICxR in PeriodStartLR
- Store the TBU (compensated value)
in PeriodEndHR
- Store the ICxR Value in PeriodEndLR
First Edge =?



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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