Overview

The CD4040 (CD4040B / HEF4040B / 74HC4040) is a 12-stage binary ripple counter and frequency divider IC manufactured by Texas Instruments, ON Semiconductor, and Renesas. Unlike the CD4020, all 12 stage outputs (Q1Q_1 through Q12Q_{12}) are connected to external IC pins.

Operating from 3.0V to 18.0V DC, the CD4040 increments its 12-bit binary count on each negative-going clock transition (\downarrow). It divides the input clock frequency by powers of 2 (21=22^1 = 2 up to 212=4,0962^{12} = 4,096), making it a favourite in audio synthesizers, frequency dividers, and multi-channel timing circuits.

Quick reference

Supply Voltage (VDD - VSS)3.0 V to 18.0 V DC (CD4000B) / 2.0V to 6.0V DC (74HC4040)
Divider Stages12 Binary Stages (21212=4,0962^1 \dots 2^{12} = 4,096)
Exposed OutputsALL 12 Buffered Outputs (Q1,Q2,Q3,Q4,Q5,Q6,Q7,Q8,Q9,Q10,Q11,Q12Q_1, Q_2, Q_3, Q_4, Q_5, Q_6, Q_7, Q_8, Q_9, Q_{10}, Q_{11}, Q_{12})
Clock Input TriggerNegative-Edge Triggered (\downarrow HIGH-to-LOW transition)
Reset InputAsynchronous Active-HIGH Master Reset (RESETRESET)
Max Clock Frequency12 MHz12\text{ MHz} at VDD=15VVDD = 15\text{V} (3.5 MHz3.5\text{ MHz} at 5V5\text{V})
Package16-pin DIP / SOIC-16

Pinout (DIP-16 Package)

text
             ┌───┴───┐
         Q12 1│ 1   16│ VDD (+3V to +18V)
          Q6 2│       │15 Q11
          Q5 3│ CD4040│14 Q10
          Q7 4│       │13 Q8
          Q4 5│       │12 Q9
          Q3 6│       │11 RESET (Master Reset)
          Q2 7│       │10 /CLK (Clock In)
   VSS(GND) 8│       │9  Q1
             └───────┘
PinNameTypeDescription
1Q12OutputStage 12 Output (÷4,096\div 4,096, MSB)
2Q6OutputStage 6 Output (÷64\div 64)
3Q5OutputStage 5 Output (÷32\div 32)
4Q7OutputStage 7 Output (÷128\div 128)
5Q4OutputStage 4 Output (÷16\div 16)
6Q3OutputStage 3 Output (÷8\div 8)
7Q2OutputStage 2 Output (÷4\div 4)
8VSSPowerDigital Ground (0 V)
9Q1OutputStage 1 Output (÷2\div 2, LSB)
10\CLKInputMaster Clock Input (Negative-edge triggered \downarrow)
11RESETInputMaster Reset (Active HIGH: High = Reset all outputs to LOW)
12Q9OutputStage 9 Output (÷512\div 512)
13Q8OutputStage 8 Output (÷256\div 256)
14Q10OutputStage 10 Output (÷1,024\div 1,024)
15Q11OutputStage 11 Output (÷2,048\div 2,048)
16VDDPowerPositive Power Supply (+3.0V to +18.0V DC)

Frequency Division Ratios

Stage PinBinary PowerDivision FactorExample (fCLK=1.0 MHzf_{CLK} = 1.0\text{ MHz})
Q1Q_1 (Pin 9)212^1÷2\div 2500.0 kHz500.0\text{ kHz}
Q2Q_2 (Pin 7)222^2÷4\div 4250.0 kHz250.0\text{ kHz}
Q3Q_3 (Pin 6)232^3÷8\div 8125.0 kHz125.0\text{ kHz}
Q4Q_4 (Pin 5)242^4÷16\div 1662.5 kHz62.5\text{ kHz}
Q12Q_{12} (Pin 1)2122^{12}÷4,096\div 4,096244.14 Hz244.14\text{ Hz}

Common mistakes

  • Assuming positive-edge clocking: The CD4040 triggers on falling clock edges (\downarrow).
  • Leaving RESET (Pin 11) ungrounded: RESET is active-HIGH. Connect RESET to GND to enable counting.

Notes

  • CD4040 vs CD4020: CD4040 exposes all 12 stage outputs (Q1Q12Q_1 \dots Q_{12}); CD4020 is a 14-stage counter but omits Q2Q_2 and Q3Q_3.

Assets & downloads