Question
DMA, timer6 and DAC problem
Posted on July 06, 2016 at 14:48
Hi,
I am trying to generate analogue output using DMA. I have a taken '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.