If you have an analog signal from some external device, say, a temperature
sensor or something else, that outputs an analog voltage, then you can
connect this analog source directly to the PIC A/D input.
If you're using a potentiometer to simulate the external analog signal, then of
course you'll want one end to Vcc, the other to ground, and the wiper to the
PIC A/D input.
Without one leg of the potentiometer to Vcc you wouldn't have anything but
ground on the PIC A/D input.
Bookmarks