AnsweredAssumed Answered

MK60: 1. How to detect an ADC result overrun?  2. How to use DMA for ADC results?

Question asked by Hans-P. Nxp Lindner on Dec 4, 2018
Latest reply on Dec 4, 2018 by Jing Pan



I want to get certainly all results of an ADC on MK60 which is working in Continuous Conversion mode (SC3 ADCO=1).

I have two questions relating to this:


1. Is there a register flag (or a other possibility) to detect when a new ADC result overwrites an old result before it was read?


2. Which DMA registers have to be set (with which values) to use a DMA for transferring the ADC2 results to a memory address and get a DMA interrupt after 200 ADC samples?

I have checked some application notes already but the DMA usage seemed always very complex.

So I would be glad if you could specify the DMA register contents which are essential to be set.


Thanks a lot for your help.


Best regards