The CD4070 is a CMOS chip with four XOR gates. Because each gate has two inputs and it has four gates inside, it’s usually called a Quad 2-Input XOR Gate.
This chip is more or less identical to the CD4030.
XOR means exclusive OR, and will only give a HIGH output if one of the inputs is HIGH and the other is LOW. Or to say it in another way: The output from an XOR gate will be HIGH only if the inputs are not equal.
Pin Overview
Pin Name | Pin # | Type | Description |
---|---|---|---|
VDD | 14 | Power | Supply Voltage (+3 to +15V) |
GND | 7 | Power | Ground (0V) |
A1 to A4 | 1, 5, 8, 12 | Input | Inputs A of the four XOR gates |
B1 to B4 | 2, 6, 9, 13 | Input | Inputs B of the four XOR gates |
Q1 to Q4 | 3, 4, 10, 11 | Output | Outputs from the four XOR gates |
What is an XOR gate?
The XOR gate outputs HIGH if its two inputs are not equal. So if one of the inputs (both not both!) is HIGH, the output will be HIGH. It’s one of the basic logic gates.
Input A | Input B | Output Y |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
How To Use the CD4070?
Like with all ICs in the 4000 series, you need a power supply voltage of 3 to 15V. Some versions of the chip support up to 20V. Check the datasheet of your version of the chip for exact values.
To be able to use any of the XOR gates in the chip, you need to first connect the VDD pin to the positive supply terminal and the GND pin to the negative supply terminal.
The A and B pins are the inputs to the four XOR gates in the IC.
The Q pins are the outputs from the XOR gates.
Get the 555 Timer Cheatsheet
A super helpful reference that makes it easy to design circuits, so that you can build oscillators, timer circuits, and more in no time.
CD4070 Example Circuit – 2 MHz clock generator
Here’s an example circuit based on the XOR gate in the 4070 IC. It uses a capacitor of 0.01µF and a resistor of 1 kΩ which should give out a frequency of about 2 MHz.
To build this you’ll need:
- CD4070BE (U1)
- 1 kΩ resistor (R1)
- 0.01µF capacitor (C1)
I came across this circuit at leap.tardate.com. And I really recommend checking out that page if you want to learn more about this circuit and how to improve it.
According to Paul who wrote the article, your chip needs to be buffered for this circuit to work. If your chip has a B after 4070, like ‘CD4070BE’, then it’s buffered. Most likely, you’ll only be able to find the buffered version these days.
Alternatives and Equivalents for CD4070
You likely find the 4070 IC marked as CD4070, NTE4070, MC14070, HCF4070, TC4070, or HEF4070. Usually with a few extra characters at the end (Ex: CD4070BE).
This has to do with the manufacturer of the chip and the technology used. But the functionality and the pins are the same.
If they don’t have any of these chips in your local electronics store, check out my list of online stores where you can find components and tools for all your electronics projects.
Can’t find the 4070? Then try one of the following IC alternatives with 2-input XOR gates:
- 4030: Quad 2-input XOR
- 74HC86: Quad 2-input XOR
4070 Datasheet
Download the PDF datasheet for the IC 4070 here:
CD4070B (Texas Instruments)
HEF4070B (Nexperia)
Go back to the full overview of the 4000-series integrated circuits
Get the 555 Timer Cheatsheet
A super helpful reference that makes it easy to design circuits, so that you can build oscillators, timer circuits, and more in no time.