Maximilian Niedernhuber

ADC DMA is not working sporadically in VLPS mode

Discussion created by Maximilian Niedernhuber on Nov 18, 2016
Latest reply on Nov 22, 2016 by Maximilian Niedernhuber

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

Outcomes