I have my mux set up for channel 0 and the INJ channel.
I can read channel 0 fine with
ADC_IsEndConversion( ADC_WAIT_FOR_RESULT );
data = ADC_GetResult16( 0 );
But the following doesn't work for the Injection Channel:
ADC_IsEndConversion( ADC_WAIT_FOR_RESULT_INJECT );
data = ADC_GetResult16( ADC_SAR_INJ_RESULT_REG );
I can't find example code anywhere. What am I doing wrong? Thanks!
Solved! Go to Solution.