eqADC CFIFO triggering with HW and using eDMA to fill CFIFO

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

eqADC CFIFO triggering with HW and using eDMA to fill CFIFO

跳至解决方案
1,824 次查看
0xEC
Contributor IV

hi everyone,

I am working with MPC5775E board, using PAL lib, and I am trying to control eqADC with eDMA and triggering eqADC with PIT. 

PIT generates interrupt and trigger eqADC properly, eDMA transfers command from system memory to CFIFO push register and also results are transferred from RFIFO to system memory by eDMA. 

My question is that should I explicitly start eDMA channel to fill CFIFO by calling EDMA_DRV_StartChannel() function. I want to make eDMA automatically start to fill CFIFO. By the way I do not start RFIFO eDMA channel but it works fine. Can someone help me on this topic?

Best,

标记 (4)
0 项奖励
回复
1 解答
1,786 次查看
0xEC
Contributor IV

I solved the issue.

While using SDK's eqADC driver init API disables eDMA request after transfer complete.

 0xEC_0-1673354027553.png

I disabled it by calling this function:

0xEC_1-1673354101064.png

 

After this disable, eDMA works when eqADC requests to fill CFIFO and drain RFIFO.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,787 次查看
0xEC
Contributor IV

I solved the issue.

While using SDK's eqADC driver init API disables eDMA request after transfer complete.

 0xEC_0-1673354027553.png

I disabled it by calling this function:

0xEC_1-1673354101064.png

 

After this disable, eDMA works when eqADC requests to fill CFIFO and drain RFIFO.

0 项奖励
回复
1,807 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

No, you should not trigger any DMA transfer manually. It is supposed to be triggered by eQADC module (by CFFFx and RFDFx flag).

If CFIFOx is not full DMA transfer is triggered by eQADC and loads one command to the CFIFO. If RFIFOx is not empty DMA transfer is triggered by eQADC and drains one result from the RFIFOx.

0 项奖励
回复
1,802 次查看
0xEC
Contributor IV

But after first fill of Command FIFO and after that result FIFO by eDMA, there is no further filling by eDMA even if these conditions are met

0xEC_0-1672993762236.png

 

0 项奖励
回复