Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN1602 Datasheet(PDF) 8 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) 8 Page - STMicroelectronics

Back Button 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 AN1602 Datasheet HTML 11Page - STMicroelectronics AN1602 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 21 page
background image
8/21
16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
1.2 USING ST7263B
This section describe how to use the ST7263B 16-bit timer to perform 16-bit timing
operations such as period and pulse length measurement.
1.2.1 The Input Capture operation
In the case of the ST7263B both ICAP1 and ICAP2 are associated with 16-bit registers
(TIC1HR, TIC1LR, TIC2HR and TIC2LR). These registers are used to hold the corresponding
16-bit timer value at each valid input capture (see Figure 8).
Figure 8. Input Capture Registers
1.2.2 Pulse Length measurement
1.2.2.1 Measurement principles
To measure pulse length, two input captures are used together. The input capture1 pin
(ICAP1) is configured to detect rising edge and the input capture2 pin (ICAP2) is configured to
detect falling edge. The ICAP1 & ICAP2 pins are connected together and on each input cap-
ture: rising edge or falling edge two 16-bit variables are used to hold the 16-bit timer value.
Figure 9. Input Capture sequence
Whenever a valid rising edge is captured, the timer counter value is automatically stored in the
TIC1HR & TIC1LR registers. These two registers act together as one 16-bit register that holds
the counter value to be transferred into PulseStart (PulseStartHR & PulseStartLR).Whenever
a valid falling edge is captured, the timer counter value is automatically stored in the TIC2HR
ARTIC1(16-bit Register)
TIC1HR (MSB)
TIC1LR (LSB)
ARTIC2(16-bit Register)
TIC2HR (MSB)
TIC2LR (LSB)
input capture
No
YES
ICAP1
ICAP2
- Configure Time clock frequency
- Select edge sensitivity edge on ICAP
- Store the TIC1HR in PulseStartHR
- Store the TIC1LR in PulseStartLR
ICAP1 or ICAP2
- Store the TIC2HR in PulseEndHR
- Store the TIC2LR in PulseEndLR



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