⚡ ELT 102 · Digital Logic & Solid State Devices Hands-On Tinkercad Lab
Unit 1 · Digital Logic · Lab

Latches & Flip-Flops: Circuits That Remember

Every circuit so far forgot its inputs the instant you changed them. This lab builds the ones that don't — four reference circuits on one breadboard layout: a cross-coupled 74HC02 NOR latch, the same latch behind an AND-gate enable, the 74HC74 edge-triggered D flip-flop, and the 74HC73 JK flip-flop — ending with a flip-flop that divides a clock's frequency in half before your eyes.

⏱ 3 × 75-Minute Sessions 🖥 Tinkercad Circuits (Free) 🔋 3 × AA Pack · 4.5 V 🔧 74HC02 · 08 · 74 · 73 📊 Timing-Diagram Playground ✅ 9-Question Knowledge Check

Learning Objectives

By the end of this lab, you will be able to:

  • Distinguish combinational logic (output depends only on present inputs) from sequential logic (output depends on input history), and identify feedback as the structural ingredient that creates memory.
  • Construct an active-HIGH SR latch from two cross-coupled 74HC02 NOR gates, characterize its SET, RESET, and HOLD states, and demonstrate the forbidden input combination (S = R = 1) and why it's disallowed.
  • Gate the SR latch with a 74HC08 enable stage, and explain what the enable adds (control over when the latch listens) and what it does not fix (the forbidden state).
  • Extend the gated SR latch into a transparent D latch with one inverter, and describe transparency: while the enable is HIGH, Q follows D; when it drops, Q freezes.
  • Operate the 74HC74 dual D flip-flop from switches on D, CLK, PRE̅, and CLR̄, and contrast edge-triggered capture (Q updates only at the rising clock edge) with latch transparency.
  • Verify the asynchronous behavior of PRE̅ and CLR̄ — they override the clock entirely — and state why asynchronous controls exist.
  • Wire the 74HC73 dual JK flip-flop, including its non-standard power pins (VCC = 4, GND = 11), and discover that it triggers on the falling clock edge; confirm hold, reset, set, and toggle.
  • Synthesize a JK flip-flop around the 74HC74 using the characteristic equation D = J·Q̄ + K̄·Q with 74HC08/32/04 gates (extension), then demonstrate divide-by-two with a T flip-flop: with T = 1 and a 2 Hz clock, Q blinks at exactly 1 Hz — the seed of every binary counter.

🧭 The Four Reference Circuits

Each part of the procedure has a reference build — a finished Tinkercad breadboard with a column-by-column wiring map. Build it yourself first; open the reference only to check your work. All four share one layout convention, so what you learn wiring Circuit 1 carries straight through to Circuit 4.

Bridges and extensions: Part 3 turns Circuit 2 into a D latch with one inverter; Part 6 synthesizes a JK from the 74HC74; Part 7 makes Circuit 4 a T flip-flop and divides a clock by two.

Key Terms & Concepts

Click any card to reveal its definition. Review these before you build.

Memory Fundamentals
Sequential Logic
Memory Fundamentals
🔄 Click to reveal definition
Definition
Circuits whose output depends on present inputs and past history. The mechanism is feedback: an output routed back to an input lets the circuit hold a state. Every register, counter, and byte of RAM is sequential logic; every gate circuit from the previous lab was combinational.
Latch vs Flip-Flop
Memory Fundamentals
🔄 Click to reveal definition
Definition
Both store one bit; the difference is when they listen. A latch is level-sensitive — transparent whenever its enable is active. A flip-flop is edge-triggered — it samples its inputs only at the instant the clock transitions, and ignores them the rest of the time.
Q and Q̄
Memory Fundamentals
🔄 Click to reveal definition
Definition
The stored bit and its complement, both brought out as outputs (green LED = Q, red LED = Q̄ in every reference build). In every valid state they disagree. The one condition that makes them agree is a latch's forbidden input — which is exactly why it's forbidden.
Rising vs Falling Edge
Memory Fundamentals
🔄 Click to reveal definition
Definition
The rising edge (LOW→HIGH, ▲) triggers the 74HC74; the falling edge (HIGH→LOW, ▼) triggers the 74HC73 — the bubble on its clock pin says so. Either way, edge-triggering is what lets millions of flip-flops in a CPU update in lockstep once per cycle.
The Devices
SR Latch (NOR)
The Devices
🔄 Click to reveal definition
Definition
Two cross-coupled 74HC02 NOR gates: Set = 1 forces Q = 1, Reset = 1 forces Q = 0, both 0 = hold. Active-HIGH. (The NAND version is the mirror image: active-LOW inputs.) The atom of storage — everything else in this lab is an SR latch wearing extra logic.
Gated SR Latch
The Devices
🔄 Click to reveal definition
Definition
An SR latch with an enable: two AND gates pass S and R only while EN = 1. With EN = 0 both AND outputs sit LOW, so the latch holds no matter what S and R do. It adds timing control — but S = R = 1 with EN = 1 is still forbidden.
D Latch / D Flip-Flop
The Devices
🔄 Click to reveal definition
Definition
One data input, no forbidden state: S = D and R = D̄ can never both be 1. The latch (level) copies D to Q while enabled; the flip-flop (edge, 74HC74) copies D to Q only at the clock edge: Qnext = D. The workhorse of registers and pipelines.
JK Flip-Flop
The Devices
🔄 Click to reveal definition
Definition
The SR idea with the forbidden state repurposed: J = K = 1 means toggle. Full characteristic: 00 hold · 01 reset · 10 set · 11 toggle. Qnext = J·Q̄ + K̄·Q. Ready-made in the 74HC73 (Part 5) — and buildable from a 74HC74 plus gates (Part 6).
T Flip-Flop
The Devices
🔄 Click to reveal definition
Definition
A JK with J and K tied together as one input, Toggle: T = 0 hold, T = 1 flip on every active clock edge. With T = 1 its output runs at exactly half the clock frequency — chain n of them and you've built a divide-by-2ⁿ binary counter.
Practical Realities
Forbidden / Invalid State
Practical Realities
🔄 Click to reveal definition
Definition
Both SR inputs active at once: the NOR latch drives Q = Q̄ = 0 (they're supposed to disagree!), and worse, releasing both simultaneously leaves the final state to a race the datasheet won't promise. You'll create it deliberately in Part 1 — in simulation, where it's free.
Asynchronous PRE̅ / CLR̄
Practical Realities
🔄 Click to reveal definition
Definition
Override pins that force Q = 1 (preset) or Q = 0 (clear) immediately, ignoring the clock. Active-LOW: keep them HIGH for normal clocked operation. The 74HC74 has both; the 74HC73 has only CLR̄. Their real job: a known state at power-up — a reset button is a wire to CLR̄.
Pull-Down Resistor
Practical Realities
🔄 Click to reveal definition
Definition
Each input slide switch in the reference builds has one end to +4.5 V and the other to GND through a 10 kΩ resistor; the middle pin drives the chip. Slide one way = solid HIGH, the other = solid LOW. A CMOS input must never float — that rule matters even more when the input is a clock.
Switch Bounce
Practical Realities
🔄 Click to reveal definition
Definition
Real switch contacts chatter for milliseconds — dozens of edges where you intended one. Tinkercad's slide-switch clock is ideally clean, so one slide = one edge here; on a physical bench the same circuit counts wildly until you add a debouncer. (Classic debouncer? An SR latch. This lab eats its own tail.)
Characteristic Table
Practical Realities
🔄 Click to reveal definition
Definition
The sequential cousin of the truth table: inputs on the left, but the output column is Qnext — often written in terms of the present Q ("hold," "toggle"). Reading and filling characteristic tables is this lab's core measurement skill.

🖥 Tinkercad Setup Notes for Sequential Circuits

Sixth lab — your gates-lab habits return, with a shared breadboard layout used by all four reference circuits:

New Discipline: Order Matters Now
In combinational labs you could set switches in any order and read the answer. Not anymore. The same inputs can produce different outputs depending on the state you arrived in — that's what memory means. Follow the procedure's input sequences exactly, and record rows in the order performed. When a table asks for "Q before," write it down before touching anything.
Instructor Note: Unused Inputs
The reference builds leave the unused gates and the second flip-flop of each chip unconnected to keep the photos readable. Tinkercad tolerates that; physical CMOS does not. On a real bench, tie every unused input to GND or VCC — and on the 74HC73, tie FF #2's CLR̄ (pin 6) LOW so it sits in a known state.

🔧 Virtual Parts List

QtyComponent (Tinkercad name)Setting / PartUsed In
1Breadboard (small)rails jumpered left sideAll circuits
1Battery pack3 × AA = 4.5 VLogic supply, all circuits
4SlideswitchSPDT: +4.5 V / out / 10 kΩ→GNDS · R · EN · D · J · K · PRE̅ · CLR̄ · CLK
4Resistor 10 kΩbrown-black-orangeSwitch pull-downs
174HC02quad 2-input NORCircuits 1 & 2 · Part 3
174HC08quad 2-input ANDCircuit 2 · Parts 3 & 6
174HC74dual D flip-flop, ▲ edgeCircuit 3 · Part 6
174HC73dual JK flip-flop, ▼ edgeCircuit 4 · Part 7
1 ea74HC04 · 74HC32NOT · ORD latch (Part 3) · JK synthesis (Part 6)
3LED + Resistor 330 Ωgreen (Q) · red (Q̄) · yellow (CLK)State indicators
1Function Generatorsquare · 2 Hz · 0–4.5 VAuto-clock, Part 7
1Multimeter / OscilloscopeV mode / 200 ms/divLevels · divide-by-2 waveforms
~20Wirescolors as in reference buildsAll circuits

📐 The Circuits You Will Build

One lineage: the cross-coupled NOR pair is the atom; everything after it is that atom plus steering logic. Watch the family resemblance as you move through the tabs — then find each schematic's gates and wires in the matching reference build photo.

G1 · 74HC02 pins 1–3 G2 · 74HC02 pins 4–6 R (pin 2) S (pin 6) Q → green pin 1 Q̄ → red pin 4 the feedback — where memory lives pin 1 → pin 5 · pin 4 → pin 3 Active HIGH: S = 1 SETs (Q = 1) · R = 1 RESETs (Q = 0) · both 0 = HOLD · both 1 = forbidden (Q = Q̄ = 0).
Figure 1 — SR latch: gates 1 and 2 of a 74HC02 (Circuit 1). Each NOR's output feeds the other's second input (red wires). That loop is the entire secret: whichever gate is HIGH holds the other LOW — one stored bit, no clock, no capacitor. Note that R sits on the gate that produces Q: raising R forces Q to 0. In the breadboard photo the two feedback jumpers are the short green (pin 1→5) and short orange (pin 3→4) wires below the chip.
AND · 74HC08 pins 1–3 AND · 74HC08 pins 4–6 R S EN pin 2↔4 R·EN S·EN NOR · 74HC02 Q Q̄ EN = 1: S and R pass through the ANDs → latch responds. EN = 0: both AND outputs LOW → latch holds, whatever S and R do.
Figure 2 — Gated SR latch (Circuit 2). Two 74HC08 AND gates sit in front of the Circuit 1 latch. The EN switch drives both ANDs (pin 2, jumpered to pin 4), so it decides whether S and R reach the latch at all. The enable controls when the latch listens — but notice nothing stops S = R = 1 while EN = 1. That loophole is Part 3's job.
74HC04 D̄ = R D D = S 74HC08 EN NOR · 74HC02 Q Q̄ Circuit 2 + one inverter: S = D and R = D̄ can never both be 1. EN = 1 → Q follows D (transparent). EN = 0 → Q freezes.
Figure 3 — Gated (transparent) D latch, built from Circuit 2 in Part 3. The S switch becomes D, the R switch is removed, and a 74HC04 inverter makes R from D. Because the steering guarantees S ≠ R, the forbidden state is engineered out — the same idea every D-type device, including the 74HC74, is built on.
74HC74 dual D flip-flop with PRE̅ & CLR̄ 1 · 1CLR̄ (switch) 2 · 1D (switch) 3 · 1CLK ▲ (switch) 4 · 1PRE̅ (switch) 5 · 1Q → green 6 · 1Q̄ → red 7 · GND 14 · V_CC (+4.5 V) 13 · 2CLR̄ 12 · 2D 11 · 2CLK 10 · 2PRE̅ 9 · 2Q 8 · 2Q̄ Circuit 3 rig: CLR̄ switch → pin 1 · D switch → pin 2 · CLK switch → pin 3 · PRE̅ switch → pin 4 · pins 5/6 → LEDs. ▲ = rising-edge triggered.
Figure 4 — The 74HC74. Two independent edge-triggered D flip-flops; this lab uses #1 (pins 1–6). In Circuit 3, PRE̅ and CLR̄ each get their own switch: slide both HIGH for clocked operation, then in Part 4 slide each LOW briefly and watch it seize control from the clock entirely.
74HC73 dual JK flip-flop with CLR̄ · ▼ edge 1 · 1CLK̄ ▼ (switch) 2 · 1CLR̄ (switch) 3 · 1K (switch) 4 · V_CC (+4.5 V) ⚠ 5 · 2CLK̄ 6 · 2CLR̄ 7 · 2J 14 · 1J (switch) 13 · 1Q̄ → red 12 · 1Q → green 11 · GND ⚠ 10 · 2K 9 · 2Q 8 · 2Q̄ Power is NOT at the corners: V_CC = pin 4, GND = pin 11. The bubble on pin 1 means the clock is active on its falling edge (▼).
Figure 5 — The 74HC73 (Circuit 4). Two independent JK flip-flops with asynchronous clear and no preset. Flip-flop #1 uses pins 1, 2, 3, 12, 13, 14 — scattered around the package, which is why Circuit 4's wires reach both sides of the chip. In the photo, the red jumper on pin 4 runs to the bottom + rail and the black jumper on pin 11 to the top − rail.
AND J Q̄ (feedback) K 74HC04 AND Q (feedback) OR J·Q̄ K̄·Q 74HC74 FF #1 D pin 2 CLK ⎍ pin 3 Q pin 5 Q̄ pin 6 D = J·Q̄ + K̄·Q — the JK characteristic equation, wired literally. Tie J = K together = one input → a T flip-flop.
Figure 6 — JK (and T) from parts (Part 6 extension). The 74HC08 computes J·Q̄ and K̄·Q, the 74HC32 combines them, and the result drives the 74HC74's D input; the red feedback wires close the loop from Q and Q̄. Every rising edge, the flip-flop captures "what JK behavior says comes next." Compare with the 74HC73: same characteristic table, opposite clock edge.

Characteristic Tables at a Glance

DeviceInputsQ_nextBehaviorListens…
SR latch (74HC02 NOR)S=0 R=0Qhold (memory)always (level)
S=1 R=01set
S=0 R=10reset
S=1 R=10 = Q̄ ⚠forbidden
Gated SR latchEN=0 (any S,R)Qholdwhile EN high
EN=1as SR latchset / reset / hold / ⚠
D latchEN=1Dtransparentwhile EN high
EN=0Qhold
D flip-flop (74HC74)DDcapture at edgerising edge ▲
JK flip-flop (74HC73)J=0 K=0Qholdfalling edge ▼
J=0 K=10reset
J=1 K=01set
J=1 K=1Q̄toggle
T flip-flopT=0Qholdactive edge
T=1Q̄toggle → ÷2
SR: memory by feedback D: Q_next = D JK: Q_next = J·Q̄ + K̄·Q T: Q_next = T⊕Q T=1 → f(Q) = f(CLK) / 2

🛠 Step-by-Step Procedure

Suggested split: Session 1 = Parts 1–3 (the latches). Session 2 = Parts 4–5 (74HC74 and 74HC73). Session 3 = Parts 6–7 (JK synthesis and divide-by-2) + analysis. Remember the new discipline: perform sequences in order, record "Q before" before touching anything.

Part 1 — Circuit 1: The SR Latch from Two NOR Gates (≈25 min)

  1. Create the workspace. New circuit named "LastName – FlipFlop Lab." Small breadboard and a 3 × AA battery pack: red lead to the top + rail, black lead to the top − rail. Jumper the top rails to the bottom rails along the left edge (red to +, black to −).
  2. Seat the 74HC02. Across the center gap in columns 15–21, dot at the lower-left (pin 1 = column 15, bottom row). Pin 14 (column 15, top) → + rail; pin 7 (column 21, bottom) → − rail.
  3. Input switches. Two slide switches in row g: R at columns 5–7 and S at columns 9–11. For each: 10 kΩ from the left terminal's column to the − rail, red jumper from the right terminal's column to the + rail. Start both slid LOW.
  4. Cross-couple gates 1 and 2. Per Figure 1, below the chip: pin 1 → pin 5 (column 15 → 19) and pin 3 → pin 4 (column 17 → 18). These two short jumpers are the memory — double-check them.
  5. Connect the inputs. R's middle terminal (column 6) → pin 2 (column 16). S's middle terminal (column 10) → pin 6 (column 20).
  6. Output indicators. Green LED at columns 25–26 (cathode col 25 → − rail) and red LED at columns 28–29 (cathode col 28 → − rail), each anode fed by a 330 Ω resistor bridging the gap. Pin 1 (Q) → column 26; pin 4 (Q̄) → column 29.
  7. Power-up state. Start the simulation with S = R = 0 and look: one LED is on, the other off — but which one wasn't commanded by you. Note it in Data Table 1 row 0. (Real hardware powers up randomly too; that's what CLR̄ pins are for, coming in Part 4.)
  8. Walk the sequence. Perform these steps in order, recording Q before and after each into Data Table 1: (a) S→1 (SET) · (b) S→0 (hold — Q remembers!) · (c) R→1 (RESET) · (d) R→0 (hold again) · (e) S→1 then back — set again. Step (b) is the moment of the lab: both inputs inactive, yet the circuit knows what happened last.
  9. Visit the forbidden state. Slide both S and R to 1: both LEDs go dark — Q = Q̄ = 0, a contradiction in terms. Record it. Then release both to 0 and note which state it lands in; repeat twice. (Tinkercad makes you release one switch before the other — whichever you release last wins. On real silicon, a truly simultaneous release is a race.) Write one sentence on why designers simply outlaw this input.
Reference Build — Circuit 1: SR Latch (74HC02)SR-Latch.png
Tinkercad breadboard: 74HC02 at columns 15 to 21, R and S slide switches with 10 kilohm pull-down resistors at the upper left, green Q and red Q-bar LEDs at the upper right, powered by a 3 AA battery pack
Click the image to toggle zoom. Blue wires = inputs · short green/orange below the chip = feedback · long green/orange = outputs to the LEDs.
Show the column-by-column wiring map
ConnectionFromToWire in photo
Chip powerpin 14 (col 15, top)+ railred
Chip groundpin 7 (col 21, bottom)− railblack
R inputR switch middle (col 6)pin 2 (col 16)blue
S inputS switch middle (col 10)pin 6 (col 20)blue
Feedback Q → G2pin 1 (col 15)pin 5 (col 19)green, short
Feedback Q̄ → G1pin 4 (col 18)pin 3 (col 17)orange, short
Q outputpin 1 (col 15)col 26 → 330 Ω → green LEDgreen, long
Q̄ outputpin 4 (col 18)col 29 → 330 Ω → red LEDorange, long
Switch pull-downscols 5 and 910 kΩ → − railresistors
Switch HIGH sidecols 7 and 11+ railred
Compare: The NAND Version
The same memory can be built from two cross-coupled 74HC00 NAND gates. Everything inverts: the inputs become active-LOW (S̄ and R̄ — slide to 0 to act), hold is S̄ = R̄ = 1, and the forbidden input S̄ = R̄ = 0 drives Q = Q̄ = 1 instead of 0. If you finish early, rebuild Circuit 1 with a 74HC00 (same pin numbers) and confirm every row of Data Table 1 flips polarity.

Part 2 — Circuit 2: The Gated SR Latch with Enable (≈20 min)

  1. Make room for the enable stage. Rebuild on a fresh breadboard (or slide Circuit 1 aside). Seat the 74HC08 at columns 10–16 and the 74HC02 at columns 18–24, both with pin 1 at lower-left. Power each: 08 pin 14 (col 10 top) and 02 pin 14 (col 18 top) → + rail; 08 pin 7 (col 16) and 02 pin 7 (col 24) → − rail.
  2. Three input switches. R at columns 4–6 and S at columns 7–9 (top half, row g), plus EN in the lower half at columns 2–4 (row d). Same pull-down wiring as Part 1. Start all three LOW.
  3. Fan the enable out to both ANDs. EN middle (column 3) → 08 pin 2 (column 11), then a short jumper 08 pin 2 → 08 pin 4 (column 11 → 13). EN now reaches one input of each AND gate.
  4. Connect S and R. R middle (column 5) → 08 pin 1 (column 10). S middle (column 8) → 08 pin 5 (column 14). AND gate 1 now computes R·EN at pin 3; AND gate 2 computes S·EN at pin 6.
  5. Feed the latch. 08 pin 3 → 02 pin 2 (column 12 → 19, the R side). 08 pin 6 → 02 pin 6 (column 15 → 23, the S side).
  6. Rebuild the latch core and LEDs. Exactly as Circuit 1, shifted to the new position: 02 pin 1 → pin 5 (column 18 → 22), 02 pin 3 → pin 4 (column 20 → 21). Q (02 pin 1, column 18) → green LED at column 27; Q̄ (02 pin 4, column 21) → red LED at column 29.
  7. Enable test. With EN = 1, repeat Part 1's set / hold / reset / hold sequence — the circuit behaves exactly like Circuit 1. Now set Q = 1, slide EN = 0, and try to reset: slide R to 1. Nothing happens. Try S. Nothing. Record every row of Data Table 2.
  8. Find the remaining flaw. Slide EN = 1, S = 1, R = 1: both LEDs dark — the forbidden state survived the upgrade. Now, with S = R = 1, drop EN to 0: both AND outputs fall at the same instant. That's the true simultaneous release you couldn't create by hand in Part 1. Record where it lands. One sentence: what did the enable add, and what didn't it fix?
