<div dir="ltr"><div dir="ltr">The plot with 4 segments is what happens when the single, constant input<div>value is processed for 1024 time steps (ie. I did not copy & paste</div><div>to graphically put together a longer image).  To me, it looks like 2nd</div><div>order converter takes 512 time steps to get through its entire cycle.</div><div><br></div><div>Frequency domain analysis seems necessary to understand 2nd order</div><div>and beyond.  Especially when  you consider 2nd order isn't good enough</div><div>to make commercial sigma-delta DACs.</div><div><br></div><div>The time domain plots do make a few things clearer:</div><div>  a) 1st order is better (for audio) than PWM and reverse-PWM and is as easy to implement.</div><div>  b) 2nd order is much better than 1st, but requires(?) software or fpga.</div><div>  c) Things get really crappy at the highest and lowest input values.</div><div><br></div><div>For a practical converter, as Tom wrote, you really need to not use the</div><div>top/bottom ~10% and rescale.  Also, I read that a 2nd order sigma-delta</div><div>has some pathological signal input cases where the feedback goes</div><div>unstable at the high and low values ... which is also solved by not using</div><div>some % of the highest and lowest values.</div><div><br></div><div>Which left me not sure how exactly to create a useful spectral view.</div><div><br></div><div>Someone else asked about errors from edge shape & jitter.  I'm guessing</div><div>jitter doesn't matter much at the expected oversampling rates of 64 to 256.</div><div>Especially if that jitter is random.  Edge asymmetry, while barely a problem</div><div>for PWM, is a significant source of error for the noise shaping approaches.</div><div>Schlappi alluded to this when he described the analog section for his fpga</div><div>based converters in his 3 body module.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 12, 2023 at 2:20 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">Fascinating!  The reversed PWM one still looks very regular, which <br>
should not come as a surprise.  It would be interesting to see the <br>
resulting spectra for these different techniques too.  The Delta-Sigma <br>
is obviously better at "shaping" the switching noise up to high <br>
frequencies than the PWM based methods.<br>
<br>
Does the 2nd order delta-sigma pattern still repeat after 256 bits?  Or <br>
did you just show the first 256 bits of a longer sequence?<br>
<br>
-Richie,<br>
<br>
<br>
On 2023-12-12 05:32, David Kantowitz via Synth-diy wrote:<br>
> ... and 2nd-order sigma delta.  I might have the algorithm<br>
________________________________________________________<br>
This is the Synth-diy mailing list<br>
Submit email to: <a href="mailto:Synth-diy@synth-diy.org" target="_blank">Synth-diy@synth-diy.org</a><br>
View archive at: <a href="https://synth-diy.org/pipermail/synth-diy/" rel="noreferrer" target="_blank">https://synth-diy.org/pipermail/synth-diy/</a><br>
Check your settings at: <a href="https://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer" target="_blank">https://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></div>