Skip to datasheet
The Engineering ProjectsAI Interactive Datasheet

CD4017BDecade counter / divider

One clock. Ten steps. A visible sequence.

Manufacturer-referenced

Texas Instruments · CD4017BE

PDIP-16SCHS027C · February 2004

CD4017B is a decade counter with ten decoded outputs. Each accepted rising clock edge advances the HIGH output from Q0 through Q9, then returns to Q0. It uses a five-stage Johnson counter and decode logic inside one 16-pin IC. RESET is asynchronous and active HIGH. CLOCK INHIBIT holds the count when HIGH; the carry output is HIGH during counts 0–4 and LOW during counts 5–9. Reset the real device after power-up to establish a known starting state. This reference covers CD4017BE through-hole and CD4017BM96 surface-mount packages. The explorer starts from an applied reset and shows settled logic states; the circuit uses a clean 5 V clock and low-current LED indicators.

Real View

CD4017BE black package with silver leads and readable markings.
CD4017BE · PDIP-16Package illustration

Pinout

CD4017BEPDIP-16Top view
Select a pin to see its functionPDIP-16 · 16 pins

PCB Footprint

Loading footprint…
Powered by
Finding PDIP-16 packageTop view · mm

3D View

Preparing 3D preview…
3D packageDrag to rotate · Scroll to zoom
Decoded outputs & carrySupply & returnClock & control
CD4017BEPDIP-16Top view

Click a lead or use the arrow keys. Top view

1
PIN 1 · Decoded outputs & carry

Q5

Decoded push-pull output

Function

HIGH at count 5; LOW in the other nine states. Only one decoded output is HIGH at a time.

How to connect

Leave open in the three-LED example.

Electrical note

Output drive is limited and depends on supply voltage and temperature.

At a glance

Decade counter / divider

A clean clock advances the decoded HIGH output. Reset returns to Q0, while inhibit freezes the count. Carry supplies a divide-by-ten waveform.

10 One HIGH outputDecoded states
3–18 VOperating supply
16 PDIP or SOICPackage leads
−55–125 °CAmbient range

Operating profile

CD4017BE

Selected package
PDIP-16CD4017BE · 16 pins
Carry division
÷10HIGH for five counts
Example clock
1 HzOne state per second

Decoded output sequence

Key parameters and their test conditions

Count 0
Q0 HIGH · pin 3Conditions / notes: All other Q outputs LOW; carry HIGH
Count 1
Q1 HIGH · pin 2Conditions / notes: All other Q outputs LOW; carry HIGH
Count 2
Q2 HIGH · pin 4Conditions / notes: All other Q outputs LOW; carry HIGH
Count 3
Q3 HIGH · pin 7Conditions / notes: All other Q outputs LOW; carry HIGH
Count 4
Q4 HIGH · pin 10Conditions / notes: All other Q outputs LOW; carry HIGH
Count 5
Q5 HIGH · pin 1Conditions / notes: All other Q outputs LOW; carry LOW

Package details

Follows the selected physical package

Manufacturer
Texas Instruments
Part number
CD4017BE
Package
PDIP-16
Connections
16 pins
Mounting
Through-hole
Lead pitch
2.54 mm
Package code
dip
Thermal reference
Board and package dependent; see manufacturer data

Connections by function

Select a pin to open its function, electrical notes and wiring guidance.

Decoded outputs & carry11 pins

Supply & return2 pins

Clock & control3 pins

Establish the start

Pulse RESET HIGH after power-up, then return it LOW. Q0 becomes HIGH and carry is HIGH.

Advance on a clock edge

With INHIBIT LOW, each rising edge on CLOCK advances to the next output. Q9 wraps back to Q0.

Hold or cascade

Set INHIBIT HIGH to hold. Carry is HIGH for the first five states and LOW for the next five, providing divide-by-ten timing.

CD4017B stores a count, so the current output depends on previous clock edges. Reset establishes Q0, inhibit holds the state and carry divides the accepted clock by ten. It is not a binary-output counter.

Walk through ten output states

Pulse the clock, hold the count or reset immediately to Q0.

5 V · logic teaching model

