ATSAML21J17B ADC registers The 22 registers of ADC (Analog Digital Converter), from 0x43000C00, with their reset value and every field. The ATSAML21J17B has 1323 registers in 42 peripherals, one page each.
ADC Analog Digital Converter CTRLAControl A
Address 0x43000C00
Reset 0x00
Access read/write 7 ONDEMAND 6 RUNSTDBY 5 – 4 – 3 – 2 – 1 ENABLE 0 SWRST 4 fields
Field Bits What it does ONDEMAND 7 On Demand Control RUNSTDBY 6 Run during Standby ENABLE 1 Enable SWRST 0 Software Reset
CTRLBControl B
Address 0x43000C01
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 PRESCALER2 1 PRESCALER1 0 PRESCALER0 1 field
Field Bits What it does PRESCALER 2:0 Prescaler Configuration0 Peripheral clock divided by 21 Peripheral clock divided by 42 Peripheral clock divided by 83 Peripheral clock divided by 164 Peripheral clock divided by 325 Peripheral clock divided by 646 Peripheral clock divided by 1287 Peripheral clock divided by 256
REFCTRLReference Control
Address 0x43000C02
Reset 0x00
Access read/write 7 REFCOMP 6 – 5 – 4 – 3 REFSEL3 2 REFSEL2 1 REFSEL1 0 REFSEL0 2 fields
Field Bits What it does REFCOMP 7 Reference Buffer Offset Compensation Enable REFSEL 3:0 Reference Selection0 Internal Bandgap Reference1 1/1.6 VDDANA2 1/2 VDDANA3 External Reference4 External Reference5 VDDANA
EVCTRLEvent Control
Address 0x43000C03
Reset 0x00
Access read/write 7 – 6 – 5 WINMONEO 4 RESRDYEO 3 STARTINV 2 FLUSHINV 1 STARTEI 0 FLUSHEI 6 fields
Field Bits What it does WINMONEO 5 Window Monitor Event Out RESRDYEO 4 Result Ready Event Out STARTINV 3 Satrt Event Invert Enable FLUSHINV 2 Flush Event Invert Enable STARTEI 1 Start Conversion Event Input Enable FLUSHEI 0 Flush Event Input Enable
INTENCLRInterrupt Enable Clear
Address 0x43000C04
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 WINMON 1 OVERRUN 0 RESRDY 3 fields
Field Bits What it does WINMON 2 Window Monitor Interrupt Disable OVERRUN 1 Overrun Interrupt Disable RESRDY 0 Result Ready Interrupt Disable
INTENSETInterrupt Enable Set
Address 0x43000C05
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 WINMON 1 OVERRUN 0 RESRDY 3 fields
Field Bits What it does WINMON 2 Window Monitor Interrupt Enable OVERRUN 1 Overrun Interrupt Enable RESRDY 0 Result Ready Interrupt Enable
INTFLAGInterrupt Flag Status and Clear
Address 0x43000C06
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 WINMON 1 OVERRUN 0 RESRDY 3 fields
Field Bits What it does WINMON 2 Window Monitor Interrupt Flag OVERRUN 1 Overrun Interrupt Flag RESRDY 0 Result Ready Interrupt Flag
SEQSTATUSSequence Status
Address 0x43000C07
Reset 0x00
Access read only 7 SEQBUSY 6 – 5 – 4 SEQSTATE4 3 SEQSTATE3 2 SEQSTATE2 1 SEQSTATE1 0 SEQSTATE0 2 fields
Field Bits What it does SEQBUSY 7 Sequence Busy SEQSTATE 4:0 Sequence State
INPUTCTRLInput Control
Address 0x43000C08
Reset 0x0000
Access read/write
Size 16-bit 2 fields
Field Bits What it does MUXNEG 12:8 Negative Mux Input Selection0 ADC AIN0 Pin1 ADC AIN1 Pin2 ADC AIN2 Pin3 ADC AIN3 Pin4 ADC AIN4 Pin5 ADC AIN5 Pin6 ADC AIN6 Pin7 ADC AIN7 Pin24 Internal ground MUXPOS 4:0 Positive Mux Input Selection0 ADC AIN0 Pin1 ADC AIN1 Pin2 ADC AIN2 Pin3 ADC AIN3 Pin4 ADC AIN4 Pin5 ADC AIN5 Pin6 ADC AIN6 Pin7 ADC AIN7 Pin8 ADC AIN8 Pin9 ADC AIN9 Pin10 ADC AIN10 Pin11 ADC AIN11 Pin12 ADC AIN12 Pin13 ADC AIN13 Pin14 ADC AIN14 Pin15 ADC AIN15 Pin16 ADC AIN16 Pin17 ADC AIN17 Pin18 ADC AIN18 Pin19 ADC AIN19 Pin24 Temperature Sensor25 Bandgap Voltage26 1/4 Scaled Core Supply27 1/4 Scaled I/O Supply28 DAC Output29 1/4 Scaled VBAT Supply30 OPAMP0 or OPAMP1 output31 OPAMP2 output
CTRLCControl C
Address 0x43000C0A
Reset 0x0000
Access read/write
Size 16-bit 6 fields
Field Bits What it does WINMODE 10:8 Window Monitor Mode0 No window mode (default)1 RESULT > WINLT2 RESULT < WINUT3 WINLT < RESULT < WINUT4 !(WINLT < RESULT < WINUT) RESSEL 5:4 Conversion Result Resolution0 12-bit result1 For averaging mode output2 10-bit result3 8-bit result CORREN 3 Digital Correction Logic Enable FREERUN 2 Free Running Mode LEFTADJ 1 Left-Adjusted Result DIFFMODE 0 Differential Mode
AVGCTRLAverage Control
Address 0x43000C0C
Reset 0x00
Access read/write 7 – 6 ADJRES2 5 ADJRES1 4 ADJRES0 3 SAMPLENUM3 2 SAMPLENUM2 1 SAMPLENUM1 0 SAMPLENUM0 2 fields
Field Bits What it does ADJRES 6:4 Adjusting Result / Division Coefficient SAMPLENUM 3:0 Number of Samples to be Collected0 1 sample1 2 samples2 4 samples3 8 samples4 16 samples5 32 samples6 64 samples7 128 samples8 256 samples9 512 samples10 1024 samples
SAMPCTRLSample Time Control
Address 0x43000C0D
Reset 0x00
Access read/write 7 OFFCOMP 6 – 5 SAMPLEN5 4 SAMPLEN4 3 SAMPLEN3 2 SAMPLEN2 1 SAMPLEN1 0 SAMPLEN0 2 fields
Field Bits What it does OFFCOMP 7 Comparator Offset Compensation Enable SAMPLEN 5:0 Sampling Time Length
WINLTWindow Monitor Lower Threshold
Address 0x43000C0E
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does WINLT 15:0 Window Lower Threshold
WINUTWindow Monitor Upper Threshold
Address 0x43000C10
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does WINUT 15:0 Window Upper Threshold
GAINCORRGain Correction
Address 0x43000C12
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does GAINCORR 11:0 Gain Correction Value
OFFSETCORROffset Correction
Address 0x43000C14
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does OFFSETCORR 11:0 Offset Correction Value
SWTRIGSoftware Trigger
Address 0x43000C18
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 START 0 FLUSH 2 fields
Field Bits What it does START 1 Start ADC Conversion FLUSH 0 ADC Flush
DBGCTRLDebug Control
Address 0x43000C1C
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 – 0 DBGRUN 1 field
Field Bits What it does DBGRUN 0 Debug Run
SYNCBUSYSynchronization Busy
Address 0x43000C20
Reset 0x0000
Access read only
Size 16-bit 11 fields
Field Bits What it does SWTRIG 10 SWTRG Synchronization Busy OFFSETCORR 9 OFFSETCTRL Synchronization Busy GAINCORR 8 GAINCORR Synchronization Busy WINUT 7 WINUT Synchronization Busy WINLT 6 WINLT Synchronization Busy SAMPCTRL 5 SAMPCTRL Synchronization Busy AVGCTRL 4 AVGCTRL Synchronization Busy CTRLC 3 CTRLC Synchronization Busy INPUTCTRL 2 INPUTCTRL Synchronization Busy ENABLE 1 ENABLE Synchronization Busy SWRST 0 SWRST Synchronization Busy
RESULTResult
Address 0x43000C24
Reset 0x0000
Access read only
Size 16-bit 1 field
Field Bits What it does RESULT 15:0 Result Value
SEQCTRLSequence Control
Address 0x43000C28
Reset 0x00000000
Access read/write
Size 32-bit 1 field
Field Bits What it does SEQEN 31:0 Enable Positive Input in the Sequence
CALIBCalibration
Address 0x43000C2C
Reset 0x0000
Access read/write
Size 16-bit 2 fields
Field Bits What it does BIASREFBUF 10:8 Bias Reference Buffer Scaling BIASCOMP 2:0 Bias Comparator Scaling