Fork me on GitHub

Project Notes

#488 XOR-RC Edge Detector

Dual edge detection with a 74LS86 XOR and RC circuit.

Build

Here’s a quick demo..

clip

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

scope

Construction

I’m using a 74LS86 Quad 2-Input Exclusive-OR Gate in this demo.

Breadboard

Schematic

Build

Credits and References

About LEAP#488 CMOS/TTL
Project Source on GitHub Return to the LEAP Catalog

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

LEAP is my personal collection of electronics projects, usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting (IMHO!).

The projects are usually inspired by things found wild on the net, or ideas from the sources such as:

Feel free to borrow liberally, and if you spot any issues do let me know. See the individual projects for credits where due. There are even now a few projects contributed by others - send your own over in a pull request if you would also like to add to this collection.