Jan 20, 2021
10:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 20, 2021
10:39 PM
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!
Solved! Go to Solution.
Labels
- Labels:
-
PSoC general
1 Solution
Jan 21, 2021
06:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 21, 2021
06:14 PM
This is a duplicate post. Topic is handled in PSoC4 section:
1 Reply
Jan 21, 2021
06:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 21, 2021
06:14 PM
This is a duplicate post. Topic is handled in PSoC4 section: