| 전자부품 데이터시트 검색엔진 |
|
AN1602 데이터시트(PDF) 7 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1602 데이터시트(HTML) 7 Page - STMicroelectronics |
|
7 / 21 page ![]() 7/21 16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs 1.1.3.2 Example of input capture interrupt routine .Inp_Cap_Routine ; Ld A , ARTICR1 ; Ld CurrentICAP , A ; ;------------------------------------------; Ld A, ARTICCSR ; ;------------------------------------------; Ld A , TBUCV ;Load the TBU counter value 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 ; ;------------------------------------------; Btjf FirstEdge,#0,FirstRisingEdge ;TmpTBU2 ;------------------------------------------; ;.SecondRisingEdge ; Ld A , TmpART1 ;Compare ART & ICR Cp A , CurrentICAP ;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 PeriodEndHR , A ;load TBUCV into PeriodEndHR Ld A , CurrentICAP ;Load The ART Inp Capt 1 register Ld PeriodEndLR , A ;Value into PeriodEndLR Clr FirstEdge ; Iret ; .FirstRisingEdge ; Ld A , TmpART1 ;Compare ART & ICR Cp A , CurrentICAP ; jrpl Case1 ; Ld A , TmpTBU2 ;Case : TBU = TBU2 - 1 Dec A ; jra Next1 ; .Case1 Ld A , TmpTBU1 ; Case TBU = TBU1 .Next1 Ld PeriodStartHR , A ;load TBUCV into PulseEndHR Ld A , CurrentICAP ;Load The ART Inp Capt 1 register Ld PeriodStartLR , A ;Value into PulseEndLR Inc FirstEdge ; Iret ; |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |