S32k116 ADC Polling not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32k116 ADC Polling not working

跳至解决方案
1,102 次查看
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 项奖励
回复
1 解答
1,074 次查看
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 项奖励
回复
1 回复
1,075 次查看
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 项奖励
回复