- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
However I have problems.. about ADC.
I want to read ADC Value.. but i Can't
Result_ADC_Status is 1 (ADC_BUSY)
what should i check?? plz help me..
Adc_SetupResultBuffer(AdcConf_AdcGroup_AdcGroup_Voltage, &Adc_Voltage[0]);
while(1){
Adc_StartGroupConversion(AdcConf_AdcGroup_AdcGroup_Voltage);
Result_ADC_Status = Adc_GetGroupStatus(AdcConf_AdcGroup_AdcGroup_Voltage);
}
Solved! Go to Solution.
- Tags:
- IFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KKV,
In the TC2X, according to the user manual it supports polling mode, but there are some limits of using it.
refer to this function: Adc_17_GetChannelStatus
While in the TC3X, ADC polling mode is not supported in MCAL. The ADC group status is updated in ADC interrupt routines. Adc_ReadGroup checks for the group status and assumes that there are no ADC results available, due to missing update in interrupt routines . Therefore ADC interrupt is required - then polling for ADC_COMPLETED status is supported.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I too have the same problem. I intend to read ADC without interrupt service, one-shot, SW triggered.
Clock and other configurations look ok.
As I debugged, the Adc_GetGroupStatus API is checking for conversion status through a flag which is set only by "Adc_lSetResBuffEndStatusAtomic". This function, in turn, is called only within the interrupt services. Therefore, I am never getting a completion status.
However, the ADC group result registers are showing the updated values correctly, incl the completion flag (VR).
Can anyone help on this?
To summarize, I intent to read the ADC without interrupt service, just by polling. How do I get rid of the perpetual Busy status?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi piyush,
Have you read the above document and the source code you can download here:
https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples
dw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am facing similar issues, can any one provide some pointers..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KKV,
In the TC2X, according to the user manual it supports polling mode, but there are some limits of using it.
refer to this function: Adc_17_GetChannelStatus
While in the TC3X, ADC polling mode is not supported in MCAL. The ADC group status is updated in ADC interrupt routines. Adc_ReadGroup checks for the group status and assumes that there are no ADC results available, due to missing update in interrupt routines . Therefore ADC interrupt is required - then polling for ADC_COMPLETED status is supported.
Thanks