AVR16EA32 ADC0 registers

The 21 registers of ADC0 (Analog to Digital Converter), from 0x600, with their reset value and every field. The AVR16EA32 has 492 registers in 43 peripherals, one page each.

ADC0 Analog to Digital Converter

CTRLAControl A

Address
0x600
Reset
0x00
Access
read/write
  1. 7RUNSTDBY
  2. 6–
  3. 5LOWLAT
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0ENABLE
3 fields
FieldBitsWhat it does
RUNSTDBY7Run in Standby
LOWLAT5Low Latency
ENABLE0ADC Enable

CTRLBControl B

Address
0x601
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3PRESC3
  6. 2PRESC2
  7. 1PRESC1
  8. 0PRESC0
1 field
FieldBitsWhat it does
PRESC3:0Prescaler Value
  • 0 System clock divided by 2
  • 1 System clock divided by 4
  • 2 System clock divided by 6
  • 3 System clock divided by 8
  • 4 System clock divided by 10
  • 5 System clock divided by 12
  • 6 System clock divided by 14
  • 7 System clock divided by 16
  • 8 System clock divided by 20
  • 9 System clock divided by 24
  • 10 System clock divided by 28
  • 11 System clock divided by 32
  • 12 System clock divided by 40
  • 13 System clock divided by 48
  • 14 System clock divided by 56
  • 15 System clock divided by 64

CTRLCControl C

Address
0x602
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2REFSEL2
  7. 1REFSEL1
  8. 0REFSEL0
1 field
FieldBitsWhat it does
REFSEL2:0Reference select
  • 0 VDD
  • 2 External Reference
  • 4 Internal 1.024V Reference
  • 5 Internal 2.048V Reference
  • 6 Internal 4.096V Reference
  • 7 Internal 2.500V Reference

CTRLDControl D

Address
0x603
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3WINSRC
  6. 2WINCM2
  7. 1WINCM1
  8. 0WINCM0
2 fields
FieldBitsWhat it does
WINSRC3Window Mode Source
  • 0 Result register used as Window Comparator Source
  • 1 Sample register used as Window Comparator Source
WINCM2:0Window Comparator Mode
  • 0 No Window Comparison
  • 1 Below Window
  • 2 Above Window
  • 3 Inside Window
  • 4 Outside Window

INTCTRLInterrupt Control

Address
0x604
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5TRIGOVR
  4. 4SAMPOVR
  5. 3RESOVR
  6. 2WCMP
  7. 1SAMPRDY
  8. 0RESRDY
6 fields
FieldBitsWhat it does
TRIGOVR5Trigger Overrun Interrupt Enable
SAMPOVR4Sample Overwrite Interrupt Enable
RESOVR3Result Overwrite Interrupt Enable
WCMP2Window Comparator Interrupt Enable
SAMPRDY1Sample Ready Interrupt Enable
RESRDY0Result Ready Interrupt Enable

INTFLAGSInterrupt Flags

Address
0x605
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5TRIGOVR
  4. 4SAMPOVR
  5. 3RESOVR
  6. 2WCMP
  7. 1SAMPRDY
  8. 0RESRDY
6 fields
FieldBitsWhat it does
TRIGOVR5Trigger Overrun Interrupt Flag
SAMPOVR4Sample Overwrite Interrupt Flag
RESOVR3Result Overwrite Interrupt Flag
WCMP2Window Comparator Interrupt Flag
SAMPRDY1Sample Ready Interrupt Flag
RESRDY0Result Ready Interrupt Flag

STATUSStatus register

Address
0x606
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0ADCBUSY
1 field
FieldBitsWhat it does
ADCBUSY0ADC Busy

DBGCTRLDebug Control

Address
0x607
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0DBGRUN
1 field
FieldBitsWhat it does
DBGRUN0Run in Debug Mode

CTRLEControl E

Address
0x608
Reset
0x00
Access
read/write
  1. 7SAMPDUR7
  2. 6SAMPDUR6
  3. 5SAMPDUR5
  4. 4SAMPDUR4
  5. 3SAMPDUR3
  6. 2SAMPDUR2
  7. 1SAMPDUR1
  8. 0SAMPDUR0
1 field
FieldBitsWhat it does
SAMPDUR7:0Sample Duration

CTRLFControl F

Address
0x609
Reset
0x00
Access
read/write
  1. 7–
  2. 6CHOPPING
  3. 5FREERUN
  4. 4LEFTADJ
  5. 3SAMPNUM3
  6. 2SAMPNUM2
  7. 1SAMPNUM1
  8. 0SAMPNUM0
4 fields
FieldBitsWhat it does
CHOPPING6Sign Chopping
  • 0 Sign Chopping Disabled
  • 1 Sign Chopping Enabled
FREERUN5Free-Running mode
LEFTADJ4Left Adjust
SAMPNUM3:0Sample numbers
  • 0 No accumulation
  • 1 2 samples accumulated
  • 2 4 samples accumulated
  • 3 8 samples accumulated
  • 4 16 samples accumulated
  • 5 32 samples accumulated
  • 6 64 samples accumulated
  • 7 128 samples accumulated
  • 8 256 samples accumulated
  • 9 512 samples accumulated
  • 10 1024 samples accumulated

COMMANDCommand register

Address
0x60A
Reset
0x00
Access
read/write
  1. 7DIFF
  2. 6MODE2
  3. 5MODE1
  4. 4MODE0
  5. 3–
  6. 2START2
  7. 1START1
  8. 0START0
