#488 XOR-RC Edge Detector
Dual edge detection with a 74LS86 XOR and RC circuit.
Here’s a quick demo..
A XOR gate can be used as an edge detector by feeding it with two signals:
- the original input signal
- a modified version of the input signal, containing delay or hysteresis
One way of doing this is to put and RC filter on the second input. That’s the circuit demonstrated here: where a 10kΩ and 1µF RC filter yields a 10ms time constant. Increasing the time constant will increase the minimum ouput pulse width, and also acts as a de-bouncing trick.
Another technique is to rpelace the RC filter with an even number of inveters, the idea being that propagation delay in the inverters produces the differential input to the XOR gate. Note: I’m using a 74LS86, and configuring some of the XOR units as inverters “works” but only very poorly as the <23ns propagation delay only produces a very weak pulse when an edge is detected.
The scope trace below shows the pulses generated on the rising and falling edge of the input.
- CH1 (yellow) - output
- CH2 (blue) - input signal
- CH3 (red) - filtered input signal
I’m using a 74LS86 Quad 2-Input Exclusive-OR Gate in this demo.