at90pwm81-16se ATMEL Corporation, at90pwm81-16se Datasheet - Page 198

no-image

at90pwm81-16se

Manufacturer Part Number
at90pwm81-16se
Description
8-bit Avr Microcontroller With 8k Bytes In- System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
17.4.2
198
AT90PWM81
Analog Comparator 2 Control Register – AC2CON
Bit
Read/Write
Initial Value
• 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 17-3.
• Bit 3– Reserved
• Bit 2, 1, 0– AC2M2, AC2M1, AC2M0: Analog Comparator 2 Multiplexer register
These 3 bits determine the input of the negative input of the analog comparator.
The different setting are shown in
Table 17-4.
AC2IS1
0
0
1
1
AC2M2
0
0
0
0
1
1
1
1
7
AC2EN
R/W
0
Interrupt sensitivity selection
Analog Comparator 2 negative input selection
AC2IS0
0
1
0
1
AC2M1
0
0
1
1
0
0
1
1
6
AC2IE
R/W
0
Description
Comparator Interrupt on output toggle
Reserved
Comparator interrupt on output falling edge
Comparator interrupt on output rising edge
AC2M0
0
1
0
1
0
1
0
1
Table
Table
5
AC2IS1
R/W
0
17-3.
17-4.
4
AC2IS0
R/W
0
Description
“Vref”/6.40
“Vref”/3.20
“Vref”/2.13
“Vref”/1.60
Band Gap voltage
DAC result
Analog Comparator Negative Input (ACMPM2 pin)
Analog Comparator Negative Input (ACMPM pin)
3
-
-R
0
2
AC2M2
R/W
0
1
AC2M1
R/W
0
0
AC2M0
R/W
0
7734M–AVR–03/10
AC2CON

Related parts for at90pwm81-16se