PIC32CM3204JH00064 ADC0 registers The 22 registers of ADC0 (Analog Digital Converter), from 0x42004400, with their reset value and every field. The PIC32CM3204JH00064 has 977 registers in 39 peripherals, one page each.
ADC0 Analog Digital Converter CTRLAControl A
Address 0x42004400
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 0x42004401
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 / 21 Peripheral clock / 42 Peripheral clock / 83 Peripheral clock / 164 Peripheral clock / 325 Peripheral clock / 646 Peripheral clock / 1287 Peripheral clock / 256
REFCTRLReference Control
Address 0x42004402
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 Voltage Reference1 1/1.6 AVDD2 1/2 AVDD3 External Voltage Reference A (shared with DAC)5 AVDD
EVCTRLEvent Control
Address 0x42004403
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 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 0x42004404
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 0x42004405
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 0x42004406
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 0x42004407
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 0x42004408
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 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 Pin25 Internal Voltage Reference26 1/4 Scaled VDDCORE Supply27 1/4 Scaled AVDD Supply
CTRLCControl C
Address 0x4200440A
Reset 0x0000
Access read/write
Size 16-bit 7 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) R2R 7 Rail-to-Rail mode enable RESSEL 5:4 Conversion Result Resolution0 12-bit1 16-bit averaging mode2 10-bit3 8-bit CORREN 3 Digital Correction Logic Enable FREERUN 2 Free Running Mode LEFTADJ 1 Left-Adjusted Result DIFFMODE 0 Differential Mode
AVGCTRLAverage Control
Address 0x4200440C
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 0x4200440D
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 0x4200440E
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 0x42004410
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does WINUT 15:0 Window Upper Threshold
GAINCORRGain Correction
Address 0x42004412
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does GAINCORR 11:0 Gain Correction Value
OFFSETCORROffset Correction
Address 0x42004414
Reset 0x0000
Access read/write
Size 16-bit 1 field
Field Bits What it does OFFSETCORR 11:0 Offset Correction Value
SWTRIGSoftware Trigger
Address 0x42004418
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 0x4200441C
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 0x42004420
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 0x42004424
Reset 0x0000
Access read only
Size 16-bit 1 field
Field Bits What it does RESULT 15:0 Result Value
SEQCTRLSequence Control
Address 0x42004428
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 0x4200442C
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