Re: Digital sine wave generation



On 5 Apr 2006 08:06:00 -0700, "Tim Shoppa" <shoppa@xxxxxxxxxxxxxxxxx>
wrote:


The Phantom wrote:
If you have any reference to real designs or published literature that
do DDS-like (e.g. equally spaced steps) or other numerically-controlled
oscillator sine-wave synthesis and do NOT simply choose sin(phase) for
equal phase spacing, I'm very interested. DDS has become very popular
over the past decade or so but none of the published designs or chips
I've seen use anything but sin(phase) for equally-spaced phase in their
lookup table.

The SW4024 family of inverters made by Xantrex
http://www.xantrex.com/web/id/45/p/1/pt/18/product.asp
generates a waveform that is a stepped sine approximation. The amplitude
of the steps varies with load, so the timing and number of steps is varied
to keep the complete waveform approximately 120 VAC. The way the THD
varies with the number of steps is surprising.

Maybe I should've written "that do sine wave synthesis and do a good
job" :-). Admittedly their load is a lot more reactive than mine...

I'm surprised at their published waveform, too. With those big pips at
the top and bottom of each sine wave, it's looking more like a triangle
than a sine! By my calculation that amplitude of that pip should be a
percent or two, and it's looking more like 15 percent in their
published curve!

Where did you find the waveforms (URL)?


In that respect it looks a little bit like the distortion that comes
out of an 8038 etc. (although I know that uses an entirely different
method.)

Tim.

.



Relevant Pages

  • Re: Digital sine wave generation
    ... equal phase spacing, I'm very interested. ... generates a waveform that is a stepped sine approximation. ... Maybe I should've written "that do sine wave synthesis and do a good ...
    (sci.electronics.design)
  • Re: anti-aliasing
    ... The adc will take a bunch of samples, ... If the sine wave is of a sufficently low frequency WRT to full sample time, then any given sub-section of that sine would be samples, giving obvious errors. ... If it is a complex waveform signal, that might not be a useable solution. ... "small" dithering of the sampling periodicity will not help; it might be useful when the input periodocity is near one of the harmonics of the sampling rate. ...
    (sci.electronics.design)
  • Re: I found the holy grail that explains audiophile beliefs
    ... steady amplitude sine wave it does not work with a decaying sine wave, like Cymbols clanging, unless the decay rate is slow enough to build up a number of samples. ... waveform can be thought of as a small section of a longer repeating waveform. ... While it may be reconstructed within reason, a side by side comparison of the original analog and the digitized output will show differences, distortion, phase delay, and some sideband spikes a KHz or so on either side of the desired waveform. ... The spikes were post digital filter so it could have been due to the switched capacitor clock getting through and causing strange things. ...
    (rec.audio.pro)
  • Re: MSP430F1612: generating sinusoidal signals
    ... Code uses the fewest cycles to implement periodic waveform with DACs. ... a 32 kHz sample and interrupt rate. ... For audio applications just over 2-3 times the highest sine wave ... other phase accumulator sizes and look-up table sizes can ...
    (comp.arch.embedded)
  • Re: Waveform horror! Is a 44.1 kHz sampling rate sufficient?
    ... burning the waveform. ... sampling frequency, as used by CDs? ... sine wave to that data you would find it would fit really well. ... and if you superimpose a sine wave over the dots, ...
    (sci.electronics.basics)