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

The Heartbeat: Timers, Oscillators & the Johnson Counter

Every sequential circuit you've built has borrowed its pulse from the function generator. Today that ends. You'll build a clock of your own from the legendary 555 timer — first free-running (astable), then as a one-shot stopwatch (monostable) — measure how resistors and capacitors set its rhythm, and use it to drive 4-bit binary and up/down counters. Then a new species entirely: the Johnson counter, a twisted ring of flip-flops whose walking-light sequence changes one bit at a time — the pattern inside stepper drivers, phase generators, and the CD4017 chip that runs half the LED chasers on Earth.

⏱ 2 × 75-Minute Sessions 🖥 Tinkercad Circuits (Free) 🔧 555 · 74HC193 · '74 Twisted Ring 📊 Live Oscillator & Ring Playground ✅ 6-Question Knowledge Check

Learning Objectives

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

  • Construct a 555 astable oscillator, predict its frequency and duty cycle from f = 1.44 / ((RA + 2RB)·C), and verify both on the oscilloscope within component tolerance.
  • Explain the 555's operating principle — a capacitor shuttling between ⅓ VCC and ⅔ VCC, watched by two comparators driving a flip-flop — and trace why charge (through RA+RB) and discharge (through RB alone) make the duty cycle exceed 50%.
  • Construct a 555 monostable one-shot, calculate its pulse width T = 1.1·R·C, and demonstrate a button-triggered timed output that ignores how long the button is held.
  • Integrate your oscillator with the 74HC193: build a self-clocked 4-bit binary counter, measure frequency division at QD (f/16), and implement direction control by routing the clock to the UP or DOWN input with proper pull-ups.
  • Construct a 4-bit Johnson (twisted-ring) counter from two 74HC74s — Q of each stage into D of the next, Q̄ of the last twisted back to the first — and verify its MOD-8 walking sequence.
  • Demonstrate the Johnson counter's defining property — adjacent states differ by exactly one bit — and explain why that makes its states decodable with simple 2-input gates, glitch-free, unlike a binary counter's.
  • Analyze the Johnson counter's unused states (8 of 16 for four stages), the need for power-up initialization via CLR̄, and relate the ring architecture to the commercial CD4017 decade counter.

Key Terms & Concepts

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

