Easy programming for the DSO Quad

You have hardware that is able to capture 1180 samples in that time. So I was thinking something like this:


  1. Set waveout to output square wave @ 10Hz.


  2. Set wavein to capture @ 72MHz in free-running mode (DC 500mV) and start the capture synchronously. This means the capture will start when waveout starts a new period.



    The result will be a decaying waveform like this: <LINK_TEXT text=“http://en.wikipedia.org/wiki/File:Serie … oltage.svg”>File:Series RC capacitor voltage.svg - Wikipedia</LINK_TEXT>



    Then you could fit the exponential function to the captured data and compute the capacitance from that.



    You will have to adjust the sample rate for higher capacitances though. Because the usable sample buffer is only about 3500 samples, it will only store 50 microseconds @ 72MHz.