Hello everyone,

I have a simple question: I am trying to use the adcin command to get input from a pot source on a 18F4550. I am hacing problems with the defines and setting it up. I assume I want to use "DEFINE ADC_BITS 10" but I am unsure about what else I should do.

DEFINE ADC_SAMPLEUS 10 '(or 50?) What exactly is this?
DEFINE ADC_CLOCK 3 'I am assuming I should use this because I am using a crystal?

And the biggest mystery...the adcon.

I looked at the datasheet for the PIC18F4550 on adcon1 and I don't really understand it. Can anyone help me here or give me a link to a web page or something? Thanks for your help.

-Mike