Oscillators & Timing
Astable (Oscillator)
Oscillators & Timing
🔄 Click to reveal definition
Definition
A circuit with no stable state: it flips between HIGH and LOW forever, all by itself. "A-stable" — not stable. The astable 555 is the free clock source of a million projects, and today it replaces your function generator. Every digital system's heartbeat is an astable something — from this RC circuit to a quartz crystal.
Monostable (One-Shot)
Oscillators & Timing
🔄 Click to reveal definition
Definition
One stable state (output LOW) and one temporary state: a trigger fires the output HIGH for a fixed time T = 1.1·R·C, then it falls back — no matter how long or briefly the trigger was held. A timed porch light, a debounce stretcher, a watchdog window: all one-shots.
RC Time Constant (τ)
Oscillators & Timing
🔄 Click to reveal definition
Definition
τ = R·C — the natural clock of analog electronics: how fast a capacitor charges through a resistor. Bigger R or bigger C, slower everything. Both 555 formulas are just τ dressed up: 0.693·RC per astable half-cycle, 1.1·RC per one-shot pulse. Those constants are ln 2 and ln 3 — the mathematics of exponential charging aimed at ⅓ and ⅔ thresholds.
Duty Cycle
Oscillators & Timing
🔄 Click to reveal definition
Definition
The percentage of each period the output spends HIGH. The basic 555 astable can't reach 50% exactly: it charges through RA+RB but discharges through RB only, so tHIGH > tLOW always. Make RB ≫ RA and duty approaches 50% — your 10k/68k clock runs at 53%.
Inside the 555
The ⅓ – ⅔ Rule
Inside the 555
🔄 Click to reveal definition
Definition
The 555's whole secret: an internal 3-resistor divider sets two thresholds, ⅓ VCC and ⅔ VCC (the "555" is literally the three 5 kΩ resistors). Two comparators — op-amp lab veterans — watch the timing capacitor against them and set/reset an internal flip-flop. You have personally built every block inside this chip.
TRIGGER (2) & THRESHOLD (6)
Inside the 555
🔄 Click to reveal definition
Definition
The two comparator inputs. TRIGGER below ⅓ VCC → output snaps HIGH (sets the flip-flop). THRESHOLD above ⅔ VCC → output snaps LOW (resets it). Astable mode ties 2 and 6 together on the capacitor so it triggers and thresholds itself, forever. The monostable gives pin 2 to your pushbutton instead.
DISCHARGE (7)
Inside the 555
🔄 Click to reveal definition
Definition
An internal transistor switch to ground — a BJT-lab NPN — that opens and closes in step with the output. While the output is LOW, pin 7 drains the timing capacitor through RB; while HIGH, it lets go so the capacitor recharges. It's why RA sits between VCC and pin 7, and RB between 7 and 6.
RESET (4) & CONTROL (5)
Inside the 555
🔄 Click to reveal definition
Definition
The supporting cast: RESET is an active-LOW master kill — tie it to VCC or your oscillator mysteriously dies (the floating-pin lesson, 555 edition). CONTROL exposes the ⅔ threshold; ignore it with a 0.01 µF cap to ground, or drive it with a voltage and the frequency bends — that trick is called a VCO, and it's how the 555 sings sirens.
Ring & Johnson Counters
Shift Register Basis
Ring & Johnson Counters
🔄 Click to reveal definition
Definition
D flip-flops in a bucket brigade — Q of each wired to D of the next, all sharing one clock — pass their bits one stage rightward per edge. Close the chain into a loop and the pattern circulates: a ring counter. The Johnson counter is a ring with one twist, literally.
Johnson (Twisted-Ring) Counter
Ring & Johnson Counters
🔄 Click to reveal definition
Definition
A shift-register ring whose feedback is inverted: Q̄ of the last stage returns to D of the first. That twist makes n flip-flops visit 2n states — your four '74 stages walk through eight: 0000→1000→1100→1110→1111→0111→0011→0001→… A wave of 1s fills the register, then a wave of 0s erases it.
Glitch-Free Decoding
Ring & Johnson Counters
🔄 Click to reveal definition
Definition
The Johnson sequence's superpower: consecutive states differ by exactly ONE bit, so no momentary false codes can flicker between states (a binary counter's 0111→1000 changes four bits and can glint through 15 wrong values). Bonus: every Johnson state is identified by just TWO bits — a 2-input AND per state. The CD4017 does exactly this internally.
Unused States & Self-Start
Ring & Johnson Counters
🔄 Click to reveal definition
Definition
Four flip-flops have 16 possible states; the Johnson loop uses 8. The other 8 form a parallel orbit — a counter that powers up into one (say 0100) circulates wrong patterns forever, never rejoining the main sequence. That's why your build has a reset button on the CLR̄ pins, and why commercial designs add self-correcting feedback logic.

🖥 Tinkercad Setup Notes: Your Own Clock at Last

Ninth lab, and a milestone: the function generator stays in the drawer. Everything that ticks in this lab ticks because you built the tick:

The Two Pins That Kill 555 Builds
RESET (pin 4) must be tied to VCC — floating, it randomly strangles the oscillator (Tinkercad is forgiving; real chips are not — wire it anyway). And TRIG + THRES (2, 6) must actually be joined in astable mode; forget that jumper and the capacitor charges once to ⅔ VCC and the show ends. Pin 5 gets a 0.01 µF to GND by tradition; in Tinkercad you may omit it, but the procedure includes it so your diagram matches real-world practice.

🔧 Virtual Parts List