Reference Build — Circuit 2: Gated SR Latch (74HC08 + 74HC02)SR-Enable_Latch.png
Tinkercad breadboard: 74HC08 at columns 10 to 16 and 74HC02 at columns 18 to 24, R and S switches at the upper left, an enable switch in the lower left, green and red LEDs at the upper right, 3 AA battery pack
Blue = S and R · brown = EN (long) and its pin 2→4 fan-out (short) · pink = AND outputs into the NOR latch · short green/orange on the 74HC02 = feedback · long green/orange = outputs.
Show the column-by-column wiring map
ConnectionFromToWire in photo
74HC08 power / groundpin 14 (col 10 top) · pin 7 (col 16)+ rail · − railred · black
74HC02 power / groundpin 14 (col 18 top) · pin 7 (col 24)+ rail · − railred · black
R inputR switch middle (col 5)08 pin 1 (col 10)blue
S inputS switch middle (col 8)08 pin 5 (col 14)blue
EN inputEN switch middle (col 3, lower)08 pin 2 (col 11)brown, long
EN fan-out08 pin 2 (col 11)08 pin 4 (col 13)brown, short
R·EN → latch08 pin 3 (col 12)02 pin 2 (col 19)pink
S·EN → latch08 pin 6 (col 15)02 pin 6 (col 23)pink
Feedback Q → G202 pin 1 (col 18)02 pin 5 (col 22)green, short
Feedback Q̄ → G102 pin 4 (col 21)02 pin 3 (col 20)orange, short
Q output02 pin 1 (col 18)col 27 → 330 Ω → green LEDgreen, long
Q̄ output02 pin 4 (col 21)col 29 → 330 Ω → red LEDorange, long

Part 3 — Bridge: Gated D Latch — One Inverter Closes the Loophole (≈15 min)

  1. Add the inverter. Keep Circuit 2. Seat a 74HC04 in open columns (power 14/7). Remove the R switch's blue wire and relabel the S switch as D. Keep D → 08 pin 5, and add D → 04 pin 1; then 04 pin 2 (D̄) → 08 pin 1, where R used to go. The EN switch keeps its label and wiring. That's Figure 3.
  2. Transparency test. EN = 1: wiggle D up and down — Q follows instantly, like a wire. Record three rows in Data Table 3.
  3. Hold test. Set D = 1 so Q = 1, then drop EN = 0. Now wiggle D wildly: Q ignores you. The latch froze the last value it saw. Record. Try to reach the forbidden state with any D/EN combination — you can't. One sentence: what does the steering logic guarantee?

Part 4 — Circuit 3: The 74HC74 — Edge Triggering & Async Overrides (≈25 min)

  1. Fresh build. New breadboard, battery pack, rails jumpered. Seat the 74HC74 at columns 15–21 (pin 1 = column 15, bottom). Pin 14 (column 15 top) → + rail; pin 7 (column 21) → − rail.
  2. Three control switches, top half. CLR̄ at columns 4–6 → middle (column 5) to pin 1 (column 15). D at columns 7–9 → middle (column 8) to pin 2 (column 16). PRE̅ at columns 10–12 → middle (column 11) to pin 4 (column 18). Immediately slide CLR̄ and PRE̅ HIGH and leave them there.
  3. Clock switch, lower half. CLK at columns 2–4 in row d → middle (column 3) to pin 3 (column 17). Start it LOW. Sliding LOW→HIGH = one rising edge; slide it back LOW afterward to be ready for the next one.
  4. Outputs. Pin 5 (Q), column 19 → green LED at column 27. Pin 6 (Q̄), column 20 → red LED at column 29.
  5. The edge demonstration. Set D = 1. Nothing happens — and keep watching while you flip D back and forth a few times: still nothing. Now set D = 1 and slide CLK LOW→HIGH: Q snaps to 1 at that instant. Slide CLK back LOW — no change. Set D = 0, slide CLK up: Q → 0. The flip-flop listens for one instant per rising edge. Fill Data Table 4's clocked rows, and contrast in writing with Part 3's transparency.
  6. Change-D-between-edges test. With Q = 0 and CLK LOW: set D = 1, then D = 0, then D = 1 again, then slide CLK up. Which D value got captured? (The one present at the edge — history between edges is invisible.)
  7. Async overrides. With Q = 0 and CLK untouched: slide the PRE̅ switch LOW — Q jumps to 1 instantly, no clock involved. Slide it back HIGH. Now slide CLR̄ LOW — Q drops to 0 instantly. Finally, slide both LOW: both LEDs light (the 74HC74 forces Q = Q̄ = 1 — its own "don't do this" condition). Restore both HIGH. Record in Data Table 4's async rows, and note in one sentence what a system "reset button" really is.
