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

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

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

934 Views
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

Tags (1)
0 Kudos
3 Replies

907 Views
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 Kudos

904 Views
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 Kudos

910 Views
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 Kudos