QtyComponent (Tinkercad name)Setting / PartUsed In
1Breadboard (small)All parts
1Power Supply5.00 VAll parts
1555 Timer8-pin DIPParts 1–2 (then clocks 3–5)
2Resistor10 kΩ (R_A) · 68 kΩ (R_B)Astable ≈ 1 Hz clock
2Resistor1 kΩ · 10 kΩAstable fast set (≈ 6.9 Hz)
1Resistor100 kΩ (swap 47 k / 220 k)Monostable timing
2Capacitor (polarized)10 µF · 1 µFTiming capacitor experiments
1Capacitor0.01 µFPin 5 bypass (tradition)
174HC1934-bit up/down counterParts 3–4
274HC74dual D flip-flop ×2 = 4 stagesPart 5 Johnson ring
174HC08quad ANDPart 5 decode demo
1Slideswitch + 2 × 10 kΩclock router + pull-upsPart 4 direction control
2Pushbutton + 10 kΩtrigger · ring resetParts 2, 5
5–6LED + Resistor 220 Ωclock beacon + bit indicatorsAll parts
2Oscilloscope500 ms/divCap + output · division traces
1MultimeterV modeThreshold spot-checks
~24Wiresred / black / greenAll parts

📐 The Circuits You Will Build

Four figures: the oscillator, the one-shot, the self-clocked counter system, and the twisted ring. The first two share every pin habit; spot the single wiring difference that changes the chip's personality.

555 astable 1 · GND 2 · TRIG 3 · OUT 4 · RESET 8 · V_CC 7 · DISCH 6 · THRES 5 · CTRL +5 V R_A = 10 kΩ R_B = 68 kΩ C = 10 µF (+ up) the 2 ↔ 6 jumper: the cap triggers itself — don't forget it tie 4 → +5 V OUT → LED + scope + counters f = 1.44 / ((R_A + 2R_B)·C) = 1.44 / (146 k × 10 µF) ≈ 0.99 Hz · duty = (R_A+R_B)/(R_A+2R_B) ≈ 53%. Pin 5: 0.01 µF → GND.
Figure 1 — The astable 555: a clock from two resistors and a capacitor. The capacitor charges toward VCC through RA+RB; at ⅔ VCC the THRESHOLD comparator flips the output LOW and pin 7 drains it through RB; at ⅓ VCC the TRIGGER comparator flips everything back. Charge, discharge, forever — with your component values, at almost exactly 1 Hz.
555 monostable 1 · GND 2 · TRIG 3 · OUT 4 · RESET 8 · V_CC 7 · DISCH 6 · THRES 5 · CTRL +5 V R = 100 kΩ 7 & 6 joined this time C = 10 µF 10 kΩ pull-up ⏺ button press → pin 2 dips below ⅓ V_CC → pulse starts OUT → LED T = 1.1·R·C = 1.1 × 100 kΩ × 10 µF = 1.1 s — regardless of how long the button is held.
Figure 2 — The monostable: same chip, one wiring change, opposite personality. Now R alone feeds the capacitor, pins 6 and 7 are joined, and pin 2 belongs to your pushbutton (held HIGH by the pull-up). A press starts the pulse; the capacitor climbing to ⅔ VCC ends it, 1.1·R·C later. Hold the button for an instant or a minute — the pulse is 1.1 s either way. (Almost: keep holding past T and see the caveat in Part 2.)
555 astable ≈ 1 Hz (Figure 1) OUT (3) slide switch routes the clock +5 V 2 × 10 kΩ pull-ups 74HC193 CLR 14 LOW · LOAD̄ 11 HIGH UP clk (5) DOWN clk (4) Q_D → LED + scope Q_C → LED Q_B → LED Q_A → LED Scope CH1 = 555 OUT · CH2 = Q_D: sixteen input cycles per Q_D cycle — f/16 ≈ 0.062 Hz at your 1 Hz clock (one Q_D blink per 16 s). Whichever clock pin the switch abandons, its pull-up parks it HIGH — the '193's idle-clock rule, now enforced by design.
Figure 3 — The self-clocked counter with direction routing. Your oscillator replaces the function generator; a slide switch steers its pulses to UP (pin 5) or DOWN (pin 4), and the two pull-ups guarantee the idle pin never floats. Flip the switch mid-run and the count reverses on the next pulse — a parking-garage tally in three chips' worth of your own work.
FF1 '74 #1a FF2 '74 #1b FF3 '74 #2a FF4 '74 #2b Q1→D2 Q2→D3 Q3→D4 the TWIST: Q̄4 → D1 (inverted feedback — this one wire makes it a Johnson counter) Q̄4 (pin 8) 555 CLK ONE clock line to all four CLK pins — synchronous by construction All four CLR̄ pins → +5 V via 10 kΩ, with a pushbutton to GND: press = force 0000 start. PRE̅ pins → +5 V. Q1–Q4 → LEDs. Sequence: 0000 → 1000 → 1100 → 1110 → 1111 → 0111 → 0011 → 0001 → 0000 … (MOD-8: a wave of 1s fills, a wave of 0s follows.)
Figure 4 — The Johnson counter: a shift register biting its own tail, with a twist. Three plain hand-offs (Q→D), one shared clock, and the inverted feedback Q̄4→D1. Un-twist it (Q4→D1) and it's a plain ring counter circulating whatever it starts with; the inversion is what generates the filling-and-emptying 8-state walk. The commercial CD4017 is exactly this — five stages plus decode gates — in one 16-pin package.

Reference: Timing & Ring Cheat Sheet

CircuitGoverning formulaYour valuesPrediction
555 astable (main clock)f = 1.44/((R_A+2R_B)·C)10 k · 68 k · 10 µF0.99 Hz · 53% duty
555 astable (fast set)same1 k · 10 k · 10 µF6.9 Hz · 52% duty
555 astable (C swap)f ∝ 1/C10 k · 68 k · 1 µF9.9 Hz (×10 faster)
555 monostableT = 1.1·R·C100 k · 10 µF1.10 s pulse
'193 ÷16 at Q_Df_out = f_clk/160.99 Hz clock≈ 0.062 Hz (16 s cycle)
Johnson, n stagesMOD = 2nn = 4 ('74 ×2)8 states · f_bit = f/8
CD4017 (commercial)5-stage Johnson + decode10 one-hot outputs
t_HIGH = 0.693(R_A+R_B)C t_LOW = 0.693·R_B·C f = 1.44/((R_A+2R_B)C) T_mono = 1.1·R·C Johnson: MOD = 2n · adjacent states differ by 1 bit

🛠 Step-by-Step Procedure

Session 1 = Parts 1–3 (oscillator, one-shot, self-clocked counter). Session 2 = Parts 4–5 (direction control, Johnson ring) + analysis. Predict before you measure, every time.

Part 1 — The Astable Oscillator: Build Your Clock (≈30 min)

  1. Workspace. New circuit "LastName – Timer Lab." Breadboard, 5.00 V to rails. Seat the 555 across the trench (notch ritual — pin 1 lower-left).
  2. Power and the two killer pins. Pin 8 → +5 V, pin 1 → GND, and immediately: pin 4 (RESET) → +5 V. Add the traditional 0.01 µF from pin 5 → GND.
  3. Timing network per Figure 1: RA = 10 kΩ from +5 V to pin 7; RB = 68 kΩ from pin 7 to pin 6; C = 10 µF (polarized — + terminal to pin 6 side) from pin 6 to GND; and the jumper that makes it oscillate: pin 2 → pin 6.
  4. Predict first. In Data Table 1, compute f = 1.44/((RA+2RB)·C) and duty = (RA+RB)/(RA+2RB) for these values before simulating. (You should get ≈ 0.99 Hz and ≈ 53%.)
  5. Beacon and scopes. LED + 220 Ω from pin 3 (OUT) to GND. Oscilloscope #1 on OUT; oscilloscope #2 on the capacitor (pin 6). 500 ms/div. Start the simulation: the LED blinks about once per second — your clock is alive.
  6. Read the soul of the chip. On scope #2, watch the capacitor shuttle: an exponential climb, a turn, an exponential fall — bouncing between two invisible walls. Measure the turning-point voltages with the multimeter or scope cursors and record them: ≈ 3.33 V and ≈ 1.67 V — the ⅔ and ⅓ thresholds, live. Measure period and duty on scope #1 and complete Data Table 1's first row.
  7. Experiment: resistors. Swap to the fast set (RA = 1 kΩ, RB = 10 kΩ): predict, measure, record (≈ 6.9 Hz). Notice duty barely moved — why? (Both charge and discharge scaled together.)
  8. Experiment: the capacitor decade. Restore 10 k/68 k, swap C to 1 µF: the frequency jumps ×10 (≈ 9.9 Hz). One component, one decade — f ∝ 1/C. Record, then restore C = 10 µF: the ≈1 Hz clock is your lab-wide timebase from here on.

Part 2 — The Monostable One-Shot (≈20 min)

  1. Rewire, don't rebuild. Three changes turn Figure 1 into Figure 2: remove RB and instead join pins 6 and 7; make the timing resistor R = 100 kΩ from +5 V to that junction (C = 10 µF stays from pin 6 to GND); and free pin 2 from pin 6 — it now gets a 10 kΩ pull-up to +5 V and a pushbutton to GND.
  2. Predict. T = 1.1·R·C = 1.1 × 100 k × 10 µF = 1.1 s. Write it in Data Table 2 first.
  3. Fire the one-shot. Tap the button: the LED lights for just over a second and extinguishes itself. Time it on the scope (or count the blink). Tap again — same pulse, every time.
  4. The defining test. Hold the button for a quick tap vs. a slow half-second press: the pulse width doesn't change — the RC network, not your finger, owns the timing. (Caveat to observe: hold the button longer than 1.1 s and the output stays HIGH until you release — pin 2 is level-sensitive. Note it; it's the difference between "one-shot" and "retriggerable" behavior in datasheets.)
  5. Timing experiments. Swap R to 47 kΩ (predict ≈ 0.52 s) and 220 kΩ (predict ≈ 2.4 s); measure and record both. You've built an adjustable timer — the circuit inside toasters, delay relays, and watchdog windows.
  6. Restore the astable (Figure 1, 10 k/68 k/10 µF) before moving on — Parts 3–5 need the clock.

