PIC32CX1025SG61100 ADC1 registers The 24 registers of ADC1 (Analog Digital Converter), from 0x43002000, with their reset value and every field. The PIC32CX1025SG61100 has 2953 registers in 69 peripherals, one page each.
ADC1 Analog Digital Converter CTRLAControl A
Address 0x43002000
Reset 0x0000
Access read/write
Size 16-bit 8 fields
Field Bits What it does R2R 15 Rail to Rail Operation Enable PRESCALER 10:8 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 ONDEMAND 7 On Demand Control RUNSTDBY 6 Run in Standby SLAVEEN 5 Slave Enable DUALSEL 4:3 Dual Mode Trigger Selection0 Start event or software trigger will start a conversion on both ADCs1 START event or software trigger will alternatingly start a conversion on ADC0 and ADC1 ENABLE 1 Enable SWRST 0 Software Reset
EVCTRLEvent Control
Address 0x43002002
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 Start Conversion Event Invert Enable FLUSHINV 2 Flush Event Invert Enable STARTEI 1 Start Conversion Event Input Enable FLUSHEI 0 Flush Event Input Enable
DBGCTRLDebug Control
Address 0x43002003
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
INPUTCTRLInput Control
Address 0x43002004
Reset 0x0000
Access read/write
Size 16-bit 4 fields
Field Bits What it does DSEQSTOP 15 Stop DMA Sequencing 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 DIFFMODE 7 Differential Mode 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 Pin24 1/4 Scaled VDDCORE Supply25 1/4 Scaled VBAT Supply26 1/4 Scaled VDD Supply27 Bandgap Voltage30 DAC0 output
CTRLBControl B
Address 0x43002006
Reset 0x0000
Access read/write
Size 16-bit 6 fields
Field Bits What it does WINSS 11 Window Single Sample WINMODE 10:8 Window Monitor Mode0 No window mode (default)1 RESULT > WINLT2 RESULT < WINUT3 WINLT < RESULT < WINUT4 !(WINLT < RESULT < WINUT) RESSEL 4:3 Conversion Result Resolution0 12-bit result1 For averaging mode output2 10-bit result3 8-bit result CORREN 2 Digital Correction Logic Enable FREERUN 1 Free Running Mode LEFTADJ 0 Left-Adjusted Result
REFCTRLReference Control
Address 0x43002008
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 Reference2 1/2 AVDD3 AVDD4 External Reference A5 External Reference B6 External Reference C (only on ADC1)
AVGCTRLAverage Control
Address 0x4300200A
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 0x4300200B
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 0x4300200C
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 0x4300200E
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does WINUT 15:0 Window Upper Threshold
GAINCORRGain Correction
Address 0x43002010
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does GAINCORR 11:0 Gain Correction Value
OFFSETCORROffset Correction
Address 0x43002012
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does OFFSETCORR 11:0 Offset Correction Value
SWTRIGSoftware Trigger
Address 0x43002014
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 Conversion Flush
INTENCLRInterrupt Enable Clear
Address 0x4300202C
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 0x4300202D
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 0x4300202E
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
STATUSStatus
Address 0x4300202F
Reset 0x00
Access read only 7 WCC5 6 WCC4 5 WCC3 4 WCC2 3 WCC1 2 WCC0 1 – 0 ADCBUSY 2 fields
Field Bits What it does WCC 7:2 Window Comparator Counter ADCBUSY 0 ADC Busy Status
SYNCBUSYSynchronization Busy
Address 0x43002030
Reset 0x00000000
Access read only
Size 32-bit 12 fields
Field Bits What it does SWTRIG 11 Software Trigger Synchronization Busy OFFSETCORR 10 Offset Correction Synchronization Busy GAINCORR 9 Gain Correction Synchronization Busy WINUT 8 Window Monitor Upper Threshold Synchronization Busy WINLT 7 Window Monitor Lower Threshold Synchronization Busy SAMPCTRL 6 Sampling Time Control Synchronization Busy AVGCTRL 5 Average Control Synchronization Busy REFCTRL 4 Reference Control Synchronization Busy CTRLB 3 Control B Synchronization Busy INPUTCTRL 2 Input Control Synchronization Busy ENABLE 1 ENABLE Synchronization Busy SWRST 0 SWRST Synchronization Busy
DSEQDATADMA Sequencial Data
Address 0x43002034
Reset 0x00000000
Access write only
Size 32-bit 1 field
Field Bits What it does DATA 31:0 DMA Sequential Data
DSEQCTRLDMA Sequential Control
Address 0x43002038
Reset 0x00000000
Access read/write
Size 32-bit 10 fields
Field Bits What it does OFFSETCORR 8 Offset Correction GAINCORR 7 Gain Correction WINUT 6 Window Monitor Upper Threshold WINLT 5 Window Monitor Lower Threshold SAMPCTRL 4 Sampling Time Control AVGCTRL 3 Average Control REFCTRL 2 Reference Control CTRLB 1 Control B INPUTCTRL 0 Input Control AUTOSTART 31 ADC Auto-Start Conversion
DSEQSTATDMA Sequencial Status
Address 0x4300203C
Reset 0x00000000
Access read only
Size 32-bit 10 fields
Field Bits What it does OFFSETCORR 8 Offset Correction GAINCORR 7 Gain Correction WINUT 6 Window Monitor Upper Threshold WINLT 5 Window Monitor Lower Threshold SAMPCTRL 4 Sampling Time Control AVGCTRL 3 Average Control REFCTRL 2 Reference Control CTRLB 1 Control B INPUTCTRL 0 Input Control BUSY 31 DMA Sequencing Busy
RESULTResult Conversion Value
Address 0x43002040
Reset 0x0000
Access read only
Size 16-bit 1 field
Field Bits What it does RESULT 15:0 Result Conversion Value
RESSLast Sample Result
Address 0x43002044
Reset 0x0000
Access read only
Size 16-bit 1 field
Field Bits What it does RESS 15:0 Last ADC conversion result
CALIBCalibration
Address 0x43002048
Reset 0x0000
Access read/write
Size 16-bit 3 fields
Field Bits What it does BIASREFBUF 10:8 Bias Reference Buffer Scaling BIASR2R 6:4 Bias R2R Ampli scaling BIASCOMP 2:0 Bias Comparator Scaling