ADC conversion status always busy (non interrupt, one shot, SW triggered - Vector SIP)

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

cross mob
piyush
Level 1
Level 1
First like given First like received First question asked

Hi all.

I intend to read ADC without using interrupt. ADC configured as one-shot, SW triggered.

However, the conversion status comes always busy.

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 (GLOBRESD) are showing the updated values correctly, incl the completion flag (VR). Reading the result register directly using HW address works fine but I want to go by the proper way.

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?

1 Reply
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello,

 

As this is part of MC-ISAR which is licensed, we request you to please contact your local Infineon, distributor or software reseller contact.

 

Regards,

Prudhvi.

0 Likes