ATTINY25-20SUR Atmel, ATTINY25-20SUR Datasheet - Page 123

no-image

ATTINY25-20SUR

Manufacturer Part Number
ATTINY25-20SUR
Description
MCU AVR 2KB FLASH 20MHZ 8SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY25-20SUR

Core Processor
AVR
Core Size
8-Bit
Speed
20MHz
Connectivity
USI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
6
Program Memory Size
2KB (1K x 16)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
16. Analog Comparator
16.1
2586M–AVR–07/10
Analog Comparator Multiplexed Input
The Analog Comparator compares the input values on the positive pin AIN0 and negative pin
AIN1. When the voltage on the positive pin AIN0 is higher than the voltage on the negative pin
AIN1, the Analog Comparator output, ACO, is set. The comparator can trigger a separate inter-
rupt, 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
Figure 16-1. Analog Comparator Block Diagram
Notes:
See
When the Analog to Digital Converter (ADC) is configurated as single ended input channel, it is
possible to select any of the ADC[3:0] pins to replace the negative input to the Analog Compara-
tor. The ADC multiplexer is used to select this input, and consequently, the ADC must be
switched off to utilize this feature. If the Analog Comparator Multiplexer Enable bit (ACME in
ADCSRB) is set and the ADC is switched off (ADEN in ADCSRA is zero), MUX[1:0] in ADMUX
select the input pin to replace the negative input to the Analog Comparator, as shown in
16-1. If ACME is cleared or ADEN is set, AIN1 is applied to the negative input to the Analog
Comparator.
Table 16-1.
Figure
ACME
ADC MULTIPLEXER
Figure 1-1 on page 2
INTERNAL 1.1V
0
1
1
1
1
1
REFERENCE
ACME
ADEN
OUTPUT
1. See
16-1.
AIN0
AIN1
(1)
Analog Comparator Multiplexed Input
Table 16-1
ACBG
ADEN
x
1
0
0
0
0
below.
and
MUX[1:0]
Table 10-5 on page 65
ACD
00
01
10
xx
xx
11
+
_
VCC
Analog Comparator Negative Input
AIN1
AIN1
ADC0
ADC1
ADC2
ADC3
for Analog Comparator pin placement.
ACIS1
INTERRUPT
SELECT
ACIS0
ACIE
ACO
ANALOG
COMP ARATOR
IRQ
ACI
Table
123

Related parts for ATTINY25-20SUR