công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN1602 bảng dữ liệu(PDF) 2 Page - STMicroelectronics

tên linh kiện AN1602
Giải thích chi tiết về linh kiện  16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
PDF  21 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1602 bảng dữ liệu(HTML) 2 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
 2 / 21 page
background image
2/21
16-BIT TIMING OPERATIONS USING ST7262 OR ST7263B MCUs
1.1.1.2 Delay Compensation method
The software delay introduced by the interrupt routine should be taken into account otherwise
the measurement value can be corrupted. This happens if the ART counter rolls over from FFh
to 00h while software is storing the TBUCV value after a valid input capture interrupt. In this
case, the TBUCV is incremented and a wrong value occurs in the 8th bit of the 16-bit input
capture value.
The delay compensation method is described in the following flowchart (Figure 2).
The first step consists of transferring both TBU and ART values into temporary variables
(TmpTBU1, TmpART, TmpTBU2) to be used later on. Then in the second step we compare
TmpART and ICxR. There are two cases to be considered:
– TmpART >= ICRx: This means that the ART counter value was incremented by a few cycles
but has not yet reached the maximum value (FFh). In this case we use TmpTBU1.
– TmpART < ICRx:This means that the ART counter was incremented beyond the maximum
value and has been reset. This means we should decrement TmpTBU2 once to get the right
value of TBUCV.
Figure 2. TBU Delay Compensation flowchart
1.1.1.3 Example of an interrupt capture routine
The input capture interrupt routine given below can be used to get the precise value of the
input capture interrupt instant on ICAP1 pin. It can be used to detect a rising or falling edge de-
pending on the configured edge in ARTICSR.
.Inp_Cap_Routine
;----------------------------------------;
Ld A , TBUCV
;Load the TBU counter value
Interrupt From ICAP1 or ICAP2
TmpART >= ICxR
Read & Store the TBUCV in TmpTBU1
Read & Store the ARTCAR inTmpART
Read & Store the TBUCV in TmpTBU2
TBUok= TmpTBU1
TBUok= TmpTBU2 - 1
Yes
No
2



Html Pages

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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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