S32k116 ADC Polling not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32k116 ADC Polling not working

Jump to solution
1,094 Views
MohameddRIAD
Contributor II

Hi,

I've been working on S32k116 EVB and using SW32K1_RTD_4.4_1.0.1 AUTOSAR MCAL , I have been configuring on tresos a group with 1 channel with the following properties: Single_access_Mode , One_Shot , SW_triggered , without Interrupts nor DMA.

the problem is when I try to implement the sequence diagram in the AUTOSAR ADC "Software triggered One-Shot conversion without notification"  , the api: Adc_GetGroupStatus  only returns the value of the conversion " TempReturn = Adc_axGroupStatus[Group].Conversion;" so the status is always ADC_BUSY.

My question is if the ADC driver is limited to work only using Interrupts or DMA ? I cannot use polling without a notification ( Interrupt).


0 Kudos
Reply
1 Solution
1,066 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @MohameddRIAD 

ADC does not have a polling mode. As you said it works with DMA or interrupts.

I could suggest you the application note: S32K1xx ADC guidelines, spec and configuration.

 

B.R.

VaneB

View solution in original post

0 Kudos
Reply
1 Reply
1,067 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @MohameddRIAD 

ADC does not have a polling mode. As you said it works with DMA or interrupts.

I could suggest you the application note: S32K1xx ADC guidelines, spec and configuration.

 

B.R.

VaneB

0 Kudos
Reply