3 fields
FieldBitsWhat it does
DIFF7Differential mode
MODE6:4Mode
  • 0 Single Conversion with 8-bit resolution
  • 1 Single Conversion with 12-bit resolution
  • 2 Series with accumulation, separate trigger for every 12-bit conversion
  • 3 Series with accumulation and scaling, separate trigger for every 12-bit conversion
  • 4 Burst with accumulation, one trigger will run SAMPNUM 12-bit conversions
  • 5 Burst with accumulation and scaling, one trigger will run SAMPNUM 12-bit conversions
START2:0Start command
  • 0 Stop an ongoing conversion
  • 1 Start a conversion immediately. This will be set back to STOP when the first conversion is done, unless Free-Running mode is enabled
  • 2 Start when MUXPOS register is written
  • 3 Start when MUXNEG register is written
  • 4 Start when an event is received

PGACTRLPGA Control

Address
0x60B
Reset
0x00
Access
read/write
  1. 7GAIN2
  2. 6GAIN1
  3. 5GAIN0
  4. 4PGABIASSEL1
  5. 3PGABIASSEL0
  6. 2–
  7. 1–
  8. 0PGAEN
3 fields
FieldBitsWhat it does
GAIN7:5Gain
  • 0 1x gain
  • 1 2x gain
  • 2 4x gain
  • 3 8x gain
  • 4 16x gain
PGABIASSEL4:3PGA BIAS Select
  • 0 100% BIAS current.
  • 1 75% BIAS current. Usable for CLK_ADC<4.5MHz
  • 2 50% BIAS current. Usable for CLK_ADC<3MHz
  • 3 25% BIAS current. Usable for CLK_ADC<1.5MHz
PGAEN0PGA Enable

MUXPOSPositive Input Multiplexer

Address
0x60C
Reset
0x00
Access
read/write
  1. 7VIA1
  2. 6VIA0
  3. 5MUXPOS5
  4. 4MUXPOS4
  5. 3MUXPOS3
  6. 2MUXPOS2
  7. 1MUXPOS1
  8. 0MUXPOS0
2 fields
FieldBitsWhat it does
VIA7:6VIA
  • 0 Inputs connected directly to ADC
  • 1 Inputs connected via PGA
MUXPOS5:0Analog Channel Selection Bits
  • 0 ADC input pin 0
  • 1 ADC input pin 1
  • 2 ADC input pin 2
  • 3 ADC input pin 3
  • 4 ADC input pin 4
  • 5 ADC input pin 5
  • 6 ADC input pin 6
  • 7 ADC input pin 7
  • 16 ADC input pin 16
  • 17 ADC input pin 17
  • 18 ADC input pin 18
  • 19 ADC input pin 19
  • 20 ADC input pin 20
  • 21 ADC input pin 21
  • 22 ADC input pin 22
  • 23 ADC input pin 23
  • 24 ADC input pin 24
  • 25 ADC input pin 25
  • 26 ADC input pin 26
  • 27 ADC input pin 27
  • 28 ADC input pin 28
  • 29 ADC input pin 29
  • 30 ADC input pin 30
  • 31 ADC input pin 31
  • 48 Ground
  • 49 VDD Divided by 10
  • 50 Temperature Sensor
  • 56 Digital to Analog Converter 0

MUXNEGNegative Input Multiplexer

Address
0x60D
Reset
0x00
Access
read/write
  1. 7VIA1
  2. 6VIA0
  3. 5MUXNEG5
  4. 4MUXNEG4
  5. 3MUXNEG3
  6. 2MUXNEG2
  7. 1MUXNEG1
  8. 0MUXNEG0
2 fields
FieldBitsWhat it does
VIA7:6VIA
  • 0 Inputs connected directly to ADC
  • 1 Inputs connected via PGA
MUXNEG5:0Analog Channel Selection Bits
  • 0 ADC input pin 0
  • 1 ADC input pin 1
  • 2 ADC input pin 2
  • 3 ADC input pin 3
  • 4 ADC input pin 4
  • 5 ADC input pin 5
  • 6 ADC input pin 6
  • 7 ADC input pin 7
  • 16 ADC input pin 16
  • 17 ADC input pin 17
  • 18 ADC input pin 18
  • 19 ADC input pin 19
  • 20 ADC input pin 20
  • 21 ADC input pin 21
  • 22 ADC input pin 22
  • 23 ADC input pin 23
  • 24 ADC input pin 24
  • 25 ADC input pin 25
  • 26 ADC input pin 26
  • 27 ADC input pin 27
  • 28 ADC input pin 28
  • 29 ADC input pin 29
  • 30 ADC input pin 30
  • 31 ADC input pin 31
  • 48 Ground
  • 56 Digital to Analog Converter 0
  • 57 AC0 DAC reference
  • 58 AC1 DAC reference

RESULTResult

Address
0x610
Reset
0x00000000
Access
read only
Size
32-bit

SAMPLESample

Address
0x614
Reset
0x0000
Access
read only
Size
16-bit

TEMP0Temporary Data 0

Address
0x618
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

TEMP1Temporary Data 1

Address
0x619
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

TEMP2Temporary Data 2

Address
0x61A
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–

WINLTWindow Low Threshold

Address
0x61C
Reset
0x0000
Access
read/write
Size
16-bit

WINHTWindow High Threshold

Address
0x61E
Reset
0x0000
Access
read/write
Size
16-bit