[sdiy] Driving SSI2144 freq control with PWM from a microcontroller
rburnett at richieburnett.co.uk
rburnett at richieburnett.co.uk
Sat Nov 5 12:29:59 CET 2022
Tom's second paragraph explains what I was trying to describe. Thanks
Tom.
"...If the PWM resolution is lower, the PWM frequency is higher, so two
channels can give you better or equal resolution while making the output
frequency far higher." ...and if the PWM switching frequencies are
higher you can move the low-pass filter cutoff frequency up and benefit
from a faster transient response.
-Richie,
On 2022-11-05 11:04, Tom Wiltshire wrote:
> I've fairly recently moved away from PWM in favour of PDM instead. The
> general idea is identical. The output waveform has a time period, and
> the relative amount of time spent in the high state and the low state
> gives the analogue output, when averaged. PWM arranges that high time
> all together, followed by all the low time together. PDM breaks it up
> a lot more into little pulses. This generally makes the ripple
> filtering easier. It also has another side-effect, which is that the
> worst-case ripple moves from the 50/50% case for PWM to the 99%/1%
> case for PDM. Since you can sometimes ignore the most extreme values
> but can very rarely ignore the centre value, this can also help limit
> the ripple.
>
> Another option is to use two PWM channels instead of a single high
> resolution one. The outputs are then added together with the correct
> weights to give a "high bits" and "low bits" scheme. You sometimes see
> this done with other styles of DAC, especially in old synths before
> high-res DACs were cheaply available. Rather than using different
> rates or anti-phase, as Richie suggested, this is just a way of
> getting a higher output frequency. If the PWM resolution is lower, the
> PWM frequency is higher, so two channels can give you better or equal
> resolution while making the output frequency far higher.
>
> Tom
>
> ==================
> Electric Druid
> Synth & Stompbox DIY
> ==================
>
>
>
>> On 5 Nov 2022, at 10:51, rburnett at richieburnett.co.uk wrote:
>>
>> It should work Aaron. Some thoughts..
>>
>> Get the PWM carrier frequency as high as you can (well above the audio
>> range) so that you can heavily attenuate the switching frequency with
>> a low-pass filter whilst still getting a sufficiently fast slew-rate
>> for sounds that need a fast attack.
>>
>> If you get the switching frequency up into the low hundreds of kHz,
>> then any intermodulation products produced in the VCF or VCA due to
>> residual PWM carrier ripple should be well above the audio band.
>>
>> You might want to look at using a 2nd or 3rd order low-pass filter for
>> the PWM carrier suppression because higher order can give you better
>> suppression at the PWM carrier frequency (and its harmonics) for a
>> given step-response setting time. With just 1st order RC it might be
>> a difficult tradeoff, that becomes easier if you move to 2nd order.
>>
>> If you've got lots of PWM channels available there are other fancy
>> things you can do with multiple channels running at different
>> switching rates, or in anti-phase to reduce the ripple at the
>> switching frequency. Not sure how beneficial they are in practice.
>>
>> Sounds like a fun project!
>>
>> -Richie,
>>
>>
>>
>> On 2022-11-05 02:05, Lanterman, Aaron D via Synth-diy wrote:
>>> It’s been a while since I’ve done a synth design video:
>>> https://youtu.be/RYA_k1I47l8
>>> I have a senior design team working on a hybrid synth (digital
>>> oscillators, analog VCFs and VCAs), which got me thinking about
>>> minimalist control schemes that wouldn’t need an op amp. Not sure if
>>> this is a good idea or not.
>>> Aaron Lanterman, Prof. of ECE, Georgia Tech
>>> My blog on Education and Innovation:
>>> https://edupocalypsenow.wordpress.com
>>> My blog on Electronics and Programming:
>>> https://lantertronics.blogspot.com
>>> My YouTube channel on Electronics and Programming:
>>> https://www.youtube.com/c/lantertronics
>>> _______________________________________________
>>> Synth-diy mailing list
>>> Synth-diy at synth-diy.org
>>> http://synth-diy.org/mailman/listinfo/synth-diy
>>> Selling or trading? Use marketplace at synth-diy.org
>> _______________________________________________
>> Synth-diy mailing list
>> Synth-diy at synth-diy.org
>> http://synth-diy.org/mailman/listinfo/synth-diy
>> Selling or trading? Use marketplace at synth-diy.org
More information about the Synth-diy
mailing list