A counter remembers how many clock pulses it has received. Here, a clock is simply a digital signal that repeatedly changes between low and high. The TC4017BP selects one of ten outputs: Q0, Q1, …, Q9, then Q0 again. It is useful for sequencing and slow demonstrations, but it is not a microcontroller and cannot be programmed.

From a pulse to one selected output

The IC is a CMOS Johnson counter with an internal decoder. A decoder turns the stored internal state into a separate output. In each settled state, one Q output is high and the other nine are low. With a 5 V supply, this test uses 0 V for low and 5 V for high. Outputs are active high, not tri-state bus outputs: never wire them directly together.

Clock, reset and inhibit control a counter and decoder selecting one of ten outputs
Functional principle; power and decoupling are described in the bench-test steps.

Exact device and pinout

This guide covers the Toshiba TC4017BP through-hole DIP-16, designated DIP16-P-300-2.54A in the datasheet (2.54 mm lead pitch and nominal 7.62 mm row spacing). TC4017BF is a different, surface-mount package. The shop part is NOS, unused and untested, marked 8401H; the date code has not been established with certainty. The datasheet characterises the type, not an individual test of this stock.

TC4017BP top view with all 16 numbered pins and signal names
Top-view pinout of Toshiba TC4017BP, not the BF package.

Top view, notch upwards. Pins run anticlockwise; signal names follow the original datasheet.

A simple 5 V bench test

Use a regulated 5 V supply, breadboard, 100 nF ceramic capacitor, wires, a high-impedance voltmeter and a clean 0–5 V clock at about 1 Hz with common GND. Use a source with known levels; a bare pushbutton bounces and may produce several counts.

  1. Switch power off. Place the IC across the breadboard centre gap. Connect VDD (16) to +5 V and VSS (8) to GND. Fit 100 nF between those pins close to the IC.
  2. Tie CLOCK INHIBIT (13) to GND and connect CLOCK (14) to the clock source. Hold the clock low during reset. Give RESET (15) a defined level, for example 10 kΩ to GND and a jumper to +5 V for reset.
  3. Apply power. Hold RESET high for at least 1 ms: Q0 (3) goes high, Q1–Q9 go low. Remove the reset jumper so the resistor pulls RESET low. Wait at least 1 ms before the first rising clock edge. Do not rely on a particular power-up state without reset.
  4. Measure Q0 (3), then Q1 (2), Q2 (4) and Q9 (11) during the slow sequence. Unused Q outputs and CARRY OUT (12) may be left unconnected. Never connect an output directly to +5 V or GND.

One complete counting sequence

Begin with RESET=1 and CLOCK=0: Q0 is high. Set RESET=0 and keep INHIBIT=0. The first rising clock edge selects Q1; the falling edge changes nothing. The second rising edge selects Q2. Continue to the ninth edge, which selects Q9; the tenth selects Q0 again. CARRY OUT is high during Q0–Q4 and low during Q5–Q9: it produces one period per ten input periods, not a short Q9 pulse.

To hold a state, raise INHIBIT while CLOCK is low and keep it stable through subsequent clock edges. The count is held. Lower INHIBIT again only while CLOCK is low. Important: a falling INHIBIT edge also counts if CLOCK is high. RESET is active high and overrides both clock and inhibit.

Levels, timing and troubleshooting

  • At 5 V the datasheet requires at least 3.5 V for a guaranteed high and at most 1.5 V for a guaranteed low. A 3.3 V signal is therefore not guaranteed high. Use a suitable level translator; never feed 5 V outputs into an input that is not 5 V tolerant.
  • Recommended VDD is 3–18 V, but this test uses 5 V only. Keep all inputs between VSS and VDD. The 20 V absolute maximum is not an operating voltage.
  • At 5 V, 25 °C and 50 pF load, CLOCK→Q delay is specified up to 650 ns. Allow at least 200 ns clock pulse width, 260 ns reset pulse, 230 ns inhibit setup and 400 ns reset-release-to-clock interval. Our millisecond margins are much longer. These figures are not full-temperature guarantees.
  • Start with the voltmeter, without LED loading. Outputs are weak compared with an LED driver; LED experiments need a series resistor, and larger loads need a buffer/driver. Never drive relay coils directly.
  • Several counts per button press usually mean contact bounce. If counting stops, measure RESET and INHIBIT, check clock levels and verify pins 8/16. Reset selects Q0; it does not make all outputs low.

Datasheet and further reading

Original Toshiba TC4017BP/BF datasheet. Pins and function: pages 1–2; operating range: page 3; levels: page 4; timing at 25 °C: page 5; DIP dimensions: page 7. This is a low-speed experiment, not a complete controller or safety circuit.

For a clean button signal, see the Schmitt-trigger guide. For an oscillator, see the LMC555 guide; always check output levels before connecting circuits.

View TC4017BP in the shop