#488 XOR-RC Edge Detector
Dual edge detection with a 74LS86 XOR and RC circuit.
Here’s a quick demo..
Notes
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.
Behaviour
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
Construction
I’m using a 74LS86 Quad 2-Input Exclusive-OR Gate in this demo.
Credits and References
- 74LS86 datasheet
- Rising edge pulse detector from logic gates
- Dual edge detector
- ARRL’s Hands-On Radio Experiments Volume 3 Experiment #125 (covers Schmitt Trigger edge detection)