ahmet2004
Member level 3

16f88 adc
I am maybe using the wrong PIC for the job...
I, perhaps wrongly, assumed that I could configure the PIC16F88 for three analog inputs. I want to read AN0, AN1, and AN3, not necessarily at the same time, i.e. useconds are not critical. So, since it appears from the header that I can only configure for one ADC at a time, do I have to call a version of these statements every time I want a different channel?:
Kod:
If so, how much time do the extra calls add during execution?
I am maybe using the wrong PIC for the job...
I, perhaps wrongly, assumed that I could configure the PIC16F88 for three analog inputs. I want to read AN0, AN1, and AN3, not necessarily at the same time, i.e. useconds are not critical. So, since it appears from the header that I can only configure for one ADC at a time, do I have to call a version of these statements every time I want a different channel?:
Kod:
Code:
setup_adc_ports (sAN1);
setup_adc(ADC_CLOCK_INTERNAL);
set_adc_channel(1);
setup_timer_0(RTCC_INTERNAL);
If so, how much time do the extra calls add during execution?