Hades logoHades applet banner
relay-based XOR

applet icon

The image above shows a thumbnail of the interactive Java applet embedded into this page. Unfortunately, your browser is not Java-aware or Java is disabled in the browser preferences. To start the applet, please enable Java and reload this page. (You might have to restart the browser.)

Circuit Description

Two ways to realize the XOR function with relays.

Click the input switches or type the ('a','b') and ('d','e') bindkeys to control the circuit and watch the behavior.

The first circuit shows the standard realization with two separate relays, each driven by one input, and the opposite coil input connected to ground. As such, the relay will activate whenever the corresponding input (A,B) is at high level. The cross-connection between the switches realizes the XOR function. Similarly, a straight-connection between the switches would be used to build the XNOR function. Again, a high-output value at the gate output is interpreted as a logical 1, while an unconnected (floating) output is interpreted as a logical 0.

The lower circuit illustrates the fact that a relay will activate when a current flows through its coil, regardless of the current's polarity. In the switch-level simulation, this means that the relay will activate whenever one input of the coil is at (strong) high level and the other at (strong) low level. Note that the circuit shown here will only work if the D and E inputs are strongly driven. As several of the gates shown in the previous applets only provide a strong 1 but a weak (floating) 0, these gates can only be used with the upper XOR gate shown here.

Print version | Run this demo in the Hades editor (via Java WebStart)
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German)
Impressum http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/05-switched/20-relays/xor.html