Re: PCM vs PWM for low distortion sinewaves
- From: miso@xxxxxxxxx
- Date: Wed, 30 Jan 2008 11:56:13 -0800 (PST)
On Jan 30, 8:41 am, Vladimir Vassilevsky <antispam_bo...@xxxxxxxxxxx>
wrote:
BobW wrote:
I'm attempting to generate low distortion sinusoids (in the 200Hz - 3KHz
range). There will be a fixed number of amplitude changes for each period
regardless of the frequency being generated.
If the sample rate is the exact multiple of the frequency of the
sinewave, then all of the distortion will be concentrated at the
harmonics of the sinewave. This is not good.
If we keep the number of pulse width or amplitude changes per period the
same (let's say 32 per period), and the resolution the same (16 bit DAC or
16 bit pulse width resolution), and the final filtering is the same (2 pole)
and constant (i.e., not tracking) -- do you think that I can get lower
distortion using 16 bit PCM or 16 bit PWM?
So, you have the 2nd order LPF with Fc at ~3kHz, hence the THD is going
to be as bad as 20% or so at 200 Hz at the best.
The PCM will generate less artifacts then PWM. For the PWM, you will
have to predistort the sinewave, and it will be a lot of trash above
Nyquist.
Vladimir Vassilevsky
DSP and Mixed Signal Design Consultanthttp://www.abvolt.com
Good points here. I suspect the original poster is going to do a
simple table look-up, hence the sample rate being a multiple of the
sine wave to keep the look-up table smaller. If a coordic was used,
the sample rate could be a non-multiple of the sine wave.
.
- References:
- PCM vs PWM for low distortion sinewaves
- From: BobW
- Re: PCM vs PWM for low distortion sinewaves
- From: Vladimir Vassilevsky
- PCM vs PWM for low distortion sinewaves
- Prev by Date: Re: what a mess
- Next by Date: Re: Disobeying jet engines - why?
- Previous by thread: Re: PCM vs PWM for low distortion sinewaves
- Next by thread: 100% Customer Satisfaction Guarantee check the quality before you pay
- Index(es):
Relevant Pages
|