ATMEGA168PA-PU Atmel, ATMEGA168PA-PU Datasheet - Page 247

MCU, 8BIT, AVR, 16K FLASH, 28PDIP

ATMEGA168PA-PU

Manufacturer Part Number
ATMEGA168PA-PU
Description
MCU, 8BIT, AVR, 16K FLASH, 28PDIP
Manufacturer
Atmel
Datasheet

Specifications of ATMEGA168PA-PU

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA168PA-PU
Manufacturer:
TI
Quantity:
1 240
22. Analog Comparator
22.1
22.2
8271C–AVR–08/10
Overview
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 Power Reduction ADC bit, PRADC, in
be disabled by writing a logical zero to be able to use the ADC input MUX.
Figure 22-1. Analog Comparator Block Diagram
Notes:
It is possible to select any of the ADC7...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), MUX2...0 in ADMUX
select the input pin to replace the negative input to the Analog Comparator, as shown in
22-1. If ACME is cleared or ADEN is set, AIN1 is applied to the negative input to the Analog
Comparator
ATmega48A/48PA/88A/88PA/168A/168PA/328/328
ADC MULTIPLEXER
1. See
2. Refer to
Figure
REFERENCE
ACME
ADEN
BANDGAP
OUTPUT
placement.
Table 22-1 on page
(1)
22-1.
ACBG
Figure 1-1 on page 2
248.
and
Table 13-9 on page 89
”Minimizing Power Consumption” on page 42
(2)
for Analog Comparator pin
Table
must
247

Related parts for ATMEGA168PA-PU