Pulse sends LOW → HIGH → LOW. With inhibit HIGH, clock pulses hold the count. Reset HIGH immediately selects Q0 and keeps it selected.

Releasing inhibit while the clock is already HIGH also advances the hardware counter. Try it with the individual controls.

COUNT0Q0 selected · ready for a rising clock edge
CARRY OUT · Pin 12HIGH · 1
Q0Pin 3HIGH
Q1Pin 2LOW
Q2Pin 4LOW
Q3Pin 7LOW
Q4Pin 10LOW
Q5Pin 1LOW
Q6Pin 5LOW
Q7Pin 6LOW
Q8Pin 9LOW
Q9Pin 11LOW

Starts after an applied reset. Shows settled logic only; propagation delay, switch bounce, analog thresholds and output loading are not simulated. Carry is HIGH for counts 0–4, LOW for counts 5–9.

A Schmitt clock path and inhibit gate clock a five-stage Johnson counter. Ten decode paths and a carry output are shown inside a compact black IC.
Simplified functional architecture, not a transistor-level die layout.
CD4017B pin14 receives a 1Hz0to5V clock. Inhibit13 is grounded. Reset15 uses a switch and10kilohm pull-down. Q0 Q1 Q2 each drive a red LED through10kilohms. VDD16 andVSS8 have a100nF bypass.
After reset, Q0 is HIGH. Each rising clock advances the output; the three LEDs are off during counts 3–9.

Pin reference

Select a pin to explore its function and connection.

16 pins
PinSignalTypeFunction
Q5Decoded push-pull outputHIGH at count 5; LOW in the other nine states. Only one decoded output is HIGH at a time.
Q1Decoded push-pull outputHIGH at count 1; LOW in the other nine states. Only one decoded output is HIGH at a time.
Q0Decoded push-pull outputHIGH at count 0; LOW in the other nine states. Only one decoded output is HIGH at a time.
Q2Decoded push-pull outputHIGH at count 2; LOW in the other nine states. Only one decoded output is HIGH at a time.
Q6Decoded push-pull outputHIGH at count 6; LOW in the other nine states. Only one decoded output is HIGH at a time.
Q7Decoded push-pull outputHIGH at count 7; LOW in the other nine states. Only one decoded output is HIGH at a time.
Q3Decoded push-pull outputHIGH at count 3; LOW in the other nine states. Only one decoded output is HIGH at a time.
VSSGround returnCommon return for the logic and output loads.
Q8Decoded push-pull outputHIGH at count 8; LOW in the other nine states. Only one decoded output is HIGH at a time.
Q4Decoded push-pull outputHIGH at count 4; LOW in the other nine states. Only one decoded output is HIGH at a time.
Q9Decoded push-pull outputHIGH at count 9; LOW in the other nine states. Only one decoded output is HIGH at a time.
CARRYDivide-by-ten outputHIGH for counts 0–4 and LOW for counts 5–9. It completes one cycle for every ten input pulses.
INHIBITClock inhibitHIGH prevents advancement from clock pin 14. LOW allows counting.
CLOCKSchmitt clock inputA LOW-to-HIGH clock transition advances the count when inhibit is LOW and reset is LOW.
RESETAsynchronous active-HIGH resetHIGH selects count zero immediately: Q0 HIGH, Q1–Q9 LOW and carry HIGH.
VDDPositive supplySupplies the counter, decoder and output buffers.
PDIP-16 · Top view · Select a pin number to inspect its connection.

Decoded output sequence

RESET establishes state zero

ParameterValueConditions / notes
Count 0Q0 HIGH · pin 3All other Q outputs LOW; carry HIGH
Count 1Q1 HIGH · pin 2All other Q outputs LOW; carry HIGH
Count 2Q2 HIGH · pin 4All other Q outputs LOW; carry HIGH
Count 3Q3 HIGH · pin 7All other Q outputs LOW; carry HIGH
Count 4Q4 HIGH · pin 10All other Q outputs LOW; carry HIGH
Count 5Q5 HIGH · pin 1All other Q outputs LOW; carry LOW
Count 6Q6 HIGH · pin 5All other Q outputs LOW; carry LOW
Count 7Q7 HIGH · pin 6All other Q outputs LOW; carry LOW
Count 8Q8 HIGH · pin 9All other Q outputs LOW; carry LOW
Count 9Q9 HIGH · pin 11All other Q outputs LOW; carry LOW

