ATMEGA165-16AI Atmel, ATMEGA165-16AI Datasheet - Page 186

IC AVR MCU 16K 16MHZ 64TQFP

ATMEGA165-16AI

Manufacturer Part Number
ATMEGA165-16AI
Description
IC AVR MCU 16K 16MHZ 64TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA165-16AI

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
SPI, UART/USART, USI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
54
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TQFP, 64-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA165-16AI
Manufacturer:
Atmel
Quantity:
10 000
Analog Comparator
ADC Control and Status
Register B – ADCSRB
Analog Comparator Control
and Status Register – ACSR
2573G–AVR–07/09
The Analog Comparator compares the input values on the positive pin AIN0 and nega-
tive 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 comparator output rise, fall or toggle. A block dia-
gram of the comparator and its surrounding logic is shown in Figure 82.
The Power Reduction ADC bit, PRADC, in “Power Reduction Register - PRR” on page
34 must be disabled by writing a logical zero to be able to use the ADC input MUX.
Figure 82. Analog Comparator Block Diagram
Notes:1. See Table 79 on page 188.
2.
• Bit 6 – 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 Compar-
ator. For a detailed description of this bit, see “Analog Comparator Multiplexed Input” on
page 188.
• 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. This will reduce power
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
ADC MULTIPLEXER
REFERENCE
BANDGAP
ACME
ADEN
OUTPUT
Refer to Figure 1 on page 2 and Table 32 on page 66 for Analog Comparator pin
AIN0
AIN1
placement.
(1)
ACBG
ACD
R/W
R
7
0
7
0
ACBG
ACME
R/W
R/W
6
0
6
0
ACD
ACO
N/A
R
5
R
5
0
VCC
R/W
ACI
4
0
R
4
0
(2)
ACIS1 ACIS0
ACIE
R/W
INTERRUPT
3
0
R
3
0
SELECT
ADTS2
ACIC
R/W
R/W
2
0
2
0
ACIE
ACIC
ACO
ATmega165/V
ACIS1
ADTS1
R/W
R/W
1
0
1
0
ACIS0
ADTS0
R/W
R/W
TO T/C1 CAPTURE
TRIGGER MUX
ACI
ANALOG
COMPARATOR
IRQ
0
0
0
0
ADCSRB
ACSR
186

Related parts for ATMEGA165-16AI