Tabbot
Joined: 29 Oct 2008 Posts: 2
|
error 76: expect. - adc pic16f877a |
Posted: Fri Oct 31, 2008 5:31 am |
|
|
hi
following code:
long adcTest(long value)
{
setup_adc(ADC_CLOCK_INTERNAL)
---> setup_adc_ports(AN0_AN1_AN3);
set_adc_channel(0);
delay_us(10);
value=read_adc();
return value;
}
after pressing compile I get the above error at the marked line.
If I comment the first three lines (setup adc-set-adc), I get no errors.
thanks in advance.
tabbot. |
|