This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DAC Sine wave generation using F28377S; frequency does not change.

Other Parts Discussed in Thread: CONTROLSUITE

I am using the development board to run the sine wave generation example from Control Suit. I have checked the default generated sine wave (500 Hz) on digital oscilloscope and it works well. I am doing this as I need to run a LVDT using the processor and the frequency range needs to be adjustable between 2 kHz to 10 kHz. The code comments talk about SGEN documentation which I could not find. I could not change the frequency even though I changed the "outputFreq_hz" variable to 2000 Hz.

  • Hi Nikhil,

    That is interesting. Is the code as-is from controlSUITE or was it modified somehow?, because the default output frequency from the controlSUITE example is 1KHz. To better understand why the output frequency isn't changing, you should compare the "Datalog" array for 500Hz and 1KHz output frequencies since all the DAC is doing is playing what is logged to the "Datalog" array.

    Most of the parameters to change the output frequency are heavily tied with one another. The documentation for the SGEN library is located in "controlSUITE\libs\dsp\SGEN\v101\doc\sgen_mdl.pdf"

  • Oh sorry, yes it is 1000 Hz. I read the display wrong when I was calculating the output frequency. It is giving perfect 1000 Hz. I found the SGEN pdf aslo. I will compare the DATALOG and let you know what happens.