AnsweredAssumed Answered

DMA, timer6 and DAC problem

Question asked by Nayani.Partha on Jul 6, 2016
Latest reply on Jul 7, 2016 by Clive One
Hi,
I am trying to generate analogue output using DMA. I have a taken Sergey Ostrikov VK's cample code for testing. The output frequency is defined by
#define   OUT_FREQ          5000  // Output waveform frequency
Above value is used in calculating the timer6 trigger of DAC. With the above value I was able to see sine wave on an oscilloscope. If I change this value to either 4000 or 6000 there is no DAC output at all. I changed the value to see how the sine wave frequency changes, but there is no wave output at all. If I change the timer Prescaler, I can see the output and there is a change in the output frequency. Any explanation why the output is not coming when 5000 is changed will be highly appreciated. Thank you.

Outcomes