ADC DMA is not working sporadically in VLPS mode

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

ADC DMA is not working sporadically in VLPS mode

1,265 次查看
nobodyKnows
Contributor III

Hello,

I use the DMA0 CH0 to transfer the ADC0 conversion data to memory. This works great. But if I use the VLPS sleep mode to save power, then the DMA is sometimes done immediately after it started.

Than the DMA IRQ count goes from 100/sek to 20000/sek and the array is filled with the current ADC0 value.

If this case occurred and I halt the MCU with a breakpoint than everything is working fine again for a few minutes.

If I never enter the VLPS than everything is ok too.

I use a KL26Z256 and the ADC using the internal clock and the DMA is working in async mode - enter VLPS mode should be possible.

I hope someone can help me to solve this issue.

Thanks a lot and best regarads,

Maximilian

标签 (1)
0 项奖励
回复
2 回复数

1,104 次查看
nobodyKnows
Contributor III

Hello,

thank you for your responds. I noticed that the DMA IRQ does not wakeup the mcu. It seems the IRQ is pending until another IRQ cause an wakeup. How can I configure the DMA to wakeup the MCU?

VD8nDummy.zip - Google Drive 

Best regards,

Maximilian

0 项奖励
回复

1,104 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Maximilian,

Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.

I was wondering if you can upload the demo and share the process flow to replicate the issue.

I'm looking forward to your reply.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复