Quote:
Originally Posted by psy_wombats
It should be normal, something like:
Code:
for (k = 1; k <= NUM_ADC_CHANNELS; k++) {
printf("ADC %d: %d\r\n", k, Get_ADC_Result(k));
}
If you want to get fancy. Make sure the number of ADC channels is set correctly in adc.h. This looks more like an electrical problem though. You may want to check with an oscilloscope that you are actually getting values from the ADC.
|
Get_ADC_Result() returns an unsigned int, so you'll want to use %u in your printf() format string instead of %d.
-Kevin