i.mx7 ULP - Example for using ADC together with eDMA required

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

i.mx7 ULP - Example for using ADC together with eDMA required

1,694件の閲覧回数
klaas
Contributor III

Hi all,

I'm trying to setup the internal ADC of an i.mx7 ULP using DMA transfers. Unfortunately I can't find any examples (there is only a polling and an interrupt example).

Also I don't really succeed implementing it using the reference manual. I think I mangaged to setup the DMAMUX properly but after that I have no clue on how to continue.

Can anyone provide an example?

Thanks
Klaas

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

1,667件の閲覧回数
klaas
Contributor III

Hi Igor, thanks for your reply. Unfortunately it is not really obvious how to connect both examples.

It's clear that I can enable the ADC interrupt with the IE register. But where can I set the destination adress, where the DMA should write the value to? And where can I configure the interrupt, that let's me know when the DMA finished writing a value?
Do I need to enable the DMA again after every read like it is done in the edma_lpuart example?

Thanks
Klaas

0 件の賞賛
返信

1,664件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Klaas

 

internally there is no such example, in such cases may be recommended to proceed

with help of NXP Professional Services to develop it:

https://contact.nxp.com/new-prof-svcs-sw-tech

 

Best regards
igor

0 件の賞賛
返信

1,670件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Klaas

 

I asked internally, below answer from team:

---------------------

Customer may refer to the lpadc and edma examples in SDK.

---------------------

Best regards
igor

0 件の賞賛
返信