Kontron PB-TIM2 Instrukcja Użytkownika Strona 22

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 36
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 21
Chapter 4 Programming PB-TIM2 User’s Manual
4.2 Register Allocation
4.2.1 Channel Control Register
Write Only Register
Channel 0 1 2
Address $01 $21 $41
Bit 7 6 5
4 3 2 1 0
Function Load Enable Clear
After Reset 0 0 0 0 0 0 0 0
Where • Clear : Clears the timer (all 0’s) and the output (Toggle flip-flop) when this bit is set to
1
• Enable : Enable timer operation (i.e. starts the timer or single measurement when this bit
is set to 1
• Load : Loads the timer with the Comparator/Preset register value when set to 1
4.2.2 Channel Mode Register
Write Only Register
Channel 0 1 2
Address $05 $25 $45
Bit 7 6 5
4 3 2 1 0
Function Output Reload Mode 1 Mode 0 B IN 1 B IN 0 A IN 1 A IN 0
After Reset 0 0 0 0 0 0 0 0
Where • A IN 0 and 1 : Defines the input mode
A IN 1 A IN 0 Mode
0 0 Rising Edge
0 1 Falling Edge
1 x Both Edges
• B IN 0 : Defines input (B) level or edge 0 active high - rising edge
1 active low - falling edge
• B IN 1 : Defines input (B) level or edge 0 level
1 edge operation
Page 4-2 © 1996 PEP Modular Computers July 30, 1997
Przeglądanie stron 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 35 36

Komentarze do niniejszej Instrukcji

Brak uwag