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

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.1
7734M–AVR–03/10
Analog Comparator 1Control Register – AC1CON
Bit
Read/Write
Initial Value
• Bit 7– AC1EN: Analog Comparator 1 Enable Bit
Set this bit to enable the analog comparator 1.
Clear this bit to disable the analog comparator 1.
• Bit 6– AC1IE: Analog Comparator 1 Interrupt Enable bit
Set this bit to enable the analog comparator 1 interrupt.
Clear this bit to disable the analog comparator 1 interrupt.
• Bit 5, 4– AC1IS1, AC1IS0: Analog Comparator 1 Interrupt Select bit
These 2 bits determine the sensitivity of the interrupt trigger.
The different setting are shown in
Table 17-1.
• Bit 3– Reserved
• Bit 2, 1, 0– AC1M2, AC1M1, AC1M0: Analog Comparator 1 Multiplexer register
These 3 bits determine the input of the negative input of the analog comparator.
The different setting are shown in
Table 17-2.
AC1IS1
0
0
1
1
AC1M2
0
0
0
0
1
1
1
1
7
AC1EN
R/W
0
Interrupt sensitivity selection
Analog Comparator 1 negative input selection
AC1IS0
0
1
0
1
AC1M1
0
0
1
1
0
0
1
1
6
AC1IE
R/W
0
Description
Comparator Interrupt on output toggle
Reserved
Comparator interrupt on output falling edge
Comparator interrupt on output rising edge
AC1M0
0
1
0
1
0
1
0
1
Table
Table
5
AC1IS1
R/W
0
17-1.
17-2.
4
AC1IS0
R
0
Description
“Vref”/6.40
“Vref”/3.20
“Vref”/2.13
“Vref”/1.60
Band Gap voltage
DAC result
Analog Comparator Negative Input (ACMPM1 pin)
Analog Comparator Negative Input (ACMPM pin)
3
-
R/W
0
2
AC1M2
R/W
0
1
AC1M1
R/W
0
AT90PWM81
0
AC1M0
R/W
0
AC1CON
197

Related parts for at90pwm81-16se