The CD4510 is an up/down BCD counter that you can preset. Since the output is in BCD format, it means it counts from 0 up to 9 only. Unlike its brother, the CD4516, that counts from 0 to 15. The counter value is given in binary, so for example a ‘5’ would be output as 0101:
Every time the clock pin goes from low to high, the output increases or decreases by 1, depending on the state of the UP/DOWN pin. The counter can be preset to any value that is present on pins P1 to P4 by setting the PRE pin to HIGH.
|Pin Name||Pin #||Type||Description|
|VDD||16||Power||Supply Voltage (+3 to +15V)|
|Preset||1||Input||Sets the counter to whatever is on P1-P4|
|Carry In||5||Input||Carry in from any previous stage, otherwise set LOW|
|Carry Out||7||Output||Goes low when the lowest or highest value is reached|
|Reset||9||Input||Sets output to 0000|
|Up/Down||10||Input||Set HIGH to count up (or LOW to count down)|
|Clock||15||Input||Increases/decreases counter when going LOW to HIGH|
|Q1 to Q4||6,11,14,2||Output||The counter value|
|P1 to P4||4,12,13,3||Input||Value for presetting the counter|
What is an Up/Down BCD Counter?
An up/down counter is – you guessed it – a counter that can count either up or down. With every rising clock edge, the counter either increases by one (if UP/DOWN pin is HIGH) or it decreases by one (if UP/DOWN pin is LOW).
BCD stands for Binary-Coded Decimal. This means it only counts from 0 to 9, although it has 4 bits that would allow it to count to 15. If you need a counter that counts all the way to 15, check out the 4516 instead.
This counter can only count from 0 up to 15 – or the other way around. But by combining several counters and using the carry-in/carry-out pins, you can count as high as you want.
By connecting the output value to a display and the clock input to a 1 Hz clock source, it can be used to create a stopwatch or countdown timer.
How To Use The CD4510
First of all, you need to connect the VDD pin (pin 16) to your positive supply terminal and the GND pin (pin 8) to your negative supply terminal.
You can use a power supply voltage between 3V and 15V. Although, some versions of the 4510 chip support up to 20V. Check your datasheet for exact values.
The Q1 to Q4 pins are the outputs that give you the current counter value. Q4 is the most significant bit (MSB).
The P1 to P4 pins are the inputs if you want to preset the counter to a certain value. Whenever the Preset pin is high, the counter is set to the value on these pins. The Reset pin resets the counter to 0.
When the CLK pin goes from LOW to HIGH (rising edge), the counter will either increase or decrease by 1. If the UP/DOWN pin is HIGH, the counter increases. If it’s LOW, the counter decreases.
Normally, set the Carry In pin to LOW. Unless you are combining several chips – then you want to connect it to the Carry Out pin from the previous chip.
CD4510 Example Circuit – Digital Scoreboard
Here’s a practical example that you can build with the CD4510 chip – a digital scoreboard that will keep count of the score for example for a game.
The outputs of the CD4510 are connected to CD4511 – a BCD to 7-segment converter chip that shows the current counter value on a display. Every time you press the button marked Clock, the score shown on the display increases or decreases, depending on the Up/Down button.
Reset the score back to zero with the Reset button.
To build this circuit you’ll need:
- 9V power supply (other voltages can work too)
- A 4510 chip (Ex: CD4510BE)
- A 4511 chip (Ex: CD4511BE)
- 3 Pushbuttons
- 7 x 1 kΩ resistors (R1-R7)
- 3 x 10 kΩ resistors (R8-R10)
- 7-segment LED display (Ex: LSHD-5503)
In this project, the CD4510 is there to keep count (in binary form). A pushbutton acts as the clock source. On every push of the pushbutton, the score increases by one.
The CD4511 converts this into 7-segment signals to show the number in the display.
Note that you might experience that one push of the button sometimes leads to several counts on the scoreboard. This is called bouncing. And the solution is debouncing.
Alternatives and Equivalents for CD4510
You likely find the 4510 IC marked as CD4510, NTE4510, MC14510, HCF4510, TC4510, or HEF4510. Usually with a few extra characters at the end (Ex: CD4510BE).
This has to do with the manufacturer of the chip and the technology used. But the functionality and the pins are the same.
If you can’t find any of these chips in your local electronics store, check out my list of online stores with several options to buy from.
If you can’t find the 4510, you could try one of the following IC alternatives with up/down counter functionality.
- 4516: Identical to the 4510, only that it counts to 15 instead of 9
- 4029: 4-bit Presettable Up/Down Counter
Download the PDF datasheet for the IC 4510 here: