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
FieldBitsWhat it does
R2R15Rail to Rail Operation Enable
PRESCALER10:8Prescaler 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
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
SLAVEEN5Slave Enable
DUALSEL4:3Dual 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
ENABLE1Enable
SWRST0Software Reset

EVCTRLEvent Control

Address
0x43002002
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
STARTINV3Start Conversion Event Invert Enable
FLUSHINV2Flush Event Invert Enable
STARTEI1Start Conversion Event Input Enable
FLUSHEI0Flush Event Input Enable

DBGCTRLDebug Control

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

INPUTCTRLInput Control

Address
0x43002004
Reset
0x0000
Access
read/write
Size
16-bit
4 fields
FieldBitsWhat it does
DSEQSTOP15Stop DMA Sequencing
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
DIFFMODE7Differential Mode
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
  • 24 1/4 Scaled VDDCORE Supply
  • 25 1/4 Scaled VBAT Supply
  • 26 1/4 Scaled VDD Supply
  • 27 Bandgap Voltage
  • 30 DAC0 output

CTRLBControl B

Address
0x43002006
Reset
0x0000
Access
read/write
Size
16-bit
6 fields
FieldBitsWhat it does
WINSS11Window Single Sample
WINMODE10:8Window Monitor Mode
  • 0 No window mode (default)
  • 1 RESULT > WINLT
  • 2 RESULT < WINUT
  • 3 WINLT < RESULT < WINUT
  • 4 !(WINLT < RESULT < WINUT)
RESSEL4:3Conversion Result Resolution
  • 0 12-bit result
  • 1 For averaging mode output
  • 2 10-bit result
  • 3 8-bit result
CORREN2Digital Correction Logic Enable
FREERUN1Free Running Mode
LEFTADJ0Left-Adjusted Result

REFCTRLReference Control

Address
0x43002008
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
  • 2 1/2 AVDD
  • 3 AVDD
  • 4 External Reference A
  • 5 External Reference B
  • 6 External Reference C (only on ADC1)

AVGCTRLAverage Control

Address
0x4300200A
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
0x4300200B
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
0x4300200C
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
WINLT15:0Window Lower Threshold

WINUTWindow Monitor Upper Threshold

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

GAINCORRGain Correction

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

OFFSETCORROffset Correction

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

SWTRIGSoftware Trigger

Address
0x43002014
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 Conversion Flush

INTENCLRInterrupt Enable Clear

Address
0x4300202C
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
0x4300202D
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
0x4300202E
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

STATUSStatus

Address
0x4300202F
Reset
0x00
Access
read only
  1. 7WCC5
  2. 6WCC4
  3. 5WCC3
  4. 4WCC2
  5. 3WCC1
  6. 2WCC0
  7. 1–
  8. 0ADCBUSY
2 fields
FieldBitsWhat it does
WCC7:2Window Comparator Counter
ADCBUSY0ADC Busy Status

SYNCBUSYSynchronization Busy

Address
0x43002030
Reset
0x00000000
Access
read only
Size
32-bit
12 fields
FieldBitsWhat it does
SWTRIG11Software Trigger Synchronization Busy
OFFSETCORR10Offset Correction Synchronization Busy
GAINCORR9Gain Correction Synchronization Busy
WINUT8Window Monitor Upper Threshold Synchronization Busy
WINLT7Window Monitor Lower Threshold Synchronization Busy
SAMPCTRL6Sampling Time Control Synchronization Busy
AVGCTRL5Average Control Synchronization Busy
REFCTRL4Reference Control Synchronization Busy
CTRLB3Control B Synchronization Busy
INPUTCTRL2Input Control Synchronization Busy
ENABLE1ENABLE Synchronization Busy
SWRST0SWRST Synchronization Busy

DSEQDATADMA Sequencial Data

Address
0x43002034
Reset
0x00000000
Access
write only
Size
32-bit
1 field
FieldBitsWhat it does
DATA31:0DMA Sequential Data

DSEQCTRLDMA Sequential Control

Address
0x43002038
Reset
0x00000000
Access
read/write
Size
32-bit
10 fields
FieldBitsWhat it does
OFFSETCORR8Offset Correction
GAINCORR7Gain Correction
WINUT6Window Monitor Upper Threshold
WINLT5Window Monitor Lower Threshold
SAMPCTRL4Sampling Time Control
AVGCTRL3Average Control
REFCTRL2Reference Control
CTRLB1Control B
INPUTCTRL0Input Control
AUTOSTART31ADC Auto-Start Conversion

DSEQSTATDMA Sequencial Status

Address
0x4300203C
Reset
0x00000000
Access
read only
Size
32-bit
10 fields
FieldBitsWhat it does
OFFSETCORR8Offset Correction
GAINCORR7Gain Correction
WINUT6Window Monitor Upper Threshold
WINLT5Window Monitor Lower Threshold
SAMPCTRL4Sampling Time Control
AVGCTRL3Average Control
REFCTRL2Reference Control
CTRLB1Control B
INPUTCTRL0Input Control
BUSY31DMA Sequencing Busy

RESULTResult Conversion Value

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

RESSLast Sample Result

Address
0x43002044
Reset
0x0000
Access
read only
Size
16-bit
1 field
FieldBitsWhat it does
RESS15:0Last ADC conversion result

CALIBCalibration

Address
0x43002048
Reset
0x0000
Access
read/write
Size
16-bit
3 fields
FieldBitsWhat it does
BIASREFBUF10:8Bias Reference Buffer Scaling
BIASR2R6:4Bias R2R Ampli scaling
BIASCOMP2:0Bias Comparator Scaling