Skip to content

Instantly share code, notes, and snippets.

@ericfont
Created June 25, 2025 04:03
Show Gist options
  • Save ericfont/56e63ea61ab1f2d10af48d0ce433cf3a to your computer and use it in GitHub Desktop.
Save ericfont/56e63ea61ab1f2d10af48d0ce433cf3a to your computer and use it in GitHub Desktop.
pmos+nmos to form 1:2 muxes (i.e. single-pole double-throw switches) for capacitor stacking...pmos gate must be -1.2v lower than source voltage
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

@ericfont
Copy link
Author

can have a comparator for each bit that updates that bit's switch according to whether is bigger or smaller than the analog input voltage. Then higher bits will follow like dominoes, for really fast ADC conversion. The DAC conversion could also be really fast by simply writing the digital number as parallel output from a microcontroller or FPGA. Or could go through a SIPO shift register. Could also of course shift ADC conversion bits into the microcontroller too.

@ericfont
Copy link
Author

Can start conversion with all bits low, producing 0v at top of stack. Can fix comparator + input to top of stack and - input to analog input signal. Then toggle first bit high. If comparator output is high, then leave that bit set high, else turn that bit off. Continue up the ladder, testing and updating each bit sequentially.

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