⚡ ELT 102 · Digital Logic & Solid State DevicesHands-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.
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:
Power: a 3 × AA battery pack (4.5 V), red lead to a + rail, black to a − rail, with the top and bottom rail pairs jumpered together along the left edge. The 74HC family is specified for 2–6 V, so 4.5 V is comfortably in range.
Chips: search "74HC02" (quad NOR), "74HC08" (quad AND), "74HC74" (dual D flip-flop with preset and clear), and "74HC73" (dual JK flip-flop with clear). Each straddles the center gap with its dot (pin 1) at the lower-left. Parts 3 and 6 also use the 74HC04 and 74HC32 from the Logic Gates lab.
Inputs: SPDT slide switches in row g of the top half — one end terminal to the + rail with a red jumper, the other end to the − rail through a 10 kΩ resistor, the middle terminal wired to the chip. Solid HIGH or solid LOW, never floating.
Clock: in Circuits 3 and 4 the clock is a fourth slide switch in the lower half (row d), wired the same way. Sliding it LOW→HIGH makes one rising edge; HIGH→LOW makes one falling edge. You create every edge by hand — and you'll see exactly which one each chip cares about.
Auto-clock for Part 7: the function generator, square wave, 2 Hz, swinging 0 V to 4.5 V (match the supply — set amplitude and DC offset so the wave never goes negative or above VCC, and verify on the scope). Connect its ground to the − rail.
Outputs: two LEDs in the top half at columns 26–29 — green = Q (anode col 27), red = Q̄ (anode col 29) — cathodes to the − rail by black jumpers, each fed through a 330 Ω resistor bridging the center gap. Part 7 adds a yellow LED on the clock.
The 74HC73 breaks the corner rule: its VCC is pin 4 and GND is pin 11 — not 14 and 7. Wire it by habit and it simply won't work. Check the pinout tab before you place a single wire.
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
Qty
Component (Tinkercad name)
Setting / Part
Used In
1
Breadboard (small)
rails jumpered left side
All circuits
1
Battery pack
3 × AA = 4.5 V
Logic supply, all circuits
4
Slideswitch
SPDT: +4.5 V / out / 10 kΩ→GND
S · R · EN · D · J · K · PRE̅ · CLR̄ · CLK
4
Resistor 10 kΩ
brown-black-orange
Switch pull-downs
1
74HC02
quad 2-input NOR
Circuits 1 & 2 · Part 3
1
74HC08
quad 2-input AND
Circuit 2 · Parts 3 & 6
1
74HC74
dual D flip-flop, ▲ edge
Circuit 3 · Part 6
1
74HC73
dual JK flip-flop, ▼ edge
Circuit 4 · Part 7
1 ea
74HC04 · 74HC32
NOT · OR
D latch (Part 3) · JK synthesis (Part 6)
3
LED + Resistor 330 Ω
green (Q) · red (Q̄) · yellow (CLK)
State indicators
1
Function Generator
square · 2 Hz · 0–4.5 V
Auto-clock, Part 7
1
Multimeter / Oscilloscope
V mode / 200 ms/div
Levels · divide-by-2 waveforms
~20
Wires
colors as in reference builds
All 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.
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.
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.
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.
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.
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.
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.
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)
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 −).
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.
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.
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.
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.
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.)
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.
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
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
Connection
From
To
Wire in photo
Chip power
pin 14 (col 15, top)
+ rail
red
Chip ground
pin 7 (col 21, bottom)
− rail
black
R input
R switch middle (col 6)
pin 2 (col 16)
blue
S input
S switch middle (col 10)
pin 6 (col 20)
blue
Feedback Q → G2
pin 1 (col 15)
pin 5 (col 19)
green, short
Feedback Q̄ → G1
pin 4 (col 18)
pin 3 (col 17)
orange, short
Q output
pin 1 (col 15)
col 26 → 330 Ω → green LED
green, long
Q̄ output
pin 4 (col 18)
col 29 → 330 Ω → red LED
orange, long
Switch pull-downs
cols 5 and 9
10 kΩ → − rail
resistors
Switch HIGH side
cols 7 and 11
+ rail
red
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)
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.
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.
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.
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.
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).
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.
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.
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?
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
Connection
From
To
Wire in photo
74HC08 power / ground
pin 14 (col 10 top) · pin 7 (col 16)
+ rail · − rail
red · black
74HC02 power / ground
pin 14 (col 18 top) · pin 7 (col 24)
+ rail · − rail
red · black
R input
R switch middle (col 5)
08 pin 1 (col 10)
blue
S input
S switch middle (col 8)
08 pin 5 (col 14)
blue
EN input
EN switch middle (col 3, lower)
08 pin 2 (col 11)
brown, long
EN fan-out
08 pin 2 (col 11)
08 pin 4 (col 13)
brown, short
R·EN → latch
08 pin 3 (col 12)
02 pin 2 (col 19)
pink
S·EN → latch
08 pin 6 (col 15)
02 pin 6 (col 23)
pink
Feedback Q → G2
02 pin 1 (col 18)
02 pin 5 (col 22)
green, short
Feedback Q̄ → G1
02 pin 4 (col 21)
02 pin 3 (col 20)
orange, short
Q output
02 pin 1 (col 18)
col 27 → 330 Ω → green LED
green, long
Q̄ output
02 pin 4 (col 21)
col 29 → 330 Ω → red LED
orange, long
Part 3 — Bridge: Gated D Latch — One Inverter Closes the Loophole (≈15 min)
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.
Transparency test. EN = 1: wiggle D up and down — Q follows instantly, like a wire. Record three rows in Data Table 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)
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.
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.
Outputs.Pin 5 (Q), column 19 → green LED at column 27. Pin 6 (Q̄), column 20 → red LED at column 29.
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.
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.)
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
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
Connection
From
To
Wire in photo
Chip power / ground
pin 14 (col 15 top) · pin 7 (col 21)
+ rail · − rail
red · black
CLR̄
CLR switch middle (col 5)
pin 1 (col 15)
pink
D
D switch middle (col 8)
pin 2 (col 16)
green
CLK
CLK switch middle (col 3, lower)
pin 3 (col 17)
brown
PRE̅
PRESET switch middle (col 11)
pin 4 (col 18)
orange
Q output
pin 5 (col 19)
col 27 → 330 Ω → green LED
green
Q̄ output
pin 6 (col 20)
col 29 → 330 Ω → red LED
gray
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.
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.
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.
Clock switch. Lower half at columns 2–4 → middle (column 3) to pin 1 (column 17, bottom). Start LOW.
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.)
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.
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.
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.
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
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
Connection
From
To
Wire in photo
VCC ⚠
pin 4 (col 20, bottom)
bottom + rail
red
GND ⚠
pin 11 (col 20, top)
top − rail
black
J
J switch middle (col 5)
pin 14 (col 17, top)
orange
K
K 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 output
pin 12 (col 19, top)
col 27 → 330 Ω → green LED
green arc
Q̄ output
pin 13 (col 18, top)
col 29 → 330 Ω → red LED
gray 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).
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.
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.
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.
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)
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.
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.
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.
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.
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)
Step
S
R
Q before
Q after
Q̄ after
State name
0 · power-up
0
0
—
a · set
1
0
b · release S
0
0
c · reset
0
1
d · release R
0
0
e · forbidden
1
1
f · release both
0
0
⚠
Data Table 2 — Gated SR Latch (Part 2 · Circuit 2)
EN
S
R
Q before
Q after
Mode
1
1
0
1
0
0
1
0
1
0
1
0
0
0
1
1
1
1
1→0
1
1
⚠
Data Table 3 — D Latch Transparency (Part 3)
EN
D
Q
Mode
1
0
1
1
1
0
0
1
0
0
Data Table 4 — 74HC74 D Flip-Flop (Part 4 · Circuit 3)
Action
D
PRE̅
CLR̄
Q before
Q after
D wiggled, CLK untouched
1↔0
1
1
D=1, CLK 0→1 ▲
1
1
1
D=0, CLK 1→0 ▼
0
1
1
D=0, CLK 0→1 ▲
0
1
1
D wiggled 1-0-1, then ▲
1 @ edge
1
1
PRE̅ switch LOW (async)
×
0
1
CLR̄ switch LOW (async)
×
1
0
both LOW (Q and Q̄?)
×
0
0
Data Table 5 — 74HC73 JK Flip-Flop (Part 5 · Circuit 4)
J
K
CLR̄
Clock action
Q before
Q after
Behavior
1
0
1
0→1 ▲ only
1
0
1
1→0 ▼
0
0
1
full pulse
0
1
1
full pulse
1
0
1
full pulse
1
1
1
full pulse
1
1
1
full pulse
1
1
1
full pulse
×
×
0
none (async)
Data Table 6 — JK Synthesized from the 74HC74 (Part 6)
J
K
Q before
Q after ▲
Behavior
0
0
0
1
1
0
1
1
1
1
1
1
Data Table 7 — T Flip-Flop & Divide-by-Two (Part 7)
Condition
Result
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.
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.
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.
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.
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?)
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.
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.
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.
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.
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.