How do you read the ADC_SAR_Seq v2.50 Injection Channel?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
PaDo_1228851
Level 3
Level 3
25 replies posted 10 replies posted 10 questions asked

I have my mux set up for channel 0 and the INJ channel.  

I can read channel 0 fine with

ADC_StartConvert();

ADC_IsEndConversion( ADC_WAIT_FOR_RESULT );

data = ADC_GetResult16( 0 );

But the following doesn't work for the Injection Channel:

ADC_StartConvert();

ADC_EnableInjection();

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!

0 Likes
1 Solution
1 Reply
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted
0 Likes