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

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

Project Source on GitHub Return to the LEAP Catalog
About LEAP

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.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader