Hi All,

I'm using a new PIC here, the PIC16F688 and using the ADC port. However, I could sure use some setup help if anyone can lend a hand.

I need to setup (RA2 - AN2) and (RA4 - AN3) and ADC ports. All other ports we will be using them as I/O.

I'm assuming we setup the ADC inputs this way:

DEFINE ADC_BITS 10 ' 10 bit ADC
DEFINE ADC_CLOCK 3 ' use RC clock
DEFINE ADC_SAMPLEUS 250 ' 250ms sample time

But I could use some help with the following registers:

ADCON1
CCP1CON
OPTION_REG
OSCCON "To set the frequency of the internal oscillator to 4MHz, since it defaults to 31KHz"

TRISA
TRISC



Thanks!