4-Bit Counter with Display
4-bit counter with digital display and oscilloscope timing. Learn counter operation and numerical display systems.
What You'll Learn
- Combine a counter with a display decoder to show counts visually.
- Recognize the counter-display pattern as combining sequential and combinational logic.
- See decimal/hex digit conversion from binary.
- Apply this architecture to clocks, score displays, and lab counters.
- Cascade multiple counter+display units for multi-digit numeric output.
How It Works
A 4-bit counter with display combines a synchronous 4-bit counter with a 7-segment-style digit display, showing the count as a decimal value (or hex digit, since 4 bits = 0–F).
The display decoder converts the 4-bit binary count into a 7-segment pattern: which segments light up to form each digit shape. For values 0–9 it shows the decimal digit; for 10–15 it typically shows hex letters A, B, C, D, E, F.
This is the classic counter+display demonstration used in introductory digital labs. It's also the same architecture used in real digital clocks (multiple counters cascaded with displays), event counters, and stopwatches.
The display behaviour is combinational — it depends only on the current counter value. The counter itself is sequential — it depends on history (clock edges). Together they form the basic building block of any digital instrument with a numeric readout.
Try It Step-by-Step
Set the inputs in the embed above, then read what should happen and confirm.
- 1Clock = running slowlyExpected:
Display cycles through 0..FWhat you'll see: Watch the display increment on each clock edge: 0, 1, 2, ..., 9, A, B, C, D, E, F, then wrap back to 0. - 2Clock = stopped at 7Expected:
Display shows 7What you'll see: Stop the clock — the display freezes at the current count value. Counter is sequential; display is combinational. - 3Clock = fastExpected:
Display cycles too fast to readWhat you'll see: At high clock rates the digits blur — real human-readable counters use slow clocks (Hz range) or are sampled into a refresh buffer. - 4Reset = 1Expected:
Display jumps to 0What you'll see: Asserting reset clears the counter. Display immediately reflects the new 0 value.
Components Used
Real-World Applications
Lab event counters. Bench instruments displaying pulse counts use exactly this architecture — counter + display.
Digital clocks. Each digit (hours, minutes, seconds) is its own counter with its own display, cascaded with carry-out triggering the next-larger digit.
Score displays in arcade games. Each digit is a counter+display; scoring increments the counter; the display refreshes each clock cycle.
Timing instrumentation. Frequency counters, period meters, and stopwatches all use cascaded counters with multi-digit displays.
Hexadecimal viewers. Memory dump displays (like in early debuggers) used 7-segment hex displays to show byte values — 4-bit counter values become hex digits A-F.