Skip to content

Instantly share code, notes, and snippets.

@ericfont
Created June 29, 2025 07:11
Show Gist options
  • Save ericfont/01c7405d10e87ee8f47cb265a7fbf40a to your computer and use it in GitHub Desktop.
Save ericfont/01c7405d10e87ee8f47cb265a7fbf40a to your computer and use it in GitHub Desktop.
opamp cancel offset and charge two capacitors to either input voltage or input voltage minus some reference if input exceeded that reference
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
Copy link
Author

sim

Can have a double-buffer set of capacitors...in phase one, set one of caps are used for reading and set two is written to, while in phase two, set two of caps are used for reading and set one is written to. Thus can do ADC conversion for any even number of bits.

@ericfont
Copy link
Author

for the very first bit, can simply read from the audio input. Subsequent bits will alternate between reading and writing with the two alternating sets of capacitors.

@ericfont
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment