XOR gate
| XOR gate truth table | ||
|---|---|---|
| Input | Output | |
| A | B | A XOR B |
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
In digital electronics, an XOR gate is a logic gate which produces an output of true when any one of its inputs are true, but not both. A LOW (0) output results when all of the inputs to the gate are LOW or all of the inputs are HIGH (1); if any one of the inputs are HIGH, a HIGH output results.
Logic
A two-input OR gate can be expressed in Boolean logic as , or .