Sine wave interpolation for pwm generation
Hey everyone,
I'm still busy scoping out how to do this. I've been looking int methods to generate sine waves and so far it looks like some of the methods use lookup tables or trig functions from cmsis.
Although I don't think this would be very ideal, as I essentially want to generate a sine sweep. I'd like to generate a small amplitude (maybe 0.1 or 0.05V) sine wave with frequency varying from 500 Hz to 90 kHz.
I also want to let this signal have a DC offset of varying from 0.1 o 0.9V
I don't think generating this would be to hard if it can just be fed to the dac, although I have no idea how to accurately and efficiently generate the sine wave.
Any help will really be appreciated!