S32k116 ADC Polling not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32k116 ADC Polling not working

ソリューションへジャンプ
1,098件の閲覧回数
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,070件の閲覧回数
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,071件の閲覧回数
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 件の賞賛
返信