AnsweredAssumed Answered

K64F Triggering ADC on DMA major loop completion?

Question asked by Dave Nadler on Oct 17, 2016
Latest reply on Oct 18, 2016 by Dave Nadler

We're evaluating the K64F for an instrumentation application. We'd like to do the following:

  1. Generate an excitation waveform using DMA-to-DAC. I got this working here:
    https://community.nxp.com/message/840245
  2. At the completion of each waveform cycle (completion of DMA major loop), generate a conversion trigger
  3. Initiate an ADC conversion on the trigger
  4. on ADC completion, copy the result via DMA to a buffer (ping-ponged)
  5. When the ADC-DMA fills the buffer (completion of the DMA major loop), ping-pong to the alternate buffer and generate an interrupt signalling a load of data is ready to process
  6. In the ADC-DMA-major-loop-completion ISR, we'll do our processing

Steps 1-5 should proceed without code intervention.

The next question is how to configure K64F to perform steps 2-3:

How do I trigger ADC conversion at the end of each DAC-DMA-major-loop completion?

Thanks in advance,
Best Regards, Dave

Outcomes