ATSAMHA0G16AB ADC registers

The 20 registers of ADC (Analog Digital Converter), from 0x42004000, with their reset value and every field. The ATSAMHA0G16AB has 990 registers in 36 peripherals, one page each.

ADC Analog Digital Converter

CTRLAControl A

Address
0x42004000
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2RUNSTDBY
  7. 1ENABLE
  8. 0SWRST
3 fields
FieldBitsWhat it does
RUNSTDBY2Run in Standby
ENABLE1Enable
SWRST0Software Reset

REFCTRLReference Control

Address
0x42004001
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 1.0V voltage reference
  • 1 1/1.48 VDDANA
  • 2 1/2 VDDANA (only for VDDANA > 2.0V)
  • 3 External reference A
  • 4 External reference B

AVGCTRLAverage Control

Address
0x42004002
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

SAMPCTRLSampling Time Control

Address
0x42004003
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5SAMPLEN5
  4. 4SAMPLEN4
  5. 3SAMPLEN3
  6. 2SAMPLEN2
  7. 1SAMPLEN1
  8. 0SAMPLEN0
1 field
FieldBitsWhat it does
SAMPLEN5:0Sampling Time Length

CTRLBControl B

Address
0x42004004
Reset
0x0000
Access
read/write
Size
16-bit
6 fields
FieldBitsWhat it does
PRESCALER10:8Prescaler Configuration
  • 0 Peripheral clock divided by 4
  • 1 Peripheral clock divided by 8
  • 2 Peripheral clock divided by 16
  • 3 Peripheral clock divided by 32
  • 4 Peripheral clock divided by 64
  • 5 Peripheral clock divided by 128
  • 6 Peripheral clock divided by 256
  • 7 Peripheral clock divided by 512
RESSEL5:4Conversion Result Resolution
  • 0 12-bit result
  • 1 16-bit averaging mode
  • 2 10-bit result
  • 3 8-bit result
CORREN3Digital Correction Logic Enabled
FREERUN2Free Running Mode
LEFTADJ1Left-Adjusted Result
DIFFMODE0Differential Mode

WINCTRLWindow Monitor Control

Address
0x42004008
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2WINMODE2
  7. 1WINMODE1
  8. 0WINMODE0
1 field
FieldBitsWhat it does
WINMODE2:0Window Monitor Mode
  • 0 No window mode (default)
  • 1 Mode 1: RESULT > WINLT
  • 2 Mode 2: RESULT < WINUT
  • 3 Mode 3: WINLT < RESULT < WINUT
  • 4 Mode 4: !(WINLT < RESULT < WINUT)

SWTRIGSoftware Trigger

Address
0x4200400C
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
START1ADC Start Conversion
FLUSH0ADC Conversion Flush

INPUTCTRLInput Control

Address
0x42004010
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
FieldBitsWhat it does
GAIN27:24Gain Factor Selection
  • 0 1x
  • 1 2x
  • 2 4x
  • 3 8x
  • 4 16x
  • 15 1/2x
INPUTOFFSET23:20Positive Mux Setting Offset
INPUTSCAN19:16Number of Input Channels Included in Scan
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
  • 25 I/O 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
  • 24 Temperature Reference
  • 25 Bandgap Voltage
  • 26 1/4 Scaled Core Supply
  • 27 1/4 Scaled I/O Supply
  • 28 DAC Output

EVCTRLEvent Control

Address
0x42004014
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5WINMONEO
  4. 4RESRDYEO
  5. 3–
  6. 2–
  7. 1SYNCEI
  8. 0STARTEI
4 fields
FieldBitsWhat it does
WINMONEO5Window Monitor Event Out
RESRDYEO4Result Ready Event Out
SYNCEI1Synchronization Event In
STARTEI0Start Conversion Event In

INTENCLRInterrupt Enable Clear

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

INTENSETInterrupt Enable Set

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

INTFLAGInterrupt Flag Status and Clear

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

STATUSStatus

Address
0x42004019
Reset
0x00
Access
read only
  1. 7SYNCBUSY
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–
1 field
FieldBitsWhat it does
SYNCBUSY7Synchronization Busy

RESULTResult

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

WINLTWindow Monitor Lower Threshold

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

WINUTWindow Monitor Upper Threshold

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

GAINCORRGain Correction

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

OFFSETCORROffset Correction

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

CALIBCalibration

Address
0x42004028
Reset
0x0000
Access
read/write
Size
16-bit
2 fields
FieldBitsWhat it does
BIAS_CAL10:8Bias Calibration Value
LINEARITY_CAL7:0Linearity Calibration Value

DBGCTRLDebug Control

Address
0x4200402A
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