Reference Build — Circuit 3: D Flip-Flop (74HC74)D-Type_Flip_Flop.png
Tinkercad breadboard: 74HC74 at columns 15 to 21, CLR, D, and PRESET slide switches at the upper left, CLK switch at the lower left, green Q and red Q-bar LEDs at upper right, 3 AA battery pack
Pink = CLR̄ · green = D · brown = CLK · orange = PRE̅ · green (right) = Q · gray = Q̄. Four wires in, two out — pins 1 through 6 in order.
Show the column-by-column wiring map
ConnectionFromToWire in photo
Chip power / groundpin 14 (col 15 top) · pin 7 (col 21)+ rail · − railred · black
CLR̄CLR switch middle (col 5)pin 1 (col 15)pink
DD switch middle (col 8)pin 2 (col 16)green
CLKCLK switch middle (col 3, lower)pin 3 (col 17)brown
PRE̅PRESET switch middle (col 11)pin 4 (col 18)orange
Q outputpin 5 (col 19)col 27 → 330 Ω → green LEDgreen
Q̄ outputpin 6 (col 20)col 29 → 330 Ω → red LEDgray

Part 5 — Circuit 4: The 74HC73 JK Flip-Flop (≈25 min)

Stop — Check the Power Pins First
The 74HC73 is one of the few 14-pin logic chips whose supply is not at the corners. VCC = pin 4 (bottom row, fourth from the dot) and GND = pin 11 (top row, directly above it). Pins 14 and 7 are J and 2J — logic inputs. Wire power by habit and the chip is dead on arrival.
  1. Seat and power the 74HC73. New breadboard, battery pack, rails jumpered. Chip at columns 17–23, pin 1 = column 17 bottom. Pin 4 (column 20, bottom) → bottom + rail (red). Pin 11 (column 20, top) → top − rail (black). Both power jumpers sit in the same column — one up, one down.
  2. Input switches. Top half, row g: J at columns 4–6 → middle (column 5) to pin 14 (column 17, top). K at columns 7–9 → middle (column 8) to pin 3 (column 19, bottom). CLR̄ at columns 10–12 → middle (column 11) to pin 2 (column 18, bottom) — slide it HIGH and leave it.
  3. Clock switch. Lower half at columns 2–4 → middle (column 3) to pin 1 (column 17, bottom). Start LOW.
  4. Outputs. Pin 12 (Q), column 19 top → green LED at column 27. Pin 13 (Q̄), column 18 top → red LED at column 29. (In the photo these two wires route around the outside of the board.)
  5. Discover the active edge. Get Q = 0 first (slide CLR̄ LOW then HIGH). Set J = 1, K = 0. Slide CLK LOW→HIGH: nothing. Now slide CLK HIGH→LOW: Q sets. The 74HC73 is falling-edge triggered — the opposite of the 74HC74. Record both slides in Data Table 5.
  6. Verify all four behaviors. For each J/K row of Data Table 5, set J and K, note Q before, then give one full clock pulse (slide CLK up, then down), and record Q after: 00 → hold · 01 → reset · 10 → set · 11 → toggle. Do the 11 row three pulses in a row: Q alternates every single pulse.
  7. Async clear. With Q = 1 and CLK untouched, slide CLR̄ LOW: Q drops to 0 instantly, and stays 0 no matter how you clock it until CLR̄ returns HIGH. Note the '73 has no preset pin — set is only reachable through J.
  8. Convince yourself with the equation. Pick your 11-toggle row and evaluate Qnext = J·Q̄ + K̄·Q by hand for Q = 0 and Q = 1. The algebra predicts the flip. Attach the two-line calculation to your report.