Part 3 — The Self-Clocked 4-Bit Counter (≈15 min)

  1. Seat the '193 with its Counters-lab tie-downs: 16 → +5 V, 8 → GND, CLR (14) → GND, LOAD̄ (11) → +5 V, DOWN clk (4) → +5 V, data inputs grounded. Four LEDs on QD QC QB QA (pins 7, 6, 2, 3), MSB left.
  2. The historic wire. 555 pin 3 → '193 UP clk (pin 5). For the first time in nine labs, a circuit of yours is clocking a circuit of yours. Run it: the LEDs count 0–15 at your oscillator's pace.
  3. Measure the division. Scope CH1 on the 555 OUT, CH2 on QD: sixteen clock cycles per QD cycle. With the ≈1 Hz clock, QD's period is ≈16 s. Record both frequencies in Data Table 3 and verify f/16. Then re-derive the whole chain on paper: f at QA, QB, QC, QD.

Part 4 — Direction Control: Up/Down with a Routed Clock (≈15 min)

  1. Install the router per Figure 3: two 10 kΩ pull-ups from +5 V to '193 pins 5 and 4 (replacing pin 4's hard tie); slide switch common → 555 OUT, one throw → pin 5, other throw → pin 4.
  2. Verify both directions. Switch toward UP: count ascends. Flip to DOWN mid-run: on the very next pulse the count descends from wherever it was. Record a short observed sequence either side of a flip in Data Table 3.
  3. Why the pull-ups matter. Temporarily remove pin 4's pull-up (leave it floating) with the switch on UP, and watch for miscounts; restore it. One sentence for the report: what rule from the Counters lab did the pull-ups automate?
  4. Application sentence. The parking-garage tally, the volume knob's position, a bidirectional conveyor's item count — name the events that would replace your slide switch in one of them.

