Microchip Technology megaAVR 0 Series Manual page 411

Hide thumbs Also See for megaAVR 0 Series:
Table of Contents

Advertisement

28.2.1
Block Diagram
Figure 28-1. Block Diagram
AIN0
AIN1
.
.
.
AINn
DACREF0
Temp.Sense
The analog input channel is selected by writing to the MUXPOS bits in the MUXPOS register
(ADCn.MUXPOS). Any of the ADC input pins, GND, internal Voltage Reference (VREF), or temperature
sensor, can be selected as single-ended input to the ADC. The ADC is enabled by writing a '1' to the ADC
ENABLE bit in the Control A register (ADCn.CTRLA). Voltage reference and input channel selections will
not go into effect before the ADC is enabled. The ADC does not consume power when the ENABLE bit in
ADCn.CTRLA is zero.
The ADC generates a 10-bit result that can be read from the Result Register (ADCn.RES). The result is
presented right adjusted.
28.2.2
Signal Description
Pin Name
AIN[n:0]
VREFA
28.2.2.1 Definitions
An ideal n-bit single-ended ADC converts a voltage linearly between GND and VREF in 2
The lowest code is read as 0, and the highest code is read as 2
deviation from the ideal behavior:
Offset Error
©
2018 Microchip Technology Inc.
AVDD
VREFA
Internal reference
MUXPOS
Type
Analog input
Analog input
The deviation of the first transition (0x000 to 0x001) compared to the ideal
transition (at 0.5 LSB). Ideal value: 0 LSB.
Analog-to-Digital Converter (ADC)
V
REF
ADC
ACC
Control logic
Description
Analog input pin
External voltage reference pin
n-1
. Several parameters describe the
Datasheet Preliminary
®
megaAVR
0-Series
RES
>
<
WINLT
WINHT
n
steps (LSBs).
DS40002015A-page 411
WCOMP
(Int. Req)
RESRDY
(Int. Req)

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the megaAVR 0 Series and is the answer not in the manual?

This manual is also suitable for:

Atmega4808Atmega4809Atmega3208Atmega3209

Table of Contents