Rainbow-electronics ATmega64C1 Instrukcja Użytkownika Strona 262

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 366
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 261
262
7647A–AVR–02/08
ATmega32/64/M1/C1
These 3 bits determine the input of the negative input of the analog comparator.
The different setting are shown in Table 20-4.
20.4.3 Analog Comparator 2 Control Register – AC2CON
Bit 7– AC2EN: Analog Comparator 2 Enable Bit
Set this bit to enable the analog comparator 2.
Clear this bit to disable the analog comparator 2.
Bit 6– AC2IE: Analog Comparator 2 Interrupt Enable bit
Set this bit to enable the analog comparator 2 interrupt.
Clear this bit to disable the analog comparator 2 interrupt.
Bit 5, 4– AC2IS1, AC2IS0: Analog Comparator 2 Interrupt Select bit
These 2 bits determine the sensitivity of the interrupt trigger.
The different setting are shown in Table 20-1.
Bit 3 – Res: Reserved Bit
This bit is an unused bit in the ATmega32/64/M1/C1, and will always read as zero.
Bit 2, 1, 0– AC2M2, AC2M1, AC2M0: Analog Comparator 2 Multiplexer register
Table 20-4. Analog Comparator 1 negative input selection
AC1M2 AC1M1 AC1M0 Description
000“Vref/6.40
001“Vref/3.20
010“Vref/2.13
011“Vref/1.60
100Bandgap (1.1V)
101DAC result
110Analog Comparator Negative Input (ACMPM pin)
111Reserved
Bit 76543210
AC2EN AC2IE AC2IS1 AC2IS0 - AC2M2 AC2M1 AC2M0 AC2CON
Read/Write R/W R/W R/W R/W - R/W R/W R/W
Initial Value 0 0 0 0 0 0 0 0
Table 20-5. Interrupt sensitivity selection
AC2IS1 AC2IS0 Description
0 0 Comparator Interrupt on output toggle
01Reserved
1 0 Comparator interrupt on output falling edge
1 1 Comparator interrupt on output rising edge
Przeglądanie stron 261
1 2 ... 257 258 259 260 261 262 263 264 265 266 267 ... 365 366

Komentarze do niniejszej Instrukcji

Brak uwag