After Q9, the next accepted clock edge returns to Q0.

Supply and control conditions

CD4017BE / CD4017BM96

ParameterValueConditions / notes
Operating supply3–18 V5 V in the example
Operating temperature−55 to +125°CSelected package grades
HIGH input at 5 VAt least 3.5 VManufacturer static test conditions
LOW input at 5 VAt most 1.5 VManufacturer static test conditions
Clock inputRising-edge countingINHIBIT LOW; RESET LOW
Reset inputHIGH selects Q0Asynchronous; no clock required
Clock inhibitHIGH holds the countFalling inhibit can count if CLOCK is HIGH
Clock14 rise / fall timeNo specified limitSchmitt action on CLOCK14; not a debounce function

The alternate clock use of pin13 has different transition requirements; see the manufacturer footnote.

Electrical reference

5 V supply unless stated

ParameterValueConditions / notes
Source at VOH = 4.6 V0.51 mA minimum at 25°C0.36 mA minimum at 125°C; manufacturer test
Sink at VOL = 0.4 V0.51 mA minimum at 25°C0.36 mA minimum at 125°C; manufacturer test
No-load output HIGHAt least 4.95 V5 V supply
No-load output LOWAt most 0.05 V5 V supply
Quiescent current0.04 µA typical; 5 µA maximum25°C, 5 V, inputs at supply rails
Quiescent current over temperature150 µA maximum at 5 V85°C and 125°C entries
Input capacitance5 pF typicalAny input

Do not read output current from the absolute stress limits. LED loads lower the HIGH level and increase current consumption.

Clock and reset timing

25°C · CL = 50 pF · RL = 200 kΩ

ParameterValueConditions / notes
Clock-to-decoded output325 ns typical; 650 ns maximum5 V; input transitions 20 ns
Clock-to-carry output300 ns typical; 600 ns maximum5 V; input transitions 20 ns
Clock frequency capability2.5 MHz minimum; 5 MHz typical5 V; measured with carry output
Minimum clock pulse width200 ns5 V recommended condition
Inhibit setup time230 ns5 V before the clock edge
Reset pulse width260 ns minimum5 V recommended condition
Reset removal time400 ns minimum5 V recommended condition

Typical speed is not a guarantee for every supply, load and temperature. The manual explorer does not reproduce these delays.

Three-LED sequence circuit

A clean 1 Hz, 0–5 V clock

ParameterValueConditions / notes
Clock inputPin 14Common-ground logic clock
Clock inhibitPin 13 → GNDAllows counting
Reset networkPin 15 → 10 kΩ → GNDMomentary switch to +5 V; pulse at startup
LED channelsQ0 pin 3, Q1 pin 2, Q2 pin 4One 10 kΩ series resistor per LED
LED current estimateAbout 0.3 mA per active LEDIdeal 5 V HIGH and 2 V red LED
Supply bypass100 nF between pins 16 and 8Place close to the IC
Unused outputs and carryLeave openCounts 3–9 have no lit LED in this example

Use high-efficiency LEDs for this small drive current, or external drivers for bright/multiple loads. A manual clock switch requires debouncing.

Absolute maximum ratings

Stress limits, not operating settings

ParameterValueConditions / notes
Supply voltage−0.5 to +20 VRecommended operation is 3–18 V
Input voltage−0.5 V to VDD + 0.5 VReferenced to VSS
Input current±10 mAAny one input
Package dissipation500 mW through 100°CDerate 12 mW/°C to 200 mW at 125°C
Output-transistor dissipation100 mWPer output transistor
Storage temperature−65 to +150°CUnpowered storage

Supply and thermal stress ratings do not establish a safe output load.

Take it into ProTech

Find CD4017B in the Components Library to place its schematic symbol and connect its pins.

Reference page · circuit simulation model not yet availableOpen ProTech

Component view