ATTINY26L8SU SL383 Atmel, ATTINY26L8SU SL383 Datasheet - Page 93

no-image

ATTINY26L8SU SL383

Manufacturer Part Number
ATTINY26L8SU SL383
Description
MCU 8-Bit ATtiny AVR RISC 2KB Flash 3.3V/5V 20-Pin SOIC T/R
Manufacturer
Atmel
Datasheet
Analog Comparator
Analog Comparator Control
and Status Register – ACSR
1477J–AVR–06/07
The Analog Comparator compares the input values on the positive pin PA6 (AIN0) and
negative pin PA7 (AIN1). When the voltage on the positive pin PA6 (AIN0) is higher than
the voltage on the negative pin PA7 (AIN1), the Analog Comparator Output, ACO is set
(one). The comparator’s output can trigger a separate interrupt, exclusive to the Analog
Comparator. The user can select Interrupt triggering on comparator output rise, fall or
toggle. A block diagram of the comparator and its surrounding logic is shown in the Fig-
ure 50.
Figure 50. Analog Comparator Block Diagram
• Bit 7 – ACD: Analog Comparator Disable
When this bit is set(one), the power to the Analog Comparator is switched off. This bit
can be set at any time to turn off the Analog Comparator. 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.
• Bit 6 – ACBG: Analog Comparator Bandgap Select
When this bit is set (one), it selects internal bandgap reference voltage (1.18V) as the
positive comparator input.
• Bit 5 – ACO: Analog Comparator Output
ACO is directly connected to the comparator output.
Bit
$08 ($28)
Read/Write
Initial Value
(AIN1)
(AIN0)
PA7
PA6
MULTIPLEXER OUTPUT
ACD
R/W
7
0
ADC
MUX
MUX
MUX
ACBG
ACBG
R/W
ACME
6
0
ACO
R
X
5
R/W
ACI
4
0
ACIE
R/W
3
0
ACME
R/W
2
0
ACIS1
R/W
ATtiny26(L)
1
0
ACIS0
R/W
0
0
ACSR
93

Related parts for ATTINY26L8SU SL383