Reference Build — Circuit 4: JK Flip-Flop (74HC73)JK_Flip_Flop.png
Tinkercad breadboard: 74HC73 at columns 17 to 23 with power on pins 4 and 11 in column 20, J, K, and CLR slide switches at upper left, CLK switch at lower left, output wires routed around the board to green and red LEDs, 3 AA battery pack
Orange = J (to the top row) · green = K · cyan = CLR̄ · brown = CLK · green arc over the top = Q · gray around the right edge = Q̄. Note red and black power jumpers both in column 20.
Show the column-by-column wiring map
ConnectionFromToWire in photo
VCC ⚠pin 4 (col 20, bottom)bottom + railred
GND ⚠pin 11 (col 20, top)top − railblack
JJ switch middle (col 5)pin 14 (col 17, top)orange
KK switch middle (col 8)pin 3 (col 19, bottom)green
CLR̄CLR switch middle (col 11)pin 2 (col 18, bottom)cyan
CLK ▼CLK switch middle (col 3, lower)pin 1 (col 17, bottom)brown
Q outputpin 12 (col 19, top)col 27 → 330 Ω → green LEDgreen arc
Q̄ outputpin 13 (col 18, top)col 29 → 330 Ω → red LEDgray loop

Part 6 — Extension: Synthesize a JK from the 74HC74 (≈25 min)

You now own a ready-made JK. Building one yourself shows that its characteristic equation is not a definition to memorize — it's a circuit you can wire. Start from Circuit 3 (the 74HC74 build).

  1. Add the steering chips. Seat the 74HC08 (AND), 74HC32 (OR), and 74HC04 (NOT) near the '74. Power ritual on all three (14/7 each — these ones are corner-powered). Remove the D switch's wire to pin 2; keep PRE̅ and CLR̄ HIGH.
  2. Wire the characteristic equation per Figure 6: J switch → 08 pin 1; Q̄ (74 pin 6) → 08 pin 2 — first AND computes J·Q̄ at pin 3. K switch → 04 pin 1; K̄ (04 pin 2) → 08 pin 4; Q (74 pin 5) → 08 pin 5 — second AND computes K̄·Q at pin 6. Both AND outputs → 32 pins 1 and 2; OR output pin 3 → 74 pin 2 (D). CLK switch stays on 74 pin 3.
  3. Verify all four behaviors. For each row of Data Table 6, set J and K, note Q before, slide CLK LOW→HIGH once, record Q after. Do the 11 row three times.
  4. Compare with the 74HC73. Same characteristic table as Part 5 — but which clock edge does your JK respond to? One sentence: why would a designer care which edge a flip-flop uses?

Part 7 — T Flip-Flop & Divide-by-Two (≈15 min)

  1. Make it a T. Return to Circuit 4. Remove the K switch's wire and add a jumper pin 14 → pin 3 (J to K), so the J switch now drives both — relabel it T. Verify: T = 0 + clock pulses → nothing; T = 1 + pulses → toggle every pulse. Record in Data Table 7.
  2. Auto-clock. Remove the CLK switch's wire to pin 1 and connect the function generator instead: square, 2 Hz, 0–4.5 V, generator ground to the − rail (verify the 0-to-4.5 V swing on the scope first). Add a yellow LED + 330 Ω on the clock line itself.
  3. Watch the division. T = 1, run: the yellow (clock) LED blinks 2× per second; the green (Q) LED blinks once per second — every falling edge toggles Q, and two toggles make one full Q cycle. Put both signals on oscilloscopes: Q's period is exactly double the clock's, and Q changes as the clock falls. Record both frequencies in Data Table 7.
  4. The bridge to counters. The 74HC73 has a second, unused flip-flop right there. If 1Q (pin 12) fed 2CLK̄ (pin 5), with 2J = 2K = 1 and 2CLR̄ HIGH, what frequency would 2Q blink at? One sentence for the report — you just designed the next lab's 2-bit ripple counter.
  5. Wrap up. Complete the Analysis Questions and Knowledge Check, then Print/Save the report with your data tables.
Troubleshooting
Latch: LEDs dim, flickering, or not holding? A cross-coupling jumper is missing — without both feedback wires there's no latch, just gates. Circuit 2 won't respond at all? EN is LOW, or the pin 2→4 fan-out jumper is missing so one AND never sees EN. 74HC74 ignores the clock? PRE̅ or CLR̄ switch is LOW — both must be HIGH. 74HC73 completely dead? Power is on pins 14/7 by habit — move it to 4 and 11. 74HC73 "only works half the time"? You're watching the rising slide; it acts on the falling one. Q changes while D changes, no clock? You're on the latch build, not the '74. Part 6 JK toggle unreliable? Check the two feedback wires: J's AND partner must be Q̄ (pin 6), K̄'s must be Q (pin 5). Divide-by-2 LED blinks erratically? Scope the generator: if it swings negative or above 4.5 V, fix amplitude/offset — and check its ground is on the − rail.

📋 Data Tables

Sequential circuits care about order — fill rows top to bottom as performed. Tables persist when you print this page.

Data Table 1 — SR Latch Sequence (Part 1 · Circuit 1)

StepSRQ beforeQ afterQ̄ afterState name
0 · power-up00—
a · set10
b · release S00
c · reset01
d · release R00
e · forbidden11
f · release both00⚠

Data Table 2 — Gated SR Latch (Part 2 · Circuit 2)

ENSRQ beforeQ afterMode
110
100
101
010
001
111
1→011⚠

Data Table 3 — D Latch Transparency (Part 3)

ENDQMode
10
11
10
01
00

Data Table 4 — 74HC74 D Flip-Flop (Part 4 · Circuit 3)

