ATTINY48-MMHR Atmel, ATTINY48-MMHR Datasheet - Page 161

no-image

ATTINY48-MMHR

Manufacturer Part Number
ATTINY48-MMHR
Description
MCU AVR 4KB FLASH 12MHZ 28QFN
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY48-MMHR

Core Processor
AVR
Core Size
8-Bit
Speed
12MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
24
Program Memory Size
4KB (2K x 16)
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 8x10b
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
8008G–AVR–04/11
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’s output can be set to trigger
the Timer/Counter1 Input Capture function. In addition, the comparator can trigger a separate
interrupt, exclusive to the Analog Comparator. The user can select Interrupt triggering on com-
parator output rise, fall or toggle. A block diagram of the comparator and its surrounding logic is
shown in
The ADC Power Reduction bit, PRADC, must be disabled in order to use the ADC input multi-
plexer. This is done by clearing the PRADC bit in the Power Reduction Register, PRR. See
“PRR – Power Reduction Register” on page 40
Figure 16-1. Analog Comparator Block Diagram
Notes:
It is possible to select any of the ADC[7:0] pins to replace the negative input to the Analog Com-
parator. 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[2: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.
ACME
0
1
1
1
ADC MULTIPLEXER
1. See
2. Refer to
Figure
REFERENCE
ACME
ADEN
BANDGAP
OUTPUT
placement.
Analog Comparator Multiplexed Input
Table 16-1 on page
(1)
16-1.
ADEN
ACBG
x
1
0
0
Figure 1-1 on page 2
MUX[2:0]
000
001
xxx
xxx
161.
and
Table 10-11 on page 75
Analog Comparator Negative Input
AIN1
AIN1
ADC0
ADC1
for more details.
(2)
for Analog Comparator pin
ATtiny48/88
Table
161

Related parts for ATTINY48-MMHR