ATTINY861A-SU Atmel, ATTINY861A-SU Datasheet - Page 137

no-image

ATTINY861A-SU

Manufacturer Part Number
ATTINY861A-SU
Description
IC, MCU, 8BIT, 8K FLASH, 20SOIC
Manufacturer
Atmel
Datasheet

Specifications of ATTINY861A-SU

Controller Family/series
ATtiny
No. Of I/o's
16
Eeprom Memory Size
512Byte
Ram Memory Size
512Byte
Cpu Speed
20MHz
No.
RoHS Compliant
Core Size
8bit
Program Memory Size
8KB
Oscillator Type
External, Internal
Rohs Compliant
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY861A-SUR
Manufacturer:
Atmel
Quantity:
950
14.2
14.2.1
8197B–AVR–01/10
Register Description
ACSRA – Analog Comparator Control and Status Register A
• Bit 7 – ACD: Analog Comparator Disable
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, thus reducing power consumption in
Active and Idle mode. When changing the ACD bit, the analog comparator Interrupt must be dis-
abled by clearing the ACIE bit in ACSRA. Otherwise an interrupt can occur when the bit is
changed.
• Bit 6 – ACBG: Analog Comparator Bandgap Select
When this bit is set an internal 1.1V reference voltage replaces the positive input to the analog
comparator. The selection of the internal voltage reference is done by writing the REFS2:0 bits
in ADCSRB and ADMUX registers. When this bit is cleared, AIN0, AIN1 or AIN2 depending on
the ACM2:0 bits is applied to the positive input of the analog comparator.
• Bit 5 – ACO: Analog Comparator Output
Enables output of analog comparator. The output of the analog comparator is synchronized and
then directly connected to ACO. The synchronization introduces a delay of 1 - 2 clock cycles.
• Bit 4 – ACI: Analog Comparator Interrupt Flag
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 inter-
rupt handling vector. Alternatively, ACI is cleared by writing a logic one to the flag.
• Bit 3 – ACIE: Analog Comparator Interrupt Enable
When the ACIE bit is written logic one and the I-bit in the status register is set, the analog com-
parator interrupt is activated. When written logic zero, the interrupt is disabled.
• Bit 2 – ACME: Analog Comparator Multiplexer Enable
When this bit is written logic one and the ADC is switched off (ADEN in ADCSRA is zero), the
ADC multiplexer selects the negative input to the analog comparator. When this bit is written
logic zero, AIN1 is applied to the negative input of the analog comparator. For a detailed descrip-
tion of this bit, see
Bit
0x08 (0x28)
Read/Write
Initial Value
ACD
R/W
7
0
Table 14-1 on page
ACBG
R/W
6
0
ACO
N/A
R
5
135.
R/W
ACI
4
0
ACIE
R/W
3
0
ACME
R/W
2
0
ACIS1
R/W
1
0
ACIS0
R/W
0
0
ACSRA
137

Related parts for ATTINY861A-SU