Created
December 1, 2025 01:19
-
-
Save ericfont/c686fa2d656d9e07ecf60975c7c734ba to your computer and use it in GitHub Desktop.
something working, with hystersis for comparator and summing input with feedback
Author
Author
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


so to decimate the delta PWM signal, apply that formula y[n]=x[n]-x[n-1]+a*y[n-1] and continuously accumulate that, and dump every nysquist sampling rate sum as the delta for that nyquist sample. If can get the oscillation to be around 96kHz, then a simple boxcar averager will null that oscillation when downsampling to 48kHz.
Also note during analog reconstruction, a simple notch filter will null around that oscillation.