|
Re: RC Analog
We use the following lines to read an ultrasonic sensor...
uProximityRaw = Get_ADC_Result(RHS_PROXIMITY_LEFT);
uProximityMv = Convert_ADC_to_mV(uProximityRaw);
... and it absolutely works. So you must not have Kevin's ADC stuff set up correctly. If this does not compile, make sure that adc.c is in your project, follow the directions in adc.h for configuration and make sure to put the following line in all source files where you call Get_ADC_Result(x).
#include "adc.h"
HTH
|