ATSAML22G17A ADC registers

The 22 registers of ADC (Analog Digital Converter), from 0x42003000, with their reset value and every field. The ATSAML22G17A has 1065 registers in 38 peripherals, one page each.

ADC Analog Digital Converter

CTRLAControl A

Address
0x42003000
Reset
0x00
Access
read/write
  1. 7ONDEMAND
  2. 6RUNSTDBY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1ENABLE
  8. 0SWRST
4 fields
FieldBitsWhat it does
ONDEMAND7On Demand Control
RUNSTDBY6Run During Standby
ENABLE1Enable
SWRST0Software Reset

CTRLBControl B

Address
0x42003001
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2PRESCALER2
  7. 1PRESCALER1
  8. 0PRESCALER0
1 field
FieldBitsWhat it does
PRESCALER2:0Prescaler Configuration
  • 0 Peripheral clock divided by 2
  • 1 Peripheral clock divided by 4
  • 2 Peripheral clock divided by 8
  • 3 Peripheral clock divided by 16
  • 4 Peripheral clock divided by 32
  • 5 Peripheral clock divided by 64
  • 6 Peripheral clock divided by 128
  • 7 Peripheral clock divided by 256

REFCTRLReference Control

Address
0x42003002
Reset
0x00
Access
read/write
  1. 7REFCOMP
  2. 6–
  3. 5–
  4. 4–
  5. 3REFSEL3
  6. 2REFSEL2
  7. 1REFSEL1
  8. 0REFSEL0
2 fields
FieldBitsWhat it does
REFCOMP7Reference Buffer Offset Compensation Enable
REFSEL3:0Reference Selection
  • 0 Internal Bandgap Reference
  • 1 1/1.6 VDDANA
  • 2 1/2 VDDANA
  • 3 External Reference
  • 4 External Reference
  • 5 VCCANA

EVCTRLEvent Control

Address
0x42003003
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5WINMONEO
  4. 4RESRDYEO
  5. 3STARTINV
  6. 2FLUSHINV
  7. 1STARTEI
  8. 0FLUSHEI
6 fields
FieldBitsWhat it does
WINMONEO5Window Monitor Event Out
RESRDYEO4Result Ready Event Out
STARTINV3Satrt Event Invert Enable
FLUSHINV2Flush Event Invert Enable
STARTEI1Start Conversion Event Input Enable
FLUSHEI0Flush Event Input Enable

INTENCLRInterrupt Enable Clear

Address
0x42003004
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2WINMON
  7. 1OVERRUN
  8. 0RESRDY
3 fields
FieldBitsWhat it does
WINMON2Window Monitor Interrupt Disable
OVERRUN1Overrun Interrupt Disable
RESRDY0Result Ready Interrupt Disable

INTENSETInterrupt Enable Set

Address
0x42003005
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2WINMON
  7. 1OVERRUN
  8. 0RESRDY
3 fields
FieldBitsWhat it does
WINMON2Window Monitor Interrupt Enable
OVERRUN1Overrun Interrupt Enable
RESRDY0Result Ready Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x42003006
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2WINMON
  7. 1OVERRUN
  8. 0RESRDY
3 fields
FieldBitsWhat it does
WINMON2Window Monitor Interrupt Flag
OVERRUN1Overrun Interrupt Flag
RESRDY0Result Ready Interrupt Flag

SEQSTATUSSequence Status

Address
0x42003007
Reset
0x00
Access
read only
  1. 7SEQBUSY
  2. 6–
  3. 5–
  4. 4SEQSTATE4
  5. 3SEQSTATE3
  6. 2SEQSTATE2
  7. 1SEQSTATE1
  8. 0SEQSTATE0
2 fields
FieldBitsWhat it does
SEQBUSY7Sequence Busy
SEQSTATE4:0Sequence State

INPUTCTRLInput Control

Address
0x42003008
Reset
0x0000
Access
read/write
Size
16-bit
2 fields
FieldBitsWhat it does
MUXNEG12:8Negative Mux Input Selection
  • 0 ADC AIN0 Pin
  • 1 ADC AIN1 Pin
  • 2 ADC AIN2 Pin
  • 3 ADC AIN3 Pin
  • 4 ADC AIN4 Pin
  • 5 ADC AIN5 Pin
  • 6 ADC AIN6 Pin
  • 7 ADC AIN7 Pin
  • 24 Internal ground
MUXPOS4:0Positive Mux Input Selection
  • 0 ADC AIN0 Pin
  • 1 ADC AIN1 Pin
  • 2 ADC AIN2 Pin
  • 3 ADC AIN3 Pin
  • 4 ADC AIN4 Pin
  • 5 ADC AIN5 Pin
  • 6 ADC AIN6 Pin
  • 7 ADC AIN7 Pin
  • 8 ADC AIN8 Pin
  • 9 ADC AIN9 Pin
  • 10 ADC AIN10 Pin
  • 11 ADC AIN11 Pin
  • 12 ADC AIN12 Pin
  • 13 ADC AIN13 Pin
  • 14 ADC AIN14 Pin
  • 15 ADC AIN15 Pin
  • 16 ADC AIN16 Pin
  • 17 ADC AIN17 Pin
  • 18 ADC AIN18 Pin
  • 19 ADC AIN19 Pin
  • 25 Bandgap Voltage
  • 26 1/4 Scaled Core Supply
  • 27 1/4 Scaled I/O Supply
  • 29 1/4 Scaled VBAT Supply

