Datasheet

2013 Microchip Technology Inc. DS22331A-page 127
MCP19111
22.3 ADC Register Definitions
The following registers are used to control the
operation of the ADC:
REGISTER 22-1: ADCON0: A/D CONTROL REGISTER 0
U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
CHS4 CHS3 CHS2 CHS1 CHS0 GO/DONE ADON
bit 7 bit 0
Legend:
R = Readable bit P = Programmable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7 Unimplemented: Read as ‘0
bit 6-2 CHS<4:0>: Analog Channel Select bits
00000 = VIN_ANA (analog voltage proportional to V
IN
)
00001 = VREGREF (reference voltage for V
REG
output)
00010 = OV_REF (reference for overvoltage comparator)
00011 = UV_REF (reference for undervoltage comparator)
00100 = VBGR (band gap reference)
00101 = INT_VREG (internal version of the V
REG
load voltage)
00110 = CRT (voltage proportional to the current in the inductor)
00111 = VZC (an internal ground, Voltage for Zero Current)
01000 = DEMAND (input to current loop, output of demand mux)
01001 = RELEFF (analog voltage proportional to duty cycle)
01010 = TMP_ANA (analog voltage proportional to temperature)
01011 = ANA_IN (demanded current from the remote master)
01100 = DCI (dc inductor valley current)
01101 = Unimplemented
01110 = Unimplemented
01111 = Unimplemented
10000 = GPA0 (i.e. ADDR1)
10001 = GPA1 (i.e. ADDR0)
10010 = GPA2 (i.e. Temperature Sensor Input)
10011 = GPA3 (i.e. Tracking Voltage)
10100 = GPB1
10101 = GPB2
10110 = GPB4
10111 = GPB5
11000 = Unimplemented
11001 = Unimplemented
11011 = Unimplemented
11100 = Unimplemented
11101 = Unimplemented
11110 = Unimplemented
11111 = Unimplemented
bit 1 GO/DONE
: A/D Conversion Status bit
1 = A/D conversion cycle in progress. Setting this bit starts an A/D conversion cycle.
This bit is automatically cleared by hardware when the A/D conversion has completed.
0 = A/D conversion completed/not in progress
bit 0 ADON: ADC Enable bit
1 = ADC is enabled
0 = ADC is disabled and consumes no operating current