Skip to content
digiwleeaTools
LearnGlossaryAboutCheat sheetHow a CPU worksToolsOpen the lab →

74LS76: the dual JK flip-flop chip, live

The 74LS76 holds two JK flip-flops with active-low preset (PRE) and clear (CLR). The 74LS76A triggers on the falling edge of CLK: J = 1, K = 0 sets Q, J = 0, K = 1 resets it, J = K = 0 holds and J = K = 1 toggles. PRE and CLR override the clock. This live circuit has both flip-flops.

TI's datasheet (SN54LS76A/SN74LS76A) describes the 'LS76A as "two independent negative-edge-triggered flip-flops": J and K must be stable for a setup time before the clock's high-to-low transition, and the preset and clear are asynchronous active-low inputs that, when low, override the clock and data inputs. (The older 7476 in the same datasheet is a master-slave part instead.) Each flip-flop here is a master-slave D flip-flop with asynchronous set and clear, clocked through an inverter so it changes on the falling edge, with the JK logic in front: D = J Q' + K' Q, which is the standard way to turn a D flip-flop into a JK (see the flip-flop conversions). Because the master and slave never both pass data, J = K = 1 toggles exactly once per clock, with no race-around. With PRE and CLR both low the chip drives both outputs high, a state the datasheet calls nonstable; the outputs here reproduce it. Note the unusual power pins, VCC on 5 and GND on 13. CLK is a plain switch here. The live chip opens with both CLR inputs low (Q = 0) and J = K = 1: set 1CLR to 1 and turn 1CLK on and off to toggle 1Q. Before the page is built, a 25-step sequence (clear, hold, set, reset, toggles, the second flip-flop toggling on its own clock, preset and the both-low state) is checked on all four outputs.

Big circuit: pinch, scroll or tap + to zoom in, then drag to move around.

Live circuit: click the inputs to toggle them and watch the outputs update. It runs the real simulator, right here on the page.

Open this circuit in the lab →

What you need

Step by step

  1. Place, for each flip-flop n, inputs nJ, nK, nCLK, nPRE, nCLR and probes nQ and nQbar.
  2. Feed a D flip-flop with D = J Q' + K' Q, clocked by NOT CLK so it changes on the falling edge.
  3. Wire NOT PRE to its set and NOT CLR to its clear, so both act when LOW.
  4. Clear it, set J = K = 1 and pulse CLK: Q toggles once per falling edge.

74LS76A function table (each flip-flop)

PRECLRCLKJKQQ'
01XXX10
10XXX01
00XXX1 (nonstable)1 (nonstable)
11falling00no changeno change
11falling1010
11falling0101
11falling11toggletoggle
111XXno changeno change

74LS76 pinout

PinNamePinName
11CLK161K
21PRE (active low)151Q
31CLR (active low)141Q'
41J13GND
5VCC122K
62CLK112Q
72PRE (active low)102Q'
82CLR (active low)92J

