<div dir="ltr">on  a completely different track, i've been eyeing the TC2644 and LTC2645 dedicated PWM-voltage converter chips: <a href="https://www.analog.com/en/technical-articles/accurate-fast-settling-analog-voltages-from-digital-pwm-signals.html">https://www.analog.com/en/technical-articles/accurate-fast-settling-analog-voltages-from-digital-pwm-signals.html</a>   </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 5, 2022 at 11:03 AM <<a href="mailto:rburnett@richieburnett.co.uk">rburnett@richieburnett.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>> The easiest way to get PDM is just to reverse the bits from the PWM<br>
>> counter to the PWM comparator, but not all MCUs support this mode.<br>
> <br>
> Oooh, that's clever! I'd never seen that before. That should<br>
> *absolutely* be a hardware feature on every chip with PWM...<br>
<br>
I haven't noticed this as a hardware feature in the PWM peripherals of <br>
any microcontrollers that I've worked with in the past, but it would <br>
definitely be a worthwhile addition.  Also, easy enough to implement in <br>
an FPGA where you're designing your own hardware.<br>
<br>
Tom, I suspect that one of the reasons why it's not more common is that <br>
most users of microcontrollers with PWM are doing "power electronics" <br>
type stuff...  Chopping up large currents to drive motors, dim LED <br>
lighting or otherwise convert power of one kind into another.  In <br>
conventional power-electronics applications every switching transition <br>
represents energy loss, decreased efficiency and heat that must be got <br>
rid of, so you certainly wouldn't want more than the minimum (2) <br>
transitions in every cycle.<br>
<br>
So, it's a nice technique for shaping the switching noise and pushing it <br>
up the frequency spectrum in audio applications, but probably not high <br>
on the wish-list of the typical customer using built-in PWM peripherals <br>
for general power applications.<br>
<br>
-Richie,<br>
_______________________________________________<br>
Synth-diy mailing list<br>
<a href="mailto:Synth-diy@synth-diy.org" target="_blank">Synth-diy@synth-diy.org</a><br>
<a href="http://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer" target="_blank">http://synth-diy.org/mailman/listinfo/synth-diy</a><br>
Selling or trading? Use <a href="mailto:marketplace@synth-diy.org" target="_blank">marketplace@synth-diy.org</a><br>
</blockquote></div>