I built the following pulse-width-recognition/digital-filter circuit on a solderless breadboard. I used 1/4 of a CD4011BE with another 1 µF bypass capacitor as the inverter, a perfboarded CD4060 circuit that has been verified to work as the 512 Hz clock source (CLK), and my AFG-2012 as the 2.5 Hz/90% duty input signal source (SIG):
simulate this circuit – Schematic created using CircuitLab
Instead of getting a "clean" output from the circuit of any sort, I get erratic output from the counter instead (channel numbers are as shown in the schematic, ignore the labels I have set on the scope):
Is this a sign that I accidentally fried my counter chip and should replace it (with better attention to ESD precautions and so on), or is my concept of operations, namely that the counter "freezes" itself at 0 after counting down until the input signal goes low again, hopeless to begin with?
Update: I tried putting a new counter chip on my breadboard, taking proper ESD precautions in the process, and the circuit's behavior did not change. Can someone explain to me why the circuit I have is behaving the way it is?
Update 2: with the replacement counter chip installed, I tried taking a pair of new scope shots, one of the overall behavior and one zoomed in on the rising edge of the output, both with the clock as CH3 instead of the original use of it to directly monitor the counter's output.
Update again: was able to get a full-sample-rate zoomed in shot (and fixed the coupling issue on CH3):
Another update: I got a shot at 250MSa/s + 6MPts with the timebase at 50ns/div when the capture was taken, using an inter-channel delay trigger to set the trigger edge where I wanted it: