ATA6613-EK Atmel, ATA6613-EK Datasheet - Page 263

no-image

ATA6613-EK

Manufacturer Part Number
ATA6613-EK
Description
BOARD DEMO LIN-MCM FOR ATA6613
Manufacturer
Atmel
Datasheets

Specifications of ATA6613-EK

Main Purpose
Interface, LIN + MCU
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
ATA6613
Primary Attributes
LIN-SBC (System-Basis-Chip) Transceiver, LIN 2.0, Voltage Regulator, Window Watchdog
Secondary Attributes
16 kB Flash, 4 Power Modes: Pre-Normal, Normal, Sleep, Silent, 48-QFN
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
6.20.2
9111H–AUTO–01/11
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
Analog 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 inter-
rupt, the ICIE1 bit in the Timer Interrupt Mask Register (TIMSK1) must be set.
These bits determine which comparator events that trigger the Analog Comparator inter-
rupt. The different settings are shown in
Bit
ACD
R/W
7
0
ACBG
R/W
6
0
“Internal Voltage Reference” on page
ACO
N/A
R
5
R/W
ACI
4
0
Table 6-95 on page
Atmel ATA6612/ATA6613
ACIE
R/W
3
0
ACIC
R/W
2
0
264.
73).
ACIS1
R/W
1
0
ACIS0
R/W
0
0
ACSR
263

Related parts for ATA6613-EK