atmega32c1 ATMEL Corporation, atmega32c1 Datasheet - Page 261

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.2
7647A–AVR–02/08
Analog Comparator 1Control Register – AC1CON
Table 20-2.
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 20-3.
• Bit 3– AC1ICE: Analog Comparator 1 Interrupt Capture Enable bit
Set this bit to enable the input capture of the Timer/Counter1 on the analog comparator event.
The comparator output is in this case directly connected to the input capture front-end logic,
making the comparator utilize the noise canceler and edge select features of the
Timer/Counter1 Input Capture interrupt. To make the comparator trigger the Timer/Counter1
Input Capture interrupt, the ICIE1 bit in the Timer Interrupt Mask Register (TIMSK1) must be set.
In case ICES1 bit
rising edge of AC1O is the capture/trigger event of the Timer/Counter1, in case ICES1 is set to
zero, it is the falling edge which is taken into account.
Clear this bit to disable this function. In this case, no connection between the Analog Compara-
tor and the input capture function exists.
• Bit 2, 1, 0– AC1M2, AC1M1, AC1M0: Analog Comparator 1 Multiplexer register
AC0M2
1
1
1
AC1IS1
0
0
1
1
Analog Comparator 0 negative input selection
Interrupt sensitivity selection
AC1IS0
0
1
0
1
AC0M1
0
1
1
AC1EN
R/W
7
0
(“Timer/Counter1 Control Register B – TCCR1B” on page
AC1IE
R/W
6
0
Description
Comparator Interrupt on output toggle
Reserved
Comparator interrupt on output falling edge
Comparator interrupt on output rising edge
AC0M0
1
0
1
AC1IS1
Table
R/W
5
0
20-1.
AC1IS0
Description
DAC result
Analog Comparator Negative Input (ACMPM pin)
Reserved
R/W
4
0
AC1ICE
R/W
3
0
ATmega32/64/M1/C1
AC1M2
R/W
2
0
AC1M1
R/W
1
0
129) is set high, the
AC1M0
R/W
0
0
AC1CON
261

Related parts for atmega32c1