| Datenblatt-Suchmaschine für elektronische Bauteile |
|
ST7FOXK2 Datenblatt(PDF) 92 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST7FOXK2 Datenblatt(HTML) 92 Page - STMicroelectronics |
|
92 / 226 page ![]() On-chip peripherals ST7FOXF1, ST7FOXK1, ST7FOXK2 92/226 Since the Input Capture flags (ICF) for both timers (AT4 timer and LT timer) are set when signal transition occurs, software must mask one interrupt by clearing the corresponding ICIE bit before setting the ICS bit. If the ICS bit changes (from 0 to 1 or from 1 to 0), a spurious transition might occur on the Input Capture signal because of different values on LTIC and ATIC. To avoid this situation, it is recommended to do as follows: 1. First, reset both ICIE bits. 2. Then set the ICS bit. 3. Reset both ICF bits. 4. And then set the ICIE bit of desired interrupt. Computing a pulse length in long Input Capture mode is not straightforward since both timers are used. The following steps are required: 1. At the first Input Capture on the rising edge of the pulse, we assume that values in the registers are the following: – LTICR = LT1 – ATICRH = ATH1 – ATICRL = ATL1 – Hence ATICR1 [11:0] = ATH1 & ATL1. Refer to Figure 47 on page 93. 2. At the second Input Capture on the falling edge of the pulse, we assume that the values in the registers are as follows: – LTICR = LT2 – ATICRH = ATH2 – ATICRL = ATL2 – Hence ATICR2 [11:0] = ATH2 & ATL2. Now pulse width P between first capture and second capture is given by: where N is the number of overflows of 12-bit CNTR1. P decimal F9 LT1 – LT2 1 ++ () × 0.004ms × decimal FFF N × () N ATICR2 ATICR1 – 1 – ++ () 1ms × + = |
|
Link URL |
| War ALLDATASHEET hilfreich? [ DONATE ] |
Über Alldatasheet | Werbung | Kontakt | Privatsphäre und Datenschutz | Link zum Datenblatt | Linktausch | Hersteller 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 |