I just started using the PIC18F4520 and trying the ADC conversion in proteus and have many doubts
1) In proteus i have connected a 10MZ crystal with the HS configuration and i also see that when i edit the PIC settings in there is again a option for CPU clock there.
so which clock should i use, do i set both to 10Mhz ? or i set the CPU clock to 10Mhz/4 and keep the ocillator clock to 10Mz or i remove the crytal and set the clock to 10Mhz directly from the options ?
2) I just started with the ADC and needed some advice
I need the ADC conversion to occur as fast as possible. But it cannot be less than 1.6us as i suppose. For my clock of 10Mhz, Fosc/16=1.6us while Fosc/32=3.2us just to be safe i have chosen Fosc/32. Can i choose Fosc/16 and get accurate results ? . Also since my Tad is now 3.2us i have chosen acquisition time of 4Tad
To get fastest conversion and accurate conversion what changes i have to make ? which config gives the fatest results ?