I apologize in advance for such an elementary question. I can't get the ADC on a DSP56F807 to record a measurment. The following is the code (related to the ADC) I am using. The variable "value" does not change after the AD1 code is executed. Is there something additional that I need to add to my code?
float value;
void main(void) { ...
AD1_Enable();
AD1_MeasureChan(TRUE, 0);
AD1_GetChanValue(0, &value);
Also, if there are any examples of using ADC with the ADC bean I would greatly appreciate a link.
Hello, The code seems correct except the type of the value variable. The ADC native result is integer value si it needs to be declared as the 'word', not 'float'. best regards Petr Hradsky Processor Expert Support Team UNIS