2018-11-15 02:01 AM
I am using STM32CubeMX to generate source code and Keil 5 for compiling the code.
Please help.
Thanks & Regards.
Sagar.
2018-11-15 02:55 AM
Create a sine value table, and push it out periodically.
2018-11-25 11:14 PM
2018-11-25 11:17 PM
2018-11-26 12:06 AM
There will always be offset in the DAC. Refer to the datasheet to see how much.
2018-11-26 12:07 AM
This does not look like a sine at all.
2018-11-26 01:51 AM
The DAC outputs voltages from 0V to Vref (usually 3.3V). There can't be negative voltages on the DAC.
With the output buffer enabled, the the offset of max. 200mV limits the output span.
I use to leave that buffer off, and have an external buffer amplifier instead.
I hope you have an idea on how to create a sine table, and output it continuously to the DAC.
2018-11-26 02:28 AM
Outputting a sine table to the DAC provides a fixed frequency. To variate the frequency you can use a NCO.
https://en.wikipedia.org/wiki/Numerically_controlled_oscillator
2018-11-26 03:16 AM
Yes Jeroen3, I want to generate signal like thyristor output at different % values.
As arrow in image shows,
for 0 to 90 my waveform shifted upwords
for 90 to 180 getting values from lookup table of sine wave.
for 180 to 270 my waveform shifted downwords
for 270 to 360 getting values from lookup table of sine wave.
2018-11-26 03:26 AM
Thank you..