Not applicable
Oct 05, 2015
04:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 05, 2015
04:13 AM
5 Replies
Not applicable
Oct 06, 2015
09:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 06, 2015
09:35 AM
Hi Thomas,
maybe you try:
ResultA = // Get result from ADC Channel A
XMC_VADC_GROUP_GetResult
(ADC_MEASUREMENT_Channel_A.group_handle,
ADC_MEASUREMENT_Channel_A.ch_handle->result_reg_number);
ResultB = // Get result from ADC Channel B
XMC_VADC_GROUP_GetResult
(ADC_MEASUREMENT_Channel_B.group_handle,
ADC_MEASUREMENT_Channel_B.ch_handle->result_reg_number);
Same for channel C.
Make sure that your conversion has been completed:
Kind regards
Kurt
maybe you try:
ResultA = // Get result from ADC Channel A
XMC_VADC_GROUP_GetResult
(ADC_MEASUREMENT_Channel_A.group_handle,
ADC_MEASUREMENT_Channel_A.ch_handle->result_reg_number);
ResultB = // Get result from ADC Channel B
XMC_VADC_GROUP_GetResult
(ADC_MEASUREMENT_Channel_B.group_handle,
ADC_MEASUREMENT_Channel_B.ch_handle->result_reg_number);
Same for channel C.
Make sure that your conversion has been completed:
Kind regards
Kurt
Not applicable
Oct 06, 2015
07:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 06, 2015
07:53 PM
HI,
In the ADC_MEASUREMENT APP, the measurement names for the analog inputs are Poti1, Poti2, Poti3.
You should be able to read results through the APIs.
result_potentiometer1 = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_Poti1);
result_potentiometer2 = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_Poti2);
result_potentiometer3 = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_Poti3);
Regards,
Daryl
In the ADC_MEASUREMENT APP, the measurement names for the analog inputs are Poti1, Poti2, Poti3.
You should be able to read results through the APIs.
result_potentiometer1 = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_Poti1);
result_potentiometer2 = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_Poti2);
result_potentiometer3 = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT_Poti3);
Regards,
Daryl
Not applicable
Oct 07, 2015
12:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 07, 2015
12:34 AM
i tried your solution. But this isn't working.
the name of my analog app is: "AnalaogInputs"
the name of the 3 channels are actually : CurrentOutput0, CurrentOutput1 and CurrentOutput1
when I use your solution like this: "CurrentOutputsHV[0] = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT.CurrentOutput0);"
I can compile but I get an warning and it's now working on the target.
You can see the error message in the attachment.
hopefully you have a final solution for me ? Or I'm to stupid to understand you soltion?
I prefor your soltion in comparison of the answer from Kurt. Because I would like to use the app solution.
thanks a lot
Best Regards Thomas
the name of my analog app is: "AnalaogInputs"
the name of the 3 channels are actually : CurrentOutput0, CurrentOutput1 and CurrentOutput1
when I use your solution like this: "CurrentOutputsHV[0] = ADC_MEASUREMENT_GetResult(&ADC_MEASUREMENT.CurrentOutput0);"
I can compile but I get an warning and it's now working on the target.
You can see the error message in the attachment.
hopefully you have a final solution for me ? Or I'm to stupid to understand you soltion?
I prefor your soltion in comparison of the answer from Kurt. Because I would like to use the app solution.
thanks a lot
Best Regards Thomas
Not applicable
Oct 07, 2015
12:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 07, 2015
12:35 AM
can you also help me with this problem please??
which forum is the best for this issue? You moved also my other problem.
thanks
which forum is the best for this issue? You moved also my other problem.
thanks
Attachments are accessible only for community members.
Not applicable
Nov 01, 2015
07:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 01, 2015
07:26 PM
HI,
Since this is an DAVE APP related issue, I shifted this here to the DAVE Forum.
The analog-to-digital converter (ADC) in XMC1100 series provides a subset of functions compared to the feature-rich VADC (versatile analog-to-digital converter) which is
implemented in XMC1200 and XMC1300 series. The XMC1100 provides a series of analog input channels combined into two groups. Therefore, the solution I provided above cannot be easily used for XMC1100.
For this, we need to use the API: ADC_MEASUREMENT_GetDetailedResult(&ADC_MEASUREMENT_0). An example for how they can be used is provided in the example project attached. Let me know if it works for you.
Regards,
Daryl 🙂
Since this is an DAVE APP related issue, I shifted this here to the DAVE Forum.
The analog-to-digital converter (ADC) in XMC1100 series provides a subset of functions compared to the feature-rich VADC (versatile analog-to-digital converter) which is
implemented in XMC1200 and XMC1300 series. The XMC1100 provides a series of analog input channels combined into two groups. Therefore, the solution I provided above cannot be easily used for XMC1100.
For this, we need to use the API: ADC_MEASUREMENT_GetDetailedResult(&ADC_MEASUREMENT_0). An example for how they can be used is provided in the example project attached. Let me know if it works for you.
Regards,
Daryl 🙂