CTRLCControl C

Address
0x4200300A
Reset
0x0000
Access
read/write
Size
16-bit
8 fields
FieldBitsWhat it does
DUALSEL13:12Dual Mode Trigger Selection
  • 0 Start event or software trigger will start a conversion on both ADCs
  • 1 START event or software trigger will alternatingly start a conversion on ADC0 and ADC1
WINMODE10:8Window Monitor Mode
  • 0 No window mode (default)
  • 1 RESULT > WINLT
  • 2 RESULT < WINUT
  • 3 WINLT < RESULT < WINUT
  • 4 !(WINLT < RESULT < WINUT)
R2R7Rail-to-Rail mode enable
RESSEL5:4Conversion Result Resolution
  • 0 12-bit result
  • 1 For averaging mode output
  • 2 10-bit result
  • 3 8-bit result
CORREN3Digital Correction Logic Enable
FREERUN2Free Running Mode
LEFTADJ1Left-Adjusted Result
DIFFMODE0Differential Mode

AVGCTRLAverage Control

Address
0x4200300C
Reset
0x00
Access
read/write
  1. 7–
  2. 6ADJRES2
  3. 5ADJRES1
  4. 4ADJRES0
  5. 3SAMPLENUM3
  6. 2SAMPLENUM2
  7. 1SAMPLENUM1
  8. 0SAMPLENUM0
2 fields
FieldBitsWhat it does
ADJRES6:4Adjusting Result / Division Coefficient
SAMPLENUM3:0Number of Samples to be Collected
  • 0 1 sample
  • 1 2 samples
  • 2 4 samples
  • 3 8 samples
  • 4 16 samples
  • 5 32 samples
  • 6 64 samples
  • 7 128 samples
  • 8 256 samples
  • 9 512 samples
  • 10 1024 samples

SAMPCTRLSample Time Control

Address
0x4200300D
Reset
0x00
Access
read/write
  1. 7OFFCOMP
  2. 6–
  3. 5SAMPLEN5
  4. 4SAMPLEN4
  5. 3SAMPLEN3
  6. 2SAMPLEN2
  7. 1SAMPLEN1
  8. 0SAMPLEN0
2 fields
FieldBitsWhat it does
OFFCOMP7Comparator Offset Compensation Enable
SAMPLEN5:0Sampling Time Length

WINLTWindow Monitor Lower Threshold

Address
0x4200300E
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
WINLT15:0Window Lower Threshold

WINUTWindow Monitor Upper Threshold

Address
0x42003010
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
WINUT15:0Window Upper Threshold

GAINCORRGain Correction

Address
0x42003012
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
GAINCORR11:0Gain Correction Value

OFFSETCORROffset Correction

Address
0x42003014
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
OFFSETCORR11:0Offset Correction Value

SWTRIGSoftware Trigger

Address
0x42003018
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1START
  8. 0FLUSH
2 fields
FieldBitsWhat it does
START1Start ADC Conversion
FLUSH0ADC Flush

DBGCTRLDebug Control

Address
0x4200301C
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
DBGRUN0Debug Run

SYNCBUSYSynchronization Busy

Address
0x42003020
Reset
0x0000
Access
read only
Size
16-bit
11 fields
FieldBitsWhat it does
SWTRIG10SWTRG Synchronization Busy
OFFSETCORR9OFFSETCTRL Synchronization Busy
GAINCORR8GAINCORR Synchronization Busy
WINUT7WINUT Synchronization Busy
WINLT6WINLT Synchronization Busy
SAMPCTRL5SAMPCTRL Synchronization Busy
AVGCTRL4AVGCTRL Synchronization Busy
CTRLC3CTRLC Synchronization Busy
INPUTCTRL2INPUTCTRL Synchronization Busy
ENABLE1ENABLE Synchronization Busy
SWRST0SWRST Synchronization Busy

RESULTResult

Address
0x42003024
Reset
0x0000
Access
read only
Size
16-bit
1 field
FieldBitsWhat it does
RESULT15:0Result Value

SEQCTRLSequence Control

Address
0x42003028
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
SEQEN31:0Enable Positive Input in the Sequence

CALIBCalibration

Address
0x4200302C
Reset
0x0000
Access
read/write
Size
16-bit
2 fields
FieldBitsWhat it does
BIASREFBUF10:8Bias Reference Buffer Scaling
BIASCOMP2:0Bias Comparator Scaling