CD4017 Decade Counter with 10 Decoded Outputs
The CD4017 is the one of the most popular Decade Counter (Divided by 10 Counter). It is a 5 Stage Divide by 10 Johnson Counter with 10 Decoded outputs. It has a wide supply voltage range from 3V to 15V and is compatible with TTL. It has a medium speed of operation, typically 5Mhz. Its applications includes industrial electronics, remote metering, automotive, medical electronics, instrumentation and alarm systems.
CD4017 Pin Diagram
The above diagram shows the pin out of CD4017B, Dual-In-line package.
It is the supply voltage terminal of the IC. Being a CMOS IC it has a wide supply voltage range from 3V to 15V.
It is the ground pin or common pin of the IC CD4017. It should be connected to the negative terminal of the DC Power supply or battery.
Q0 – Q9
These are the 10 decoded outputs of the CD 4017 IC. One of the 10 decoded outputs may be high at a time.
It is the clock pin of the counter. Q0 goes high during the rise of the first clock cycle. Q0 goes low and Q1 goes high during the rise of the second clock cycle, and so on..
This is the active low enable pin for clock input. If this input is high the counter will not count clock cycles.
This pin is used to indicate that the count exceeds 10. This pin goes low when the output Q5 goes high and goes high when the output Q0 goes high.
This is the reset pin of the IC. When this pin goes high, the output pin Q0 will go high.
Timing Diagram – CD4017
Clock is applied to the terminal continuously. When RESET signal is applied the IC will reset and the output Q0 will become HIGH. During the positive transaction of next clock cycle Q0 goes LOW and Q1 goes HIGH, and so on.. The output Carry Out becomes LOW and HIGH when the output Q5 goes HIGH and Q1 goes HIGH respectively. Clock Enable input is an Active Low input pin, when it is high the counter will not count clock cycles.
You can make mod n counter using CD4017, where n less than or equal to 10 by connecting RESET pin in proper way.
In the above circuit by selecting the rotary switch we can make the CD4017 a mod n counter where n lies between 1 to 10.