ATA6602 ATMEL Corporation, ATA6602 Datasheet - Page 260

no-image

ATA6602

Manufacturer Part Number
ATA6602
Description
LIN and Microcontroller System-In-Package: LIN Transceiver, integrated 5V/50 mA voltage regulator, window watchdog and automotive AVR ATmega88 (8 kBytes Flash); green QFN48 package.
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL
Quantity:
1 727
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATA6602NPLQW
Manufacturer:
ATMEL
Quantity:
7 234
4.20.2
260
ATA6602/ATA6603
Analog Comparator Control and Status Register – ACSR
• Bit 7 – ACD: Analog Comparator Disable
• Bit 6 – ACBG: Analog Comparator Bandgap Select
• Bit 5 – ACO: Analog Comparator Output
• Bit 4 – ACI: Analog Comparator Interrupt Flag
• Bit 3 – ACIE: Analog Comparator Interrupt Enable
• Bit 2 – ACIC: Analog Comparator Input Capture Enable
• Bits 1, 0 – ACIS1, ACIS0: Analog Comparator Interrupt Mode Select
Initial Value
Read/Write
When this bit is written logic one, the power to the Analog Comparator is switched off. This
bit can be set at any time to turn off the Analog Comparator. This will reduce power con-
sumption in Active and Idle mode. When changing the ACD bit, the Analog Comparator
Interrupt must be disabled by clearing the ACIE bit in ACSR. Otherwise an interrupt can
occur when the bit is changed.
When this bit is set, a fixed bandgap reference voltage replaces the positive input to the
Analog Comparator. When this bit is cleared, AIN0 is applied to the positive input of the Ana-
log Comparator (see
The output of the Analog Comparator is synchronized and then directly connected to ACO.
The synchronization introduces a delay of 1 - 2 clock cycles.
This bit is set by hardware when a comparator output event triggers the interrupt mode
defined by ACIS1 and ACIS0. The Analog Comparator interrupt routine is executed if the
ACIE bit is set and the I-bit in SREG is set. ACI is cleared by hardware when executing the
corresponding interrupt handling vector. Alternatively, ACI is cleared by writing a logic one to
the flag.
When the ACIE bit is written logic one and the I-bit in the Status Register is set, the Analog
Comparator interrupt is activated. When written logic zero, the interrupt is disabled.
When written logic one, this bit enables the input capture function in Timer/Counter1 to be
triggered by the Analog Comparator. The comparator output is in this case directly con-
nected 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. When written logic
zero, no connection between the Analog Comparator and the input capture function exists.
To make the comparator trigger the Timer/Counter1 Input Capture interrupt, the ICIE1 bit in
the Timer Interrupt Mask Register (TIMSK1) must be set.
These bits determine which comparator events that trigger the Analog Comparator interrupt.
The different settings are shown in
Bit
ACD
R/W
7
0
ACBG
R/W
“Internal Voltage Reference” on page
6
0
ACO
N/A
R
5
Table 4-95 on page
R/W
ACI
4
0
ACIE
R/W
3
0
261.
ACIC
R/W
2
0
70).
ACIS1
R/W
1
0
ACIS0
R/W
0
0
4921C–AUTO–01/07
ACSR

Related parts for ATA6602