|
Re: We need help with the analog inputs
ADC_CH0 is defined in adc.h, which should be located in the compiler's directory. mcc18v2 in my case. rc_ana_in01 is defined in ifi_aliases.h which includes adc.h.
If the compiler can't find these .h files I would think that it should have given you an error saying it can't find the .h file.
From teleop.c double check that you have all the .h files included. Look at adc.h to see if there is any problems with it, and that you see ADC_CH0 is defined there.
The only other thing I can think of is check to see if you have selected the correct device. We are using the PIC18F8722. To see if you have it right, select Configure|Select Device... and you should have PIC18F8722.
-jim
Last edited by JimWright949 : 06-02-2008 at 15:21.
|