PIC32CM6408MC00048 ADC1 registers

The 22 registers of ADC1 (Analog Digital Converter), from 0x42004800, with their reset value and every field. The PIC32CM6408MC00048 has 1146 registers in 44 peripherals, one page each.

ADC1 Analog Digital Converter

CTRLAControl A

Address
0x42004800
Reset
0x00
Access
read/write
  1. 7ONDEMAND
  2. 6RUNSTDBY
  3. 5SLAVEEN
  4. 4–
  5. 3–
  6. 2–
  7. 1ENABLE
  8. 0SWRST
5 fields
FieldBitsWhat it does
ONDEMAND7On Demand Control
RUNSTDBY6Run During Standby
SLAVEEN5Slave Enable
ENABLE1Enable
SWRST0Software Reset

CTRLBControl B

Address
0x42004801
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
0x42004802
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 VDDANA
  • 2 1/2 VDDANA
  • 3 External Voltage Reference A (shared with DAC)
  • 4 DAC Internal Output
  • 5 VDDANA

EVCTRLEvent Control

Address
0x42004803
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
0x42004804
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
0x42004805
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
0x42004806
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
0x42004807
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
0x42004808
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
  • 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
  • 10 ADC AIN10 Pin
  • 11 ADC AIN11 Pin
  • 25 Internal Voltage Reference
  • 26 1/4 Scaled VDDCORE Supply
  • 27 1/4 Scaled VDDANA Supply

CTRLCControl C

Address
0x4200480A
Reset
0x0000
Access
read/write
Size
16-bit
8 fields
FieldBitsWhat it does
DUALSEL13:12Dual Mode Trigger Selection
  • 0 Start event or software trigger will start a conversion on both ADCs
  • 1 START event or software trigger will alternatively start a conversion on ADC0 and ADC1
WINMODE10:8Window Monitor Mode
  • 0 No window mode (default)
  • 1 RESULT > WINLT
  • 2 RESULT < WINUT
  • 3 WINLT < RESULT < WINUT
  • 4 !(WINLT < RESULT < WINUT)
R2R7Rail-to-Rail mode enable
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
0x4200480C
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
0x4200480D
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
0x4200480E
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
WINLT15:0Window Lower Threshold

WINUTWindow Monitor Upper Threshold

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

GAINCORRGain Correction

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

OFFSETCORROffset Correction

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

SWTRIGSoftware Trigger

Address
0x42004818
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
0x4200481C
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
0x42004820
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
0x42004824
Reset
0x0000
Access
read only
Size
16-bit
1 field
FieldBitsWhat it does
RESULT15:0Result Value

SEQCTRLSequence Control

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

CALIBCalibration

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