To understand the working of interfacing CD4026 with 7 segment display first we need to understand its pin diagram.
Now let us understand the working of individual pins-
1. Pin 1 or clock pin- It receives clock signals and at every positive clock, counter advances one by one. You can provide clock with the switch, 555 timer or with the help of logic gates. In short high pulse on this input increments the counter.
2. Pin 2 or disable clock (clk inhibit) pin- 4026 counter advances one by one by receiving positive pulse at this time clock inhibit pin should be grounded. If it is connected to supply than counter advancement will be inhibited means there will be no meaning of clock pulse.
3. Pin 3 or enable display (En in) pin- It enable the 7 segment display to display the numeric value. It should be kept high for enabling the display. Mean output goes high when only when display enable is high.
4. Pin 4 or enable out- It Enables the carry out pin. In our circuit we have left this pin unconnected.
5. Pin 5 or divide by 10 output- It is used to complete one cycle for every 10 clock input cycle and it is also used to cascade more IC's.
6.Pin 6, pin7 and Pin9 to pin 13 - These are 7 decoded output from a to g used to illuminates the corresponding segment of 7 segment display to display the digit from 0 to 9.
7. Pin 14 or not 2 output (UNGATED "C" SEGMENT) signals- They are not gated by the Display clock and therefore are available continuously. This feature is a required in implementation of certain divider function such a as divide by 60 and divide by 12.
8. Pin 15 or Reset pin- It is used to reset the counter. When it receives high it clears the counter and counting again starts from zero. One important thing about reset pin that it should be again made low to start the counter once again.
9. Pin 8 or ground pin and Pin 16 or Vdd – It should be connected to power supply.
To understand its working assemble the circuit as shown in circuit diagram 1-
It uses a 4026 combined counter and display driver IC which is designed to drive 7 segment displays. When you press the switch, counter starts from zero and it advances one each time whenever pin 1 receives a positive pulse. When you press the switch for first time numeric 1 will display, on pressing the switch again numeric 2 will display, giving you second output. In similar manner 3 and 4 will display. And when count reaches to 9, after that it will again starts it counting from zero.
For resetting the counter to zero, pin 15 must be taken high and then taken low again. The table shown below shows sequence, how each segment glows after receiving clock signals?
CMOS IC can switch millions of time in a second. This may cause the switch to deliver several pulses in rapid succession. But we just want one clock pulse at a time. Therefore we have used resistor with switches which create a short delay. Hence when we press switch it will provide high to pin 1 and hold it until switch is again press.
In circuit diagram 2 we have provide the facility to restart the counting from zero from any point as required by the user. This can be done, just by pressing the Switch S2 momentarily and with the help of Switch S3 you can hold the state of counting. Like you want number 4 should be displayed on the switch S3, no matter how many times you press S1 ( Clk input) or S2 (Reset) counter will not start neither it will reset.