Overview

The CD4027 (CD4027B / CD4027BE) is a monolithic CMOS dual J-K master-slave flip-flop integrated circuit manufactured by Texas Instruments, ON Semiconductor, and Renesas. Operating across a wide supply voltage span of 3.0 V3.0\text{ V} to 18.0 V18.0\text{ V}, each independent flip-flop contains individual J, K, CLOCK, asynchronous SET, and asynchronous RESET inputs, alongside complementary buffered outputs (Q and ~Q).

The CD4027 triggers on the positive-going (rising) edge of the clock signal. It provides versatile sequential logic modes: when J=1J=1 and K=1K=1, the flip-flop toggles output on each rising clock pulse, acting as an ultra-reliable divide-by-2 frequency divider or toggle switch. It is heavily utilized in digital ripple counters, hardware debouncers, push-button power toggle circuits, shift registers, and state-machine sequencers.

Quick reference

Logic FamilyHigh-Voltage CMOS (4000B Series)
Package16-pin PDIP (CD4027BE) / 16-pin SOIC (CD4027BM)
Supply Voltage Range (VDDV_{DD})3.0 V3.0\text{ V} to 18.0 V18.0\text{ V} DC
Flip-Flops Per Package2 independent J-K Flip-Flops
Clock TriggeringPositive (rising) edge-triggered
Maximum Clock Frequency4.0 MHz4.0\text{ MHz} at 5V5\text{V} / 16.0 MHz16.0\text{ MHz} at 15V15\text{V}
Propagation Delay65 ns65\text{ ns} typical at 15V15\text{V} (150 ns150\text{ ns} at 5V5\text{V})
Asynchronous OverridesActive-HIGH SET and RESET
Quiescent Current0.02 μA0.02\ \mu\text{A} typical at 5V5\text{V} (ultra-low power)

Pinout (DIP-16 / SOIC-16 Package)

text
             ┌──────────────┐
        Q2  ─│ 1         16 │─ VDD (+3V to +18V)
       ~Q2  ─│ 2         15 │─ Q1
    CLOCK2  ─│ 3   CD    14 │─ ~Q1
    RESET2  ─│ 4   4027  13 │─ CLOCK1
        K2  ─│ 5         12 │─ RESET1
        J2  ─│ 6         11 │─ K1
      SET2  ─│ 7         10 │─ J1
       VSS  ─│ 8          9 │─ SET1
     (GND)   └──────────────┘
PinNameDescription
1Q2Flip-Flop 2 True Output
2~Q2Flip-Flop 2 Inverted Output
3CLOCK2Flip-Flop 2 Positive-Edge Clock Input
4RESET2Flip-Flop 2 Asynchronous Reset Input (Active-HIGH)
5K2Flip-Flop 2 K Data Input
6J2Flip-Flop 2 J Data Input
7SET2Flip-Flop 2 Asynchronous Set Input (Active-HIGH)
8VSSGround (0 V) reference
9SET1Flip-Flop 1 Asynchronous Set Input (Active-HIGH)
10J1Flip-Flop 1 J Data Input
11K1Flip-Flop 1 K Data Input
12RESET1Flip-Flop 1 Asynchronous Reset Input (Active-HIGH)
13CLOCK1Flip-Flop 1 Positive-Edge Clock Input
14~Q1Flip-Flop 1 Inverted Output
15Q1Flip-Flop 1 True Output
16VDDPositive Power Supply (+3.0V to +18.0V DC)

Truth Table (Each Flip-Flop)

Synchronous Clocked Operation (SET = 0, RESET = 0)

CLOCK TransitionJ InputK InputQn+1Q_{n+1} (Next Output)Qn+1\overline{Q}_{n+1} (Inverted Output)Operating Mode
Rising Edge (\uparrow)Low (0)Low (0)QnQ_n (No change)Qn\overline{Q}_n (No change)Hold / Store
Rising Edge (\uparrow)High (1)Low (0)High (1)Low (0)Set
Rising Edge (\uparrow)Low (0)High (1)Low (0)High (1)Reset
Rising Edge (\uparrow)High (1)High (1)Qn\overline{Q}_n (Inverted)QnQ_n (Inverted)Toggle (Divide-by-2)
Falling Edge (\downarrow) / SteadyXXQnQ_nQn\overline{Q}_nNo state change

Asynchronous Override Inputs

SETRESETCLOCKJKQ Output~Q OutputAction
High (1)Low (0)XXXHigh (1)Low (0)Asynchronous Force SET
Low (0)High (1)XXXLow (0)High (1)Asynchronous Force RESET
High (1)High (1)XXXHigh (1)High (1)Invalid / Undefined state

Push-Button Toggle Switch Circuit (T-Flip-Flop)

text
        +VDD (+5V to +12V)

           ├───────────────────┬───────────────────┐
           │                   │                   │
        [Pin 16: VDD]       [ 10k Pull-Up ]     [Pin 10: J1]
         CD4027                │                   │
        [Pin 13: CLOCK1] ──────┴─[ Push Button ]───┼───[Pin 11: K1]
           │                         │             │
        [Pin 9:  SET1]  ──── GND     GND          +VDD
        [Pin 12: RESET1] ─── GND
        [Pin 15: Q1] ───────────────────────────── Output Toggle Signal (High / Low)

Specifications

ParameterSymbolMinTypMaxUnitConditions
Supply Voltage RangeVDDV_{DD}3.05.0 / 12.018.0VOperating range
Maximum Clock FrequencyfCLf_{CL}3.08.0MHzVDD=5V,TA=25CV_{DD} = 5\text{V}, T_A = 25^\circ\text{C}
Maximum Clock Frequency (15V15\text{V})fCLf_{CL}12.024.0MHzVDD=15V,TA=25CV_{DD} = 15\text{V}, T_A = 25^\circ\text{C}
Propagation Delay (CLKQCLK \to Q)tPHL,tPLHt_{PHL}, t_{PLH}150300nsVDD=5V,CL=50 pFV_{DD} = 5\text{V}, C_L = 50\text{ pF}
Propagation Delay (15V15\text{V})tPHL,tPLHt_{PHL}, t_{PLH}4590nsVDD=15V,CL=50 pFV_{DD} = 15\text{V}, C_L = 50\text{ pF}
Clock Pulse Width MinimumtWt_W70140nsVDD=5VV_{DD} = 5\text{V}
Quiescent Device CurrentIDDI_{DD}0.021.0μA\mu\text{A}VDD=5VV_{DD} = 5\text{V}

Common mistakes

  • Leaving unused inputs floating: CMOS inputs have infinite input impedance (1012 Ω10^{12}\ \Omega). Leaving unused inputs (like SET, RESET, J, K, or the unused second flip-flop) floating will pick up electrostatic noise, causing massive power dissipation and erratic behavior. Tie unused logic inputs to VSS (GND) or VDD.
  • Active-HIGH Set and Reset confusion: Unlike 74HC series flip-flops (which use active-LOW SET\overline{SET} and RESET\overline{RESET}), the CD4027 uses active-HIGH Set and Reset pins. For normal clocked operation, SET and RESET must both be tied to Ground (VSS).
  • Contact bounce on clock input: Connecting a mechanical switch directly to CLOCK causes multiple rapid clock edges per press. Always debounce mechanical switches with an RC filter and Schmitt trigger (like 74HC14 or CD40106) before the clock input.

Notes

  • Comparison with CD4013: The CD4013 is a Dual D-type flip-flop (data follows D input), whereas the CD4027 is a Dual J-K flip-flop, offering native hardware toggle capabilities without external feedback routing.

Assets & downloads