ree
en
fI am using a very low cost system so I'll post the two bit version based on the counter decode I showed earlier in this thread:
Q2 Q1 AND
0 0 0 *............ 0 1 0 ....*........ 0 1 0 ....*........ 0 1 0 ....*........ 0 0 0 ....*........ 0 0 0 *............ 1 0 0 ........*.... 1 1 1 ............* 1 1 1 ............* 1 1 1 ............* 1 0 0 ....*........ 0 0 0 *............Notice how we get only downward glitches and never upward ones. This means that we can use this to ramp a voltage up to where a comparator trips to make a very nasty sort of ADC without the comparator tripping early due to glitches.