PIC32CM1216LE00048 ADC registers

The 22 registers of ADC (Analog Digital Converter), from 0x42003800, with their reset value and every field. The PIC32CM1216LE00048 has 1312 registers in 40 peripherals, one page each.

ADC Analog Digital Converter

CTRLAControl A

Address
0x42003800
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
0x42003801
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
0x42003802
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 Voltage Reference
  • 1 1/1.6 AVDD
  • 2 1/2 AVDD
  • 3 External Voltage Reference A (shared with DAC)
  • 4 External Voltage Reference B
  • 5 AVDD

EVCTRLEvent Control

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

INTENCLRInterrupt Enable Clear

Address
0x42003804
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
0x42003805
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
0x42003806
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
0x42003807
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
0x42003808
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
  • 25 Internal Bandgap Voltage
  • 26 1/4 Scaled VDDCORE Supply
  • 27 1/4 Scaled AVDD Supply
  • 28 DAC0 Output
  • 29 1/4 Scaled VDD Supply
  • 30 OPAMP0 or OPAMP1 output
  • 31 OPAMP2 output

CTRLCControl C

Address
0x4200380A
Reset
0x0000
Access
read/write
Size
16-bit
6 fields
FieldBitsWhat it does
WINMODE10:8Window Monitor Mode
  • 0 No window mode (default)
  • 1 RESULT > WINLT
  • 2 RESULT < WINUT
  • 3 WINLT < RESULT < WINUT
  • 4 !(WINLT < RESULT < WINUT)
RESSEL5:4Conversion Result Resolution
  • 0 12-bit result
  • 1 Accumulation or Oversampling and Decimation modes
  • 2 10-bit result
  • 3 8-bit result
CORREN3Digital Correction Logic Enable
FREERUN2Free Running Mode
LEFTADJ1Left-Adjusted Result
DIFFMODE0Differential Mode

AVGCTRLAverage Control

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

WINUTWindow Monitor Upper Threshold

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

GAINCORRGain Correction

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

OFFSETCORROffset Correction

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

SWTRIGSoftware Trigger

Address
0x42003818
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
0x4200381C
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
0x42003820
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
0x42003824
Reset
0x0000
Access
read only
Size
16-bit
1 field
FieldBitsWhat it does
RESULT15:0Result Value

SEQCTRLSequence Control

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

CALIBCalibration

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