Projects / Ideas / JK flip-flop from NAND gates

JK flip-flop from NAND gates

IntermediateLearningIdeaReviewed
In short

How do you build a JK flip-flop from NAND gates?

Build a clocked JK flip-flop from NAND gates and watch it set, reset, hold and toggle as you press the J, K and clock buttons, with LEDs for Q and not Q. It shows how memory is built from plain gates and why the toggle case needs care with timing. You need 74HC00 quad NAND gate × 2, Tactile push button 6 mm × 3, LED 5 mm red × 2, Resistor 220 Ω × 2, Resistor 10 kΩ × 3, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

Level
Intermediate
Time
About 90 min
Parts
7
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Build a JK flip-flop out of NAND gates.

Parts list

How to build it

  1. Build the gated SR latch from four NAND gates
  2. Add feedback to make it a JK
  3. Clock it with a debounced button
  4. Try set, reset, hold and toggle
  5. Note what happens if the clock is held down

Related projects

Common questions

What parts do I need for the JK flip-flop from NAND gates?

74HC00 quad NAND gate × 2, Tactile push button 6 mm × 3, LED 5 mm red × 2, Resistor 220 Ω × 2, Resistor 10 kΩ × 3, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the JK flip-flop from NAND gates take to build?

About 90 minutes for a intermediate maker.