

The 4070 is a quad 2-input XOR gate, which performs the exclusive OR (XOR) operation on two binary inputs. The XOR operation outputs a high signal (logic 1) only when the two inputs differ. This component is widely used in digital circuits for arithmetic operations, parity checking, signal processing, and other logic functions. Its versatility and reliability make it a staple in both educational and professional electronic projects.








The 4070 IC contains four independent XOR gates, each with two inputs and one output. The pinout for the 14-pin DIP package is as follows:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | A1 | Input A for XOR Gate 1 |
| 2 | B1 | Input B for XOR Gate 1 |
| 3 | Y1 | Output of XOR Gate 1 |
| 4 | A2 | Input A for XOR Gate 2 |
| 5 | B2 | Input B for XOR Gate 2 |
| 6 | Y2 | Output of XOR Gate 2 |
| 7 | GND | Ground (0V) |
| 8 | Y3 | Output of XOR Gate 3 |
| 9 | B3 | Input B for XOR Gate 3 |
| 10 | A3 | Input A for XOR Gate 3 |
| 11 | Y4 | Output of XOR Gate 4 |
| 12 | B4 | Input B for XOR Gate 4 |
| 13 | A4 | Input A for XOR Gate 4 |
| 14 | Vcc | Positive Supply Voltage |
The 4070 can be used with an Arduino UNO to perform XOR operations on digital signals. Below is an example circuit and code:
// Define input and output pins
const int inputA = 2; // Input A connected to Arduino pin 2
const int inputB = 3; // Input B connected to Arduino pin 3
const int outputY = 4; // Output Y connected to Arduino pin 4
void setup() {
// Set input pins as INPUT
pinMode(inputA, INPUT);
pinMode(inputB, INPUT);
// Set output pin as OUTPUT
pinMode(outputY, OUTPUT);
}
void loop() {
// Read the input states
int stateA = digitalRead(inputA);
int stateB = digitalRead(inputB);
// Perform XOR operation and write to output
digitalWrite(outputY, stateA ^ stateB);
// Small delay for stability
delay(10);
}
No Output Signal:
Erratic Behavior:
Incorrect Output:
Q: Can the 4070 operate at 3.3V?
A: Yes, the 4070 can operate at supply voltages as low as 3V, making it compatible with 3.3V systems.
Q: What is the maximum current the 4070 can source or sink?
A: The 4070 can source or sink a maximum of 10mA per output pin. For higher current requirements, use a buffer or driver circuit.
Q: Can I use the 4070 for analog signals?
A: No, the 4070 is designed for digital signals only. Analog signals should be converted to digital levels before being applied to the inputs.
Q: How many XOR gates are in the 4070?
A: The 4070 contains four independent 2-input XOR gates.
By following this documentation, you can effectively integrate the 4070 XOR gate into your digital circuits and troubleshoot any issues that arise.