ActionDPRE̅CLR̄Q beforeQ after
D wiggled, CLK untouched1↔011
D=1, CLK 0→1 ▲111
D=0, CLK 1→0 ▼011
D=0, CLK 0→1 ▲011
D wiggled 1-0-1, then ▲1 @ edge11
PRE̅ switch LOW (async)×01
CLR̄ switch LOW (async)×10
both LOW (Q and Q̄?)×00

Data Table 5 — 74HC73 JK Flip-Flop (Part 5 · Circuit 4)

JKCLR̄Clock actionQ beforeQ afterBehavior
1010→1 ▲ only
1011→0 ▼
001full pulse
011full pulse
101full pulse
111full pulse
111full pulse
111full pulse
××0none (async)

Data Table 6 — JK Synthesized from the 74HC74 (Part 6)

JKQ beforeQ after ▲Behavior
00
01
10
11
11
11

Data Table 7 — T Flip-Flop & Divide-by-Two (Part 7)

ConditionResult
T = 0, three clock pulses → Q does…
T = 1, three clock pulses → Q does…
Clock (yellow LED) frequency
Q (green LED) frequency
Ratio f(CLK) : f(Q)
Q changes on clock rising or falling edge?

📈 Interactive Flip-Flop Playground with Timing Diagram

A live twin of every build in this lab. Pick a device, work its switches, and watch the timing diagram grow — each action appends one time step, so the canvas becomes a record of the exact sequence you performed. The clock here is a switch, just like Circuits 3 and 4: toggle it up and down yourself, or use Pulse for a full up-then-down cycle. Active edges are marked ▲ or ▼; ignored edges get a faint ▽.

What To Notice
On the SR latch, raise both S and R: Q and Q̄ both drop to 0 (shaded). On the gated SR, set S = R = 1 with EN high, then drop EN — both AND outputs release at once and the latch lands wherever the race sends it. On the D latch, Q's trace mirrors D while EN is high and goes flat when EN drops. Switch to the '74: toggle the clock and see Q move only on ▲. Then the '73: the same toggles move Q only on ▼. Finally set J = K = 1 and pulse repeatedly — Q's trace becomes a square wave at half the pulse rate. That's Part 7's divide-by-2, one pulse at a time.

✍ Analysis Questions

Answer in complete sentences in your lab report.

  1. Using Data Table 1 steps (b) and (d): the inputs were identical (S = R = 0) but Q differed. Explain, in terms of feedback, how the circuit "knows" which state to hold.
  2. Why is S = R = 1 forbidden for the NOR latch? Address both problems: the state itself (what did the LEDs show?), and what happens when the inputs are released together.
  3. From Part 2: what capability did the enable stage add to the SR latch, and why didn't it eliminate the forbidden state? Use your last two rows of Data Table 2 — including the EN 1→0 release — as evidence.
  4. Contrast your Part 3 and Part 4 observations: describe one situation where a transparent latch would corrupt data that an edge-triggered flip-flop would handle correctly. (Hint: what happens if D changes twice while EN is high?)
  5. In Part 4 step 7, PRE̅ and CLR̄ overrode the clock. Explain why every real system needs at least one asynchronous control, using power-up as your example.
  6. The 74HC74 captures on the rising edge and the 74HC73 on the falling edge. Suggest why a designer might deliberately use flip-flops that trigger on opposite edges of the same clock.
  7. Evaluate Qnext = J·Q̄ + K̄·Q for all four JK input combinations (with Q as a variable), and show the results reproduce hold / reset / set / toggle.
  8. From Part 7: a chain of four T flip-flops (each Q clocking the next) is driven at 16 Hz. Give the output frequency of each stage, and state the general rule for n stages.
  9. Security connection: a linear-feedback shift register (LFSR) — the keystream engine inside many stream ciphers — is a row of D flip-flops whose input is an XOR of taps from the row. Using this lab plus the gates lab, list the chips you'd need to build a 4-bit LFSR in Tinkercad, and explain in one sentence why the flip-flops (not the XOR) are what give the cipher its state.

Key Facts Reference Box

Memory mechanism
Feedback: outputs re-enter as inputs
Latch vs flip-flop
Level-sensitive vs edge-triggered
NOR SR latch (74HC02)
Active HIGH · both 1 = forbidden (Q = Q̄ = 0)
74HC02 latch pins
R 2 · S 6 · Q 1 · Q̄ 4 · feedback 1→5, 4→3
Gated SR, EN = 0
Both AND outputs LOW → hold
D latch, EN = 1
Transparent: Q follows D
74HC74 FF #1 pins
CLR̄ 1 · D 2 · CLK 3 · PRE̅ 4 · Q 5 · Q̄ 6
74HC73 FF #1 pins
CLK̄ 1 · CLR̄ 2 · K 3 · J 14 · Q 12 · Q̄ 13
74HC73 power ⚠
V_CC = pin 4 · GND = pin 11
Active clock edge
'74 rising ▲ · '73 falling ▼
PRE̅ / CLR̄
Async, active LOW — keep HIGH normally
JK characteristic equation
Q_next = J·Q̄ + K̄·Q
T flip-flop
JK with J = K · T=1 → divide by 2
n-stage T chain
f_out = f_clock / 2ⁿ → binary counter

Interactive Knowledge Check

Nine questions drawn directly from the lab. Select an answer for each, then press Grade My Quiz.

← Lab: Logic Gates 🏠 Course Home Back to Top ↑