X means the input does not matter. The function table (for the 'LS76A) and the 16-pin pinout are from TI's SN74LS76A datasheet (SDLS121), checked 2026-10-25; the 7476 in the same datasheet is a positive-pulse master-slave version with the same pins.

You can also read the full theory in the lesson on the JK flip-flop. Prefer to build it yourself from scratch? Open the digiwleea lab and place the gates on the canvas, or start from the logic gate simulator.

Build more parts from gates

half adderfull adderhalf subtractorfull subtractor2:1 multiplexer4:1 multiplexerXOR gate from NAND gates2-to-4 decoderSR latchD flip-flopJK flip-flopT flip-flop4-bit shift register4-bit ripple carry adderD latch1-to-4 demultiplexer4-bit magnitude comparator4-bit ring counter4-bit Johnson counter4-to-2 priority encoder4-bit synchronous counter3-to-8 decoder8-to-1 multiplexer4-bit carry lookahead adderhalf adder from NAND gates2-bit comparatorBCD to 7-segment decoder4-bit up/down counterdecade counter2-bit multiplier4-bit ALU4-bit array multiplierNOT, AND, OR and NOR from NANDNOT, OR, AND and XOR from NORfull adder from NAND gatesSR latch from NAND gatesparity generator and checker4-bit adder/subtractorBCD adder4-bit universal shift registermod-6 counter4-bit ripple counterbinary to Gray code converterhalf adder from NOR gatesfull adder from NOR gates4-bit register with parallel load1011 sequence detectorbinary to BCD converterD flip-flop from NAND gates1-bit ALUCMOS inverterCMOS NAND gateCMOS NOR gatePISO shift registerSR flip-flop from NAND gatesBCD to excess-3 code converterHamming (7,4) code encoder and correctortraffic light controller4-bit barrel shifterCMOS AND gateCMOS OR gateCMOS XOR gate1-bit magnitude comparatorhalf subtractor from NAND gatesfull subtractor from NAND gates8-to-3 encoderGray to binary converter4-to-16 decoderfull adder using 4:1 multiplexersedge detectorserial adder4-bit carry-select adder4-bit Kogge-Stone adder4-bit carry-skip adder4x4 Wallace tree multiplier8-bit adderfrequency divider (by 2, 4 and 3)switch debouncer (SR latch)3-bit Gray code counterMealy machine (1011 detector)master-slave JK flip-flop (NAND)half subtractor from NOR gates1-to-8 demultiplexerexcess-3 to BCD code convertervending machine FSM4-bit carry-save adder3-bit synchronous counter (JK)CMOS transmission gatetri-state buffer (CMOS)2-to-1 mux from transmission gatesmod-5 counterflip-flop conversion (JK to D)8-bit ALUdecimal to BCD encoderBCD to decimal decoder4-to-1 mux from 2-to-1 muxesXOR gate from NOR gates4-bit LFSR74LS138 decoderBCD subtractor74181 ALUCMOS AOI gate (AOI21)D latch vs D flip-flop74LS47 BCD to 7-segment decoder74HC595 shift register7400 quad NAND gate chip7402 quad NOR gate chip7404 hex inverter chip7408 quad AND gate chip7432 quad OR gate chip7486 quad XOR gate chip7474 dual D flip-flop74HC165 shift registerCD4017 decade counter74LS283 4-bit adder74LS90 decade counter74HC161 4-bit counter74HC151 8-to-1 multiplexer74HC157 quad 2-to-1 multiplexer74HC139 dual 2-to-4 decoderCD4511 BCD to 7-segment decoder7492 divide-by-12 counter7493 4-bit binary counter74HC244 octal bufferRace-around condition (JK latch)74HC373 octal latch74HC374 octal D flip-flopTurnstile state machine1-to-2 demultiplexerhalf adder using 2:1 multiplexersregister file (4 x 4-bit)digital PWM generatorCD4013 dual D flip-flop7410 triple 3-input NAND chip7411 triple 3-input AND chip7420 dual 4-input NAND chipCD4011 quad 2-input NAND chipCD4001 quad 2-input NOR chipCD4081 quad 2-input AND chipCD4069 hex inverter chip74HC164 8-bit shift register

Each of these is one step from a transistor to a working CPU. Build every gate from CMOS transistors and work all the way up in the free digiwleea lab, with the free theory reference alongside.

Open the 74LS76 dual JK flip-flop in the lab →

Frequently asked

What does the 74LS76 do?

It contains two independent JK flip-flops with asynchronous active-low preset and clear. The 74LS76A changes on the falling edge of its clock: it can hold, set, reset or toggle, depending on J and K.

Is the 74LS76 edge triggered?

The 74LS76A is negative-edge triggered: J and K are read at the clock's high-to-low transition. The older 7476 is a master-slave (pulse-triggered) flip-flop.

How do you make a T flip-flop with a 74LS76?

Tie J and K together as the T input (or both high for a free toggle). With T = 1 each falling clock edge toggles Q, which divides the clock by two.

Why are the 74LS76's power pins 5 and 13?

That is its pinout: VCC on pin 5 and GND on pin 13, not the corner pins most logic chips use, so check it before wiring.