Part 5 — The Johnson Twisted Ring (≈35 min)

  1. Seat two 74HC74s (power ritual on both). Tie all four PRE̅ pins → +5 V. Tie all four CLR̄ pins together to one column with a 10 kΩ pull-up to +5 V and a pushbutton to GND — this is the ring's reset.
  2. Label, then wire the brigade. Name the stages FF1 (chip 1 pins 1–6), FF2 (chip 1 pins 8–13), FF3 (chip 2 pins 1–6), FF4 (chip 2 pins 8–13). Bucket brigade: Q1 (5) → D2 (12) · Q2 (9) → D3 (chip 2 pin 2) · Q3 (chip 2 pin 5) → D4 (chip 2 pin 12).
  3. Add the twist. Q̄4 (chip 2 pin 8) → D1 (chip 1 pin 2) — the one inverted wire that makes it a Johnson counter.
  4. One clock for all. Run the 555 output to all four CLK pins (chip 1 pins 3 and 11; chip 2 pins 3 and 11). Four LEDs on Q1–Q4, in order left to right.
  5. Reset and run. Press the reset button (all LEDs off — state 0000), release, and watch: a wave of light fills the row LED by LED, then a wave of darkness follows it. Record the full sequence — all 8 states, one clock each — in Data Table 4.
  6. Verify the defining property. In the table's last column, mark how many bits changed between each pair of consecutive states. The answer is 1, every single time — including the wrap 0001 → 0000. Compare with the binary counter's 0111 → 1000 (four bits at once) and write one sentence on why decoder circuits prefer the Johnson sequence.
  7. Decode a state, glitch-free. Seat the 74HC08 and wire one AND: Q1 · Q̄2 → LED (Q̄2 is chip 1 pin 8). Run: the LED fires during exactly one state per cycle — 1000 — a one-per-revolution timing pulse from a 2-input gate. (For contrast: uniquely decoding a binary counter's state 8 needs all four bits.)
  8. Visit the parallel orbit. Stop the clock (pull the CLK line off momentarily), and use FF2's PRE̅ (chip 1 pin 10): tap it to GND to force state 0100 — an illegal state. Restore the clock and record the sequence that follows: the ring circulates wrong patterns (0100 → 1010 → 1101 → …) and never returns to the main sequence on its own. Press your reset button to rescue it. One sentence: why does every real Johnson design include initialization or self-correction logic?
  9. Wrap up. Complete the Analysis Questions and Knowledge Check, then Print/Save the report with your data tables.
Troubleshooting
555 never oscillates? The pin 2↔6 jumper is missing, or RESET (4) is floating/LOW. Frequency way off? Check the capacitor value and polarity, and confirm RA goes to pin 7 (not pin 6). Monostable pulse never ends? Pins 6 and 7 aren't joined, or the button is stuck closed (pin 2 held LOW). '193 ignores the routed clock? A pull-up is missing — the unselected clock pin is floating. Johnson ring stuck at 1111 or 0000? The twist wire is from Q4 instead of Q̄4 (plain ring: whatever you reset to just circulates) — move it to chip 2 pin 8. Ring counts nonsense? You powered up into the parallel orbit — press the CLR̄ reset button; and check that all four CLK pins truly share one line.

📋 Data Tables

Predicted values go in before the simulation runs. Tables persist when you print this page.

Data Table 1 — 555 Astable (Part 1)

R_A · R_B · CPredicted fMeasured fPredicted dutyMeasured duty
10 k · 68 k · 10 µF
1 k · 10 k · 10 µF
10 k · 68 k · 1 µF
Cap turning points (scope #2)

Data Table 2 — 555 Monostable (Part 2)

R (C = 10 µF)Predicted T = 1.1RCMeasured TPulse same for short vs long press?
100 kΩ
47 kΩ
220 kΩ

Data Table 3 — Self-Clocked '193 (Parts 3–4)

MeasurementValue
555 clock frequency (CH1)
Q_D frequency / period (CH2)
Ratio f_clk : f_QD
Paper chain: f at Q_A · Q_B · Q_C · Q_D
Sequence across a direction flip (e.g. …5,6,7 ⇄ 6,5,4…)

Data Table 4 — Johnson Counter (Part 5)

Clock #Q1 Q2 Q3 Q4Bits changed from previous
reset0 0 0 0
1
2
3
4
5
6
7
8 (wrap)
Decode LED (Q1·Q̄2) fires during state…
Illegal-state test: sequence after forcing 0100

📈 Interactive Oscillator & Ring Playground

The lab's four personalities, live. In the 555 modes the canvas draws both scope channels — the capacitor's exponential shuttle between ⅓ and ⅔ VCC, and the square output it produces — recalculated instantly as you swap components. The counter modes run from a simulated 555 so you can rehearse Parts 3–5 before wiring them.

What To Notice
In Astable mode, swap C from 10 µF to 1 µF and watch the whole picture compress ×10 while its shape stays identical — RC timing scales, exponentials don't change character. Then grow RB and watch the duty-cycle readout crawl toward 50% but never arrive. In One-Shot, mash the trigger during a pulse: nothing — the RC network owns the clock, not you. And in Johnson Ring, use "Force 0100" to strand the counter in the parallel orbit, watch it circulate garbage, and rescue it with Reset — the Part 5 step 8 experience, rehearsable.

✍ Analysis Questions

Answer in complete sentences in your lab report.

  1. Using your Data Table 1 measurements: why can't the basic 555 astable reach exactly 50% duty cycle? Trace the answer to which resistors carry the charge and discharge currents, and state the standard design tactic for getting close to 50%.
  2. Design problem: choose RA, RB, and C for a 1 kHz clock with duty near 52%. Show the calculation and check your values against the formula. (Many correct answers exist — justify yours.)
  3. The 555's thresholds are ⅓ VCC and ⅔ VCC — ratios, not fixed voltages. Explain why this makes the astable's frequency almost independent of supply voltage, and why that mattered to designers in 1972 and still does.
  4. Your monostable ignored how long the button was held (up to T). Name two real systems that need exactly this "stretch a messy input into one clean timed pulse" behavior, and identify R and C's role in each.
  5. From Data Table 4: prove the Johnson counter's MOD is 2n rather than 2ⁿ, and compute how many flip-flops a Johnson counter needs for 16 states versus a binary counter. What does the Johnson buy for that extra hardware? (Your one-AND decode from step 7 is the answer.)
  6. Your illegal-state experiment stranded the ring in a parallel orbit of 8 unused states. Design (describe or sketch) a self-correcting fix: a gate circuit that detects an illegal pattern — for example, a 0 sandwiched between 1s, i.e. Q1·Q̄2·Q3 — and pulses the CLR̄ line. Why is designing for states that "should never happen" a core engineering discipline?
  7. Security connection: fault-injection attacks called clock glitching deliberately disturb a processor's oscillator — inserting runt pulses or momentary frequency spikes — so that instructions misexecute and security checks get skipped. Your Part 1 clock is external, exposed, and easy to touch; secure microcontrollers instead use internal oscillators plus clock-monitor circuits that detect out-of-range periods (a watchdog you could build from your Part 2 one-shot: retrigger it every cycle, and if a pulse ever fails to arrive, its timeout raises an alarm). Explain (a) why an attacker with access to a device's clock pin effectively holds a skeleton key to its logic, and (b) how the monostable-as-watchdog detects a stopped or stretched clock. What does this add to the Counters lab's lesson that security can live in hardware structure itself?

Key Facts Reference Box

Astable = no stable state
free-running oscillator → your clock
Astable frequency
f = 1.44 / ((R_A + 2R_B)·C)
Duty cycle
(R_A+R_B)/(R_A+2R_B) — always > 50%
Monostable pulse
T = 1.1·R·C, trigger-length-independent
555 thresholds
⅓ V_CC (TRIG) · ⅔ V_CC (THRES)
555 killer pins
RESET (4) → V_CC · astable: join 2 ↔ 6
Johnson counter
shift ring + inverted feedback (Q̄→D)
Johnson modulus
MOD = 2n (4 stages → 8 states)
Johnson signature
adjacent states differ by exactly 1 bit
Commercial ring chip
CD4017 = 5-stage Johnson + decoders

Interactive Knowledge Check

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

← Lab: Counters & 7-Segment Displays 🏠 Course Home Back to Top ↑