Auto Page CPX-3600 Dokumentacja Strona 104

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 243
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 103
16-bit timer ST72321xx-Auto
104/243 Doc ID 13829 Rev 1
5 The alternate inputs (ICAP1 and ICAP2) are always directly connected to the timer. So any
transitions on these pins activates the input capture function.
6 Moreover if one of the ICAPi pins is configured as an input and the second one as an output,
an interrupt can be generated if the user toggles the output pin and if the ICIE bit is set.
7 This can be avoided if the input capture function i is disabled by reading the ICiHR (see note
1).
8 The TOF bit can be used with interrupt generation in order to measure events that go
beyond the timer range (FFFFh).
Figure 46. Input capture block diagram
Figure 47. Input capture timing diagram
ICIE
CC0CC1
16-BIT FREE RUNNING
COUNTER
IEDG1
(Control Register 1) CR1
(Control Register 2) CR2
ICF2ICF1 000
(Status Register) SR
IEDG2
ICAP1
ICAP2
EDGE DETECT
CIRCUIT2
16-BIT
IC1R Register
IC2R Register
EDGE DETECT
CIRCUIT1
pin
pin
FF01 FF02 FF03
FF03
TIMER CLOCK
COUNTER REGISTER
ICAPi PIN
ICAPi FLAG
ICAPi REGISTER
Note: The rising edge is the active edge.
Przeglądanie stron 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 242 243

Komentarze do niniejszej Instrukcji

Brak uwag