Quote:
I have been understanding ADC, but the PBP manual only shows the option 3 (RC)
not really it says
Quote:
DEFINE ADC_CLOCK 3 ' Set clock source (rc =3)
The ADC_CLOCK value corresponds to a value set with 2-5 bits in a register within
the PIC MCU. In most cases, the default value of 3 (binary %11) selects an
independent RC clock that returns an accurate conversion result without regard for
the system clock frequency. Conversion execution time may be enhanced in some
cases by changing this setting.
Quote:
when defining its clock letting in the nothing the explanation of the options 0 to 2 (that is an omission in the manual). Is this (3) the best option to use de ADC? Or maybe the only one reasonable?
you need to read the data sheet to see what your options are , not all pics are the same ,and osc speed matters
for a pic18f4550 @20mHz the rc clock [3] is a poor choice (see data sheet) , fastest conversion time needs DEFINE ADC_CLOCK 5 ' Set clock source (fosc/16), (2 and 6 would probably also be ok)
Quote:
I saw in the 4550 manual about the tad and fosc selections but I suppose that PBP makes that I can ignore them. Am I right?
no acquisition time varies with source impedence and the conversion clk needs to be appropriate .