ΣSigmaStudio Ask AI Русский Log in

What is max PWM frequency and resolution in ADAU1701?

SigmaDSP & SigmaStudio ssanchez May 12, 2014 00:00 4 replies Original on forum ↗
Thread Summary

Thread Summary

The user inquires about using the VCO pulse block to generate PWM on the ADAU1451. The support engineer explains that at the maximum sample rate of 192kHz, the PWM output can only update at 5.2μs intervals, limiting resolution and making it unsuitable for audio PWM. For motor control applications, a PWM frequency below 1kHz at 48kHz sample rate provides 48 possible speed steps. The ADAU1451 can run at higher sample rates (384kHz or 768kHz) for PWM, but this affects serial port functionality and analog audio I/O.
AI Generated Content
Subscribe
ssanchez Question
May 12, 2014 00:00

Hello,

I am figuring out some ways to use the VCO pulse block to generate PWM. What is the maximum frequency it can produce? Also, what is its resolution?
Thanks!

Audio Signal Processors

SigmaDSP Audio Processors

adau1701

KJBob Reply
May 13, 2014 00:00

Hello ssanchez,

In SigmaDSP everything happens at sample intervals, which severely limits the available PWM resolution. At the -1701's maximum sample rate of 192K, the PWM output can only update at 5.2uS intervals. This makes it difficult to pick a good PWM carrier frequency, because the number of samples per carrier period ultimately determines your resolution. Consider the circuit below, where a carrier rate of 4.8 KHz was chosen. With the circuit operating at a 48K sample rate, 10 PWM transitions occur during the time that the PWM ramp goes from -1 to +1. The -1 to +1 range is thus divided into ten voltage bands, resolving only to the nearest 0.2 volt. Meanwhile, the Nyquist frequency for this arrangement is half the carrier rate, or only 2.4 KHz -- not enough for audio. Increasing the carrier frequency only worsens the voltage resolution.

The delay and signal inversion shown below compensate for the DAC's delay and inversion.

The circuit's waveforms demonstrate these effects -- the PWM output cannot resolve the tops and bottoms of the sine wave, resulting in visible "dead spots".

Thus, a -1701 cannot do audio PWM (as for a Class-D amp) on its own. Lower frequency PWM such as for motor control may be feasible. Also please see these posts:

https://ez.analog.com/message/12246#12246

https://ez.analog.com/message/49197#49197

Best regards,

Bob

4274.9b0dbe0123724a310e3630e15707b91f.jpg
4274.9b0dbe0123724a310e3630e15707b91f.jpg
4274.9b0dbe0123724a310e3630e15707b91f.jpg-566x412.jpg
4274.9b0dbe0123724a310e3630e15707b91f.jpg-566x412.jpg
1121.4c05da86ed00c9d83052977d46c8d707.jpg
1121.4c05da86ed00c9d83052977d46c8d707.jpg
1121.4c05da86ed00c9d83052977d46c8d707.jpg-565x318.jpg
1121.4c05da86ed00c9d83052977d46c8d707.jpg-565x318.jpg
ssanchez Reply
May 13, 2014 00:00

Thanks a lot. I was not thinking in Class-D amplification (today it is still better to do it analog) but for motor control, etc, with a PWM frequency below 1KHz. That gives 48 possible speed steps at 48KHz Fs.

francismariano Reply
Dec 13, 2024 00:00

What is max PWM frequency and resolution in ADAU1451?

DaveThib Reply
Dec 13, 2024 00:00

Hello Francis,

The 1451 can operate the core at a higher sampling rate. You can run it at 384kHz or 768kHz but the problem becomes the serial ports cannot run that fast. You can run a GPIO to get the PWM output but getting analog audio in or out at that rate would be a problem. That said, you could use sample rate converters and you can do some tricks with the serial ports to get a higher rate but that is a subject of a much longer involved thread.

Dave T