| Electronic Components Datasheet Search |
|
AN1602 Datasheet(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1602 Datasheet(HTML) 8 Page - STMicroelectronics |
|
8 / 21 page ![]() 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 |
|
|
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 |
| 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 |