전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN1602 데이터시트(PDF) 3 Page - STMicroelectronics

부품명 AN1602
상세설명  16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1602 데이터시트(HTML) 3 Page - STMicroelectronics

  AN1602 Datasheet HTML 1Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 3 / 21 page
background image
3/21
16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
Ld TmpTBU1 , A
;into TmpTBU1
Ld A , ARTCAR
; Load the ART counter Value
Ld TmpART1 , A
;into TmpART1
Ld A , TBUCV
; Load the TBU counter value into
Ld TmpTBU2 , A
;TmpTBU2
;----------------------------------------;
Ld A , TmpART1
; Compare ART & ICR
Cp A , ARTICR2
; If ART > ICR then Case 2
jrpl Case2
;
Ld A , TmpTBU2
; Case 1 : TBU = TBU2 - 1
Dec A
;
jra Next2
;
.Case2
Ld A , TmpTBU1
; Case TBU = TBU1
.Next2
Ld PulseEndHR , A
;load TBUCV into PulseEndHR
Ld A , ARTICR2
;Load The ART Inp Capt 2 register
Ld PulseEndLR , A
;Value into PulseEndLR
Ld A , ARTICCSR
;Clear The input capture interrupt
Iret
;Exit From Interrupt
1.1.2 Pulse Length measurement
1.1.2.1 Measurement Principles
As first example in this application note, we will try to measure the pulse length of an external
signal applied to the input capture pins.
Figure 3. Pulse Length Measurement
To perform this operation, two input captures are used together and they are configured as fol-
lows:
– Input capture1 pin (ARTIC1) configured to detect rising edges
– The input capture2 pin (ARTIC2) configured to detect falling edges
The ARTIC1 & ARTIC2 are connected together (Figure 4).
Two 16-bits variables are used to hold the 16-bits timer values on each valid input capture
edge (PulseStart for the rising edge and PulseEnd for the edge).The pulse length value can be
deduced later using a 16-bits substruction between PulseStart and PulseEnd
Pulse Length



Html Pages

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


데이터시트 다운로드

Go To PDF Page


링크 URL



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