ADC with PDB Triggering Question S32k144

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

ADC with PDB Triggering Question S32k144

1,731件の閲覧回数
marwanibrahim
Contributor II

Hello,

I am using S32k144 and i want to configure ADC to be triggered with PDB timer which got triggered with TriggerMux.

I want to use ADC without polling for the COCO flag, and without interrupts also, just a timer triggers pdb timer which triggers.

I have some questions:

1- To be able to do that, is it mandatory to configure ADC to work with DMA?

2- If not, am i getting the idea right? if yes, how should the configuration process go?

3- Is there an example for that?

That's for now, appreciate your kind support.

Thank you.

タグ(4)
0 件の賞賛
1 返信

1,672件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you cannot trigger ADC by PDB without reading ADC results. Words from the RM...

"When a pre-trigger from a PDB channel n is asserted, the associated lock of the pre-trigger becomes active. The associated lock is released by the rising edge of the corresponding ADCnSC1[COCO]; the ADCnSC1[COCO] should be cleared after the conversion result is read, so that the next rising edge of ADCnSC1[COCO] can be generated to clear the lock later."

1) to do not operate with interrupt or polling flag the DMA usage is advisable

2-3) you can refer to Example S32K144 PDB ADC trigger DMA ISR S32DS or SDK based examplehttps://community.nxp.com/docs/DOC-343295 .

BR, Petr

0 件の賞賛