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

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

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

1,679 次查看
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,652 次查看
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,649 次查看
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,655 次查看
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 项奖励
回复