atmega32c1 ATMEL Corporation, atmega32c1 Datasheet - Page 260

no-image

atmega32c1

Manufacturer Part Number
atmega32c1
Description
Atmega32m1 Automotive 8-bit Avr Microcontroller With 32k/64k Bytes In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega32c1-15AZ
Manufacturer:
ATMEL
Quantity:
170
Part Number:
atmega32c1-15AZ
Manufacturer:
Atmel
Quantity:
10 000
20.4
20.4.1
260
Analog Comparator Register Description
ATmega32/64/M1/C1
Analog Comparator 0 Control Register – AC0CON
Each analog comparator has its own control register.
A dedicated register has been designed to consign the outputs and the flags of the 4 analog
comparators.
Bit
Read/Write
Initial Value
• Bit 7– AC0EN: Analog Comparator 0 Enable Bit
Set this bit to enable the analog comparator 0.
Clear this bit to disable the analog comparator 0.
• Bit 6– AC0IE: Analog Comparator 0 Interrupt Enable bit
Set this bit to enable the analog comparator 0 interrupt.
Clear this bit to disable the analog comparator 0 interrupt.
• Bit 5, 4– AC0IS1, AC0IS0: Analog Comparator 0 Interrupt Select bit
These 2 bits determine the sensitivity of the interrupt trigger.
The different setting are shown in
Table 20-1.
• Bit 3 – ACCKSEL: Analog Comparator Clock Select
Set this bit to use the PLL output as comparator clock.
Clear this bit to use the CLK
• Bit 2, 1, 0– AC0M2, AC0M1, AC0M0: Analog Comparator 0 Multiplexer register
These 3 bits determine the input of the negative input of the analog comparator.
The different setting are shown in
Table 20-2.
AC0IS1
0
0
1
1
AC0M2
0
0
0
0
1
Interrupt sensitivity selection
Analog Comparator 0 negative input selection
AC0IS0
0
1
0
1
AC0M1
0
0
1
1
0
AC0EN
R/W
7
0
AC0IE
R/W
6
0
IO
Description
Comparator Interrupt on output toggle
Reserved
Comparator interrupt on output falling edge
Comparator interrupt on output rising edge
AC0M0
0
1
0
1
0
as comparator clock.
AC0IS1
Table
Table
R/W
5
0
20-1.
20-2.
AC0IS0
Description
“Vref”/6.40
“Vref”/3.20
“Vref”/2.13
“Vref”/1.60
Bandgap (1.1V)
R/W
4
0
ACCKSEL
R/W
3
0
AC0M2
R/W
2
0
AC0M1
R/W
1
0
AC0M0
R/W
0
0
7647A–AVR–02/08
AC0CON

Related parts for atmega32c1