Modulo-N (Mod) Counters: Architectural Theory, IC 74LS90, IC 74LS93 & K-Map Synthesis
A comprehensive academic and engineering guide covering Asynchronous (Ripple) vs. Synchronous (Parallel) counters, glitch physics in truncated modulo circuits, hardware pinouts for TTL 74LS90 and 74LS93, cascaded high-modulus configurations, state tables, and Karnaugh map minimization for synchronous counter design.
1. Executive Summary & Mathematical Foundations
A Modulo-N Counter (or Mod-N Counter) is a sequential digital logic circuit that cycles repetitively through a predetermined sequence of exactly \(N\) distinct binary states (\(0, 1, 2, \dots, N-1\)) before resetting back to its initial state (\(0\)).
1. Modulus (\(N\)): The total count of unique states traversed by the counter.
2. Frequency Division (\(\div N\)): A counter with modulus \(N\) divides the incoming master clock frequency by \(N\): \[ f_{\text{out}} = \frac{f_{\text{in}}}{N} \] The output waveform taken from the most significant flip-flop (MSB) has an exact frequency of \(f_{\text{in}} / N\).
3. Flip-Flop Requirement Inequality: To build a counter with modulus \(N\), the minimum number of binary storage flip-flops (\(n\)) is governed by: \[ 2^n \ge N \iff n = \lceil \log_2 N \rceil \]
Standard Modulo Requirements Table
| Target Modulus (\(N\)) | Required Flip-Flops (\(n\)) | Natural Capacity (\(2^n\)) | State Count Range | Classification | Typical Engineering Application |
|---|---|---|---|---|---|
| Mod-2 (\(\div 2\)) | 1 | 2 | 0 to 1 | Natural (Power-of-2) | Toggle Flip-Flop, 50% Duty-Cycle Halver |
| Mod-5 (\(\div 5\)) | 3 | 8 | 0 to 4 | Truncated (\(N < 2^n\)) | 74LS90 Section 2 (Divide-by-5) |
| Mod-6 (\(\div 6\)) | 3 | 8 | 0 to 5 | Truncated (\(N < 2^n\)) | Digital Clock: Seconds & Minutes Tens Digit (\(0 \to 5\)) |
| Mod-7 (\(\div 7\)) | 3 | 8 | 0 to 6 | Truncated (\(N < 2^n\)) | Calendar: Days of the Week (\(0 \to 6\)) |
| Mod-8 (\(\div 8\)) | 3 | 8 | 0 to 7 | Natural (Power-of-2) | 74LS93 Section 2 (3-bit Octal Ripple) |
| Mod-10 (\(\div 10\)) | 4 | 16 | 0 to 9 | Truncated (BCD Decade) | 74LS90 Decade Counter, 7-Segment Display Driver |
| Mod-12 (\(\div 12\)) | 4 | 16 | 0 to 11 | Truncated (\(N < 2^n\)) | 12-Hour Digital Clock Hours Digit |
| Mod-16 (\(\div 16\)) | 4 | 16 | 0 to 15 | Natural (4-Bit Binary) | 74LS93 Full 4-Bit Binary Counter, Hexadecimal Math |
| Mod-24 (\(\div 24\)) | 5 | 32 | 0 to 23 | Truncated (\(N < 2^n\)) | 24-Hour Military Time Digital Clock |
| Mod-60 (\(\div 60\)) | 6 | 64 | 0 to 59 | Truncated Cascaded | Digital Clock: Cascaded Seconds & Minutes Stages (\(10 \times 6\)) |
| Mod-100 (\(\div 100\)) | 7 | 128 | 0 to 99 | Truncated Cascaded | 2-Digit BCD Decade Frequency Counter |
| Mod-256 (\(\div 256\)) | 8 | 256 | 0 to 255 | Natural (8-Bit Binary) | Cascaded Dual 74LS93, Byte Baud Rate Generator |
2. Classification & Glitch Physics
Asynchronous (Ripple) Counters
- Clocking: Only the first stage (\(Q_A\)) receives the master external clock. Subsequent flip-flops are clocked by the output of the preceding stage (\(Q_{n-1}\)).
- Propagation Delay: Cumulative across all stages: \[ t_{\text{delay(total)}} = n \times t_{pd} \]
- Hardware Simplicity: No lookahead gating required; extremely simple wiring.
- Speed Limitation: Maximum operating clock frequency drops as stages are added (\(f_{\max} < 1 / (n \cdot t_{pd})\)).
- Benchmark ICs: IC 74LS90 (Decade), IC 74LS93 (4-bit binary), CD4040.
Synchronous (Parallel) Counters
- Clocking: All flip-flops in the counter receive the identical master clock pulse simultaneously.
- Propagation Delay: Constant, equal to a single flip-flop plus steering gate delay: \[ t_{\text{delay(total)}} = t_{pd} + t_{\text{gate}} \]
- Hardware Complexity: Requires combinational lookahead steering logic (AND gates or K-map minimized control networks).
- High-Speed Operation: No cumulative ripple delay; ideal for gigahertz processors and DSP pipelines.
- Benchmark ICs: IC 74LS160 (BCD Synchronous), IC 74LS161 / 74LS163 (4-bit Binary Synchronous).
Glitch Physics & Asynchronous Reset Dynamics
To force an \(n\)-bit counter to cycle through \(N\) states (\(0\) through \(N-1\)), we decode the binary representation of state \(N\) using combinational AND/NAND gates and feed the output to the active Master Reset pins (\(R_0\)).
- The counter counts cleanly from state \(0\) up through state \(N-1\).
- On the next clock falling edge, the flip-flops momentarily switch to state \(N\).
- Within \(\approx 10\text{--}30\,\text{ns}\) (the internal propagation delay of the reset gating), the Master Reset triggers, forcing all flip-flops immediately back to \(0000_2\).
- Because this reset spike lasts only a few nanoseconds, human eyes, 7-segment displays, and standard digital peripherals never see state \(N\). Exactly \(N\) stable states (\(0\) to \(N-1\)) are observed!
3. IC 74LS90: Decade / BCD Ripple Counter Engineering Guide
The 74LS90 / 7490 is a versatile asynchronous ripple counter housed in a standard 14-pin DIP package. It contains two separate, independent internal counter sections: Section 1: a divide-by-2 (\(\div 2\)) single flip-flop stage, and Section 2: a divide-by-5 (\(\div 5\)) 3-flip-flop ripple stage.
74LS90 14-Pin DIP Package Diagram
Unlike conventional 7400-series DIP-14 chips which place \(V_{CC}\) on Pin 14 and \(GND\) on Pin 7, the 74LS90 and 74LS93 use non-standard power pins: Pin 5 = \(V_{CC}\) (+5V) and Pin 10 = \(GND\) (0V). Wiring Pin 14 to power will short the clock line!
Pin Function Descriptions
| Pin # | Symbol | Type | Function |
|---|---|---|---|
| 1 | CP1 (I/P B) | Clock In | Clock pulse input for Mod-5 section (Falling edge \(\downarrow\)) |
| 2 | \(R_{0(1)}\) | Input | Master Reset-to-0 gate input 1 (ANDed with pin 3) |
| 3 | \(R_{0(2)}\) | Input | Master Reset-to-0 gate input 2 (ANDed with pin 2) |
| 4 | NC | - | No internal connection |
| 5 | \(V_{CC}\) | Power | +5V DC Power Supply Rail |
| 6 | \(R_{9(1)}\) | Input | Set-to-9 (Preset) gate input 1 (ANDed with pin 7) |
| 7 | \(R_{9(2)}\) | Input | Set-to-9 (Preset) gate input 2 (ANDed with pin 6) |
| 8 | QC | Output | Bit 2 output (Binary weight \(2^2 = 4\)) |
| 9 | QB | Output | Bit 1 output (Binary weight \(2^1 = 2\)) |
| 10 | GND | Power | 0V Ground System Reference |
| 11 | QD | Output | Bit 3 output / MSB (Binary weight \(2^3 = 8\)) |
| 12 | QA | Output | Bit 0 output / LSB (Binary weight \(2^0 = 1\), Mod-2) |
| 13 | NC | - | No internal connection |
| 14 | CP0 (I/P A) | Clock In | Clock pulse input for Mod-2 section (Falling edge \(\downarrow\)) |
74LS90 Reset & Preset (Set-to-9) Truth Table
The master clear and preset functions operate asynchronously through internal 2-input AND gates: \[ \text{Reset Condition} = R_{0(1)} \cdot R_{0(2)} \qquad \text{Set-to-9 Condition} = R_{9(1)} \cdot R_{9(2)} \]
| Reset-to-0 Inputs | Set-to-9 Inputs | Output Bits | Operating Mode / Action | |||||
|---|---|---|---|---|---|---|---|---|
| \(R_{0(1)}\) (Pin 2) | \(R_{0(2)}\) (Pin 3) | \(R_{9(1)}\) (Pin 6) | \(R_{9(2)}\) (Pin 7) | \(Q_D\) (Pin 11) | \(Q_C\) (Pin 8) | \(Q_B\) (Pin 9) | \(Q_A\) (Pin 12) | |
| 1 | 1 | 0 | X | 0 | 0 | 0 | 0 | Asynchronous Master CLEAR (Forced 0000) |
| 1 | 1 | X | 0 | 0 | 0 | 0 | 0 | Asynchronous Master CLEAR (Forced 0000) |
| X | X | 1 | 1 | 1 | 0 | 0 | 1 | Asynchronous Master PRESET to BCD 9 (1001) |
| X | 0 | X | 0 | Count | Count | Count | Count | Normal Counting Mode (Clock Active) |
| 0 | X | 0 | X | Count | Count | Count | Count | Normal Counting Mode (Clock Active) |
| 0 | X | X | 0 | Count | Count | Count | Count | Normal Counting Mode (Clock Active) |
| X | 0 | 0 | X | Count | Count | Count | Count | Normal Counting Mode (Clock Active) |
74LS90 Mod-10 (BCD / Decade) Count Sequence (0 through 9)
To configure the 74LS90 as a Mod-10 Decade Counter: connect Master Clock to Pin 14 (\(\text{CP0}\)), jumper Pin 12 (\(Q_A\)) to Pin 1 (\(\text{CP1}\)), and tie all reset pins (\(R_{0(1)}, R_{0(2)}, R_{9(1)}, R_{9(2)}\)) to \(GND\).
| Clock Pulse | \(Q_D\) (Bit 3 - MSB) | \(Q_C\) (Bit 2) | \(Q_B\) (Bit 1) | \(Q_A\) (Bit 0 - LSB) | Decimal Value | Internal Operation |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | Initial / Cleared State |
| 1 | 0 | 0 | 0 | 1 | 1 | QA toggles to 1 |
| 2 | 0 | 0 | 1 | 0 | 2 | QA falling edge triggers Mod-5 stage (QB=1) |
| 3 | 0 | 0 | 1 | 1 | 3 | QA toggles to 1 |
| 4 | 0 | 1 | 0 | 0 | 4 | QA falling edge advances Mod-5 (QC=1, QB=0) |
| 5 | 0 | 1 | 0 | 1 | 5 | QA toggles to 1 |
| 6 | 0 | 1 | 1 | 0 | 6 | QA falling edge advances Mod-5 (QC=1, QB=1) |
| 7 | 0 | 1 | 1 | 1 | 7 | QA toggles to 1 |
| 8 | 1 | 0 | 0 | 0 | 8 | QA falling edge advances Mod-5 (QD=1, QC=0, QB=0) |
| 9 | 1 | 0 | 0 | 1 | 9 | QA toggles to 1 (Max BCD state) |
| 10 (Rollover) | 0 | 0 | 0 | 0 | 0 | Natural BCD rollover back to 0000 |
Specialized 74LS90 Truncated Circuits
Truncated Mod-6 Counter (Digital Clocks)
Used for the Seconds Tens and Minutes Tens digits of real-time digital clocks (\(0 \to 5\)):
- Wire Clock to Pin 14; jumper \(Q_A\) (Pin 12) to Pin 1 (\(\text{CP1}\)).
- Connect \(Q_B\) (Pin 9) directly to \(R_{0(1)}\) (Pin 2).
- Connect \(Q_C\) (Pin 8) directly to \(R_{0(2)}\) (Pin 3).
- Ground \(R_{9(1)}\) and \(R_{9(2)}\).
- Operation: Counts \(0, 1, 2, 3, 4, 5\). When count reaches 6 (\(0110_2\)), \(Q_C=1\) and \(Q_B=1\), activating \(R_{0(1)} \cdot R_{0(2)}=1\) and resetting to 0000 in \(\approx 15\,\text{ns}\).
Truncated Mod-7 Counter (Days of the Week)
Counts 7 discrete states (\(0, 1, 2, 3, 4, 5, 6\)) for weekly scheduling:
- Reset condition is state \(7_{10} = 0111_2 \implies Q_A=1, Q_B=1, Q_C=1\).
- Connect \(Q_A\) and \(Q_B\) into a 2-input AND gate (74LS08).
- Connect the AND output to \(R_{0(1)}\) (Pin 2).
- Connect \(Q_C\) directly to \(R_{0(2)}\) (Pin 3).
- When count hits 7, all three bits trigger Master Clear instantly.
4. IC 74LS93: 4-Bit Binary Ripple Counter Engineering Guide
The 74LS93 / 7493 is a monolithic 4-bit binary ripple counter in a 14-pin DIP package. It consists of four master-slave flip-flops partitioned into: Section 1: a single flip-flop functioning as a divide-by-2 (\(\div 2\)) counter, and Section 2: a 3 flip-flop ripple chain functioning as a divide-by-8 (\(\div 8\)) counter. Unlike the 74LS90, the 74LS93 has no Set-to-9 preset pins (Pins 6 and 7 are NC).
74LS93 14-Pin DIP Package Diagram
In bipolar TTL technology, unconnected input pins float to Logic HIGH (1). Therefore, Pin 2 (\(R_{0(1)}\)) and Pin 3 (\(R_{0(2)}\)) MUST be actively grounded to \(GND\) to enable normal counting. Leaving them floating locks the counter permanently in reset (0000)!
Pin Function Descriptions
| Pin # | Symbol | Type | Function |
|---|---|---|---|
| 1 | CP1 (I/P B) | Clock In | Clock pulse input for \(\div 8\) Mod-8 counter (Falling edge \(\downarrow\)) |
| 2 | \(R_{0(1)}\) | Input | Master Reset gate input 1 (ANDed with pin 3) |
| 3 | \(R_{0(2)}\) | Input | Master Reset gate input 2 (ANDed with pin 2) |
| 4 | NC | - | No internal connection |
| 5 | \(V_{CC}\) | Power | +5V DC Power Supply Rail |
| 6 | NC | - | No internal connection (NC on 74LS93) |
| 7 | NC | - | No internal connection (NC on 74LS93) |
| 8 | QC | Output | Bit 2 output (Binary weight \(2^2 = 4\)) |
| 9 | QB | Output | Bit 1 output (Binary weight \(2^1 = 2\)) |
| 10 | GND | Power | 0V Ground System Reference |
| 11 | QD | Output | Bit 3 output / MSB (Binary weight \(2^3 = 8\)) |
| 12 | QA | Output | Bit 0 output / LSB (Binary weight \(2^0 = 1\), Mod-2) |
| 13 | NC | - | No internal connection |
| 14 | CP0 (I/P A) | Clock In | Clock pulse input for \(\div 2\) Mod-2 counter (Falling edge \(\downarrow\)) |
74LS93 Asynchronous Master Reset Truth Table
| Reset Input \(R_{0(1)}\) (Pin 2) | Reset Input \(R_{0(2)}\) (Pin 3) | \(Q_D\) (MSB) | \(Q_C\) | \(Q_B\) | \(Q_A\) (LSB) | Operating Mode / Action |
|---|---|---|---|---|---|---|
| 1 (HIGH) | 1 (HIGH) | 0 | 0 | 0 | 0 | Asynchronous Master Reset (Forced 0000) |
| 0 (LOW) | 0 (LOW) | Count | Count | Count | Count | Normal Counting Mode (Clock Active) |
| 0 (LOW) | 1 (HIGH) | Count | Count | Count | Count | Normal Counting Mode (Clock Active) |
| 1 (HIGH) | 0 (LOW) | Count | Count | Count | Count | Normal Counting Mode (Clock Active) |
74LS93 Complete 16-State Binary Count Table (0 through 15)
Configured as a Mod-16 Binary Up-Counter by tying Master Clock to Pin 14, jumpering Pin 12 (\(Q_A\)) to Pin 1 (\(\text{CP1}\)), and grounding Pins 2 & 3.
| Clock Pulse | \(Q_D\) (Pin 11) | \(Q_C\) (Pin 8) | \(Q_B\) (Pin 9) | \(Q_A\) (Pin 12) | Hex Value | Decimal Output |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0x0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0x1 | 1 |
| 2 | 0 | 0 | 1 | 0 | 0x2 | 2 |
| 3 | 0 | 0 | 1 | 1 | 0x3 | 3 |
| 4 | 0 | 1 | 0 | 0 | 0x4 | 4 |
| 5 | 0 | 1 | 0 | 1 | 0x5 | 5 |
| 6 | 0 | 1 | 1 | 0 | 0x6 | 6 |
| 7 | 0 | 1 | 1 | 1 | 0x7 | 7 |
| 8 | 1 | 0 | 0 | 0 | 0x8 | 8 |
| 9 | 1 | 0 | 0 | 1 | 0x9 | 9 |
| 10 | 1 | 0 | 1 | 0 | 0xA | 10 |
| 11 | 1 | 0 | 1 | 1 | 0xB | 11 |
| 12 | 1 | 1 | 0 | 0 | 0xC | 12 |
| 13 | 1 | 1 | 0 | 1 | 0xD | 13 |
| 14 | 1 | 1 | 1 | 0 | 0xE | 14 |
| 15 | 1 | 1 | 1 | 1 | 0xF | 15 |
| 16 (Rollover) | 0 | 0 | 0 | 0 | 0x0 | 0 (Full 4-Bit Binary Rollover) |
Specialized 74LS93 Truncated & Cascaded Circuits
Truncated Mod-12 Counter (12-Hour Digital Clock)
Used to count hours \(0 \to 11\) in a standard 12-hour digital clock:
- Wire Clock to Pin 14; jumper \(Q_A\) (Pin 12) to Pin 1 (\(\text{CP1}\)).
- Reset state is \(12_{10} = 1100_2 \implies Q_D=1, Q_C=1\).
- Connect \(Q_C\) (Pin 8) directly to \(R_{0(1)}\) (Pin 2).
- Connect \(Q_D\) (Pin 11) directly to \(R_{0(2)}\) (Pin 3).
- No external gates required! The internal AND gate automatically resets the chip to 0000 upon reaching 12.
Cascaded Mod-24 Counter (24-Hour Military Time)
Uses two cascaded 74LS93 chips (Lower nibble IC 1, Upper nibble IC 2):
- Cascade: Connect \(Q_D\) of IC 1 to Pin 14 of IC 2.
- Reset condition is \(24_{10} = 0001\,1000_2 \implies Q_{A2}=1\) and \(Q_{D1}=1\).
- Feed \(Q_{A2}\) (IC 2 Pin 12) and \(Q_{D1}\) (IC 1 Pin 11) into a 2-input AND gate (74LS08).
- Connect the AND output to the \(R_0\) reset pins of both ICs to clear to \(0000\,0000_2\).
5. Multi-IC Cascading Matrix & High Modulus Implementations
Higher modulus values are synthesized by cascading multiple counter stages. In ripple cascading, the most significant output bit (\(Q_D\)) of the lower stage is tied directly to the clock input of the succeeding stage.
| Target Modulus | Observed States | Hardware IC Architecture | Inter-Stage Ripple Wiring | Feedback Reset Equation / Gating |
|---|---|---|---|---|
| Mod-20 (\(\div 20\)) | 0 to 19 | IC 1 (74LS90 Mod-10) + IC 2 (74LS90 Mod-2) | IC 1 \(Q_D \to\) IC 2 \(\text{CP0}\) (Pin 14) | Natural rollover (\(10 \times 2 = 20\)); no feedback gates needed. |
| Mod-24 (\(\div 24\)) | 0 to 23 | IC 1 (74LS93 Mod-16) + IC 2 (74LS93 Mod-16) | IC 1 \(Q_D \to\) IC 2 \(\text{CP0}\) (Pin 14) | Reset at \(24_{10} = 0001\,1000_2 \implies Q_{A2} \cdot Q_{D1}\) into 7408 AND gate. |
| Mod-32 (\(\div 32\)) | 0 to 31 | IC 1 (74LS93 Mod-16) + IC 2 (74LS93 Mod-2) | IC 1 \(Q_D \to\) IC 2 \(\text{CP0}\) (Pin 14) | Natural rollover (\(16 \times 2 = 32\)); pure 5-bit binary ripple. |
| Mod-50 (\(\div 50\)) | 0 to 49 | IC 1 (74LS90 Mod-10) + IC 2 (74LS90 Mod-5) | IC 1 \(Q_D \to\) IC 2 \(\text{CP1}\) (Pin 1) | Natural rollover (\(10 \times 5 = 50\)). |
| Mod-60 (\(\div 60\)) | 0 to 59 | IC 1 (74LS90 Mod-10) + IC 2 (74LS90 Mod-6) | IC 1 \(Q_D \to\) IC 2 \(\text{CP0}\) (Pin 14) | IC 2 has \(Q_{C2} \cdot Q_{B2} \to R_0\) reset loop (60s / 60min Digital Clock). |
| Mod-90 (\(\div 90\)) | 0 to 89 | IC 1 (74LS90 Mod-10) + IC 2 (74LS90 Mod-10) | IC 1 \(Q_D \to\) IC 2 \(\text{CP0}\) (Pin 14) | Reset at Tens digit = 9 (\(1001_2\)): \(Q_{D2} \cdot Q_{A2} \to R_0\) of both ICs. |
| Mod-96 (\(\div 96\)) | 0 to 95 | IC 1 (74LS90 Mod-10) + IC 2 (74LS90 Mod-10) | IC 1 \(Q_D \to\) IC 2 \(\text{CP0}\) (Pin 14) | Reset at \(96_{10}\) (\(\text{IC}_2=9, \text{IC}_1=6\)): \((Q_{D2} \cdot Q_{A2} \cdot Q_{C1} \cdot Q_{B1}) \to R_0\). |
| Mod-100 (\(\div 100\)) | 0 to 99 | IC 1 (74LS90 Units) + IC 2 (74LS90 Tens) | IC 1 \(Q_D \to\) IC 2 \(\text{CP0}\) (Pin 14) | Natural 2-digit BCD decade rollover (\(10 \times 10 = 100\)). |
| Mod-256 (\(\div 256\)) | 0 to 255 | IC 1 (74LS93 Lower) + IC 2 (74LS93 Upper) | IC 1 \(Q_D \to\) IC 2 \(\text{CP0}\) (Pin 14) | Natural 8-bit pure binary ripple (\(16 \times 16 = 256\)). Full byte count. |
6. Benchmark Hardware Comparison: IC 74LS90 vs IC 74LS93
| Architectural Attribute | IC 74LS90 (Decade / BCD Counter) | IC 74LS93 (4-Bit Binary Counter) |
|---|---|---|
| Package Type | 14-Pin DIP | 14-Pin DIP |
| Primary Classification | Decade / BCD Asynchronous Up-Counter (\(\div 10\)) | 4-Bit Binary Asynchronous Up-Counter (\(\div 16\)) |
| Internal Stage 1 | \(\div 2\) (Mod-2): Clock I/P A (Pin 14) \(\to Q_A\) (Pin 12) | \(\div 2\) (Mod-2): Clock I/P A (Pin 14) \(\to Q_A\) (Pin 12) |
| Internal Stage 2 | \(\div 5\) (Mod-5): Clock I/P B (Pin 1) \(\to Q_B, Q_C, Q_D\) | \(\div 8\) (Mod-8): Clock I/P B (Pin 1) \(\to Q_B, Q_C, Q_D\) |
| Combined Modulus (Cascaded) | \(2 \times 5 = 10\) (Mod-10 / BCD Decade) | \(2 \times 8 = 16\) (Mod-16 / 4-Bit Binary) |
| Maximum Natural Count Sequence | 10 States (\(0000_2\) to \(1001_2\), \(0 \to 9\)) | 16 States (\(0000_2\) to \(1111_2\), \(0 \to 15\)) |
| Master Reset-to-0 Pins | \(R_{0(1)}\) (Pin 2) and \(R_{0(2)}\) (Pin 3) — Active HIGH | \(R_{0(1)}\) (Pin 2) and \(R_{0(2)}\) (Pin 3) — Active HIGH |
| Master Set-to-9 (Preset) Pins | \(R_{9(1)}\) (Pin 6) and \(R_{9(2)}\) (Pin 7) — Active HIGH | None (Pins 6 and 7 are NC — No Connection) |
| Power Supply Pins | Pin 5 = \(V_{CC}\) (+5V), Pin 10 = \(GND\) (0V) | Pin 5 = \(V_{CC}\) (+5V), Pin 10 = \(GND\) (0V) |
| Primary Target Application | Decimal arithmetic, BCD 7-segment LED displays, digital clock units/tens | Pure binary computing, byte memory addressing, frequency dividers, power-of-2 systems |
7. Karnaugh Maps (K-Maps) & Synchronous Counter Synthesis
While asynchronous ripple counters rely on sequential clocking and reset gating, Synchronous Modulo Counters clock all flip-flops simultaneously. To design a synchronous Mod-N counter, we construct the state excitation table using JK Flip-Flops (or T Flip-Flops) and minimize the excitation expressions using Karnaugh Maps (K-Maps), treating all unused states (\(N\) to \(2^n-1\)) as Don't-Care conditions (\(X\)).
• Present State \(0 \to\) Next State \(0 \implies J = 0, K = X\)
• Present State \(0 \to\) Next State \(1 \implies J = 1, K = X\)
• Present State \(1 \to\) Next State \(0 \implies J = X, K = 1\)
• Present State \(1 \to\) Next State \(1 \implies J = X, K = 0\)
A. Synchronous Mod-5 Counter Design (States 0 to 4)
Requires 3 flip-flops (\(Q_C, Q_B, Q_A\)). State sequence: \(0 \to 1 \to 2 \to 3 \to 4 \to 0\). Unused states are 5, 6, 7 (\(101_2, 110_2, 111_2\)), which become Don't Cares (\(X\)).
K-Map for Flip-Flop A (\(J_A, K_A\))
| \(Q_B Q_A\)\(Q_C\) | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 1 m0 | X m1 | X m3 | 1 m2 |
| 1 | 0 m4 | X m5 | X m7 | X m6 |
Minimal: \(J_A = \overline{Q_C}\), \(K_A = 1\)
K-Map for Flip-Flop B (\(J_B, K_B\))
| \(Q_B Q_A\)\(Q_C\) | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 0 m0 | 1 m1 | X m3 | X m2 |
| 1 | 0 m4 | X m5 | X m7 | X m6 |
Minimal: \(J_B = Q_A\), \(K_B = Q_A\)
K-Map for Flip-Flop C (\(J_C, K_C\))
| \(Q_B Q_A\)\(Q_C\) | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 0 m0 | 0 m1 | 1 m3 | 0 m2 |
| 1 | 1 m4 | X m5 | X m7 | X m6 |
Minimal: \(J_C = Q_B \cdot Q_A\), \(K_C = 1\)
B. Synchronous Mod-10 (BCD / Decade) Counter Design
Requires 4 flip-flops (\(Q_D, Q_C, Q_B, Q_A\)). State sequence: \(0000_2 \to 1001_2\) (\(0 \to 9\)). Unused invalid BCD states are 10, 11, 12, 13, 14, 15 (\(1010_2\) to \(1111_2\)), which are leveraged as Don't Cares (\(X\)) in 4-variable K-maps to drastically simplify the logic!
K-Map for \(J_B\) (Flip-Flop B Input)
| \(Q_B Q_A\)\(Q_D Q_C\) | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 m0 | 1 m1 | X m3 | X m2 |
| 01 | 0 m4 | 1 m5 | X m7 | X m6 |
| 11 | X m12 | X m13 | X m15 | X m14 |
| 10 | 0 m8 | 0 m9 | X m11 | X m10 |
Minimal Expression: \(J_B = \overline{Q_D} \cdot Q_A\) \(K_B = Q_A\)
K-Map for \(J_C\) (Flip-Flop C Input)
| \(Q_B Q_A\)\(Q_D Q_C\) | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 m0 | 0 m1 | 1 m3 | 0 m2 |
| 01 | X m4 | X m5 | X m7 | X m6 |
| 11 | X m12 | X m13 | X m15 | X m14 |
| 10 | 0 m8 | 0 m9 | X m11 | X m10 |
Minimal Expression: \(J_C = Q_B \cdot Q_A\) \(K_C = Q_B \cdot Q_A\)
K-Map for \(J_D\) (Flip-Flop D - MSB Input)
| \(Q_B Q_A\)\(Q_D Q_C\) | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 m0 | 0 m1 | 0 m3 | 0 m2 |
| 01 | 0 m4 | 0 m5 | 1 m7 | 0 m6 |
| 11 | X m12 | X m13 | X m15 | X m14 |
| 10 | X m8 | X m9 | X m11 | X m10 |
Minimal Expression: \(J_D = Q_C \cdot Q_B \cdot Q_A\) \(K_D = Q_A\)
\[ J_A = 1, \quad K_A = 1 \quad \text{(LSB toggles on every single clock pulse)} \] \[ J_B = \overline{Q_D} \cdot Q_A, \quad K_B = Q_A \] \[ J_C = Q_B \cdot Q_A, \quad K_C = Q_B \cdot Q_A \] \[ J_D = Q_C \cdot Q_B \cdot Q_A, \quad K_D = Q_A \] Notice that when count is at 9 (\(1001_2\)), \(Q_D=1\), which inhibits Flip-Flop B from turning ON (\(J_B = 0 \cdot 1 = 0\)). At the same time, \(K_D = Q_A = 1\) resets \(Q_D\) back to 0 on the 10th clock, cleanly returning the whole system to \(0000_2\)!
8. Real-World Engineering Applications & Lab Experiments
1. Digital Quartz Clocks
Cascaded chains of 74LS90 (Mod-10 for seconds/minutes units) and truncated 74LS90 (Mod-6 for seconds/minutes tens) convert a 1Hz clock directly into 60-second and 60-minute time intervals.
2. Frequency Division & PLLs
Generates precise sub-harmonics from crystal oscillators (e.g., dividing a 10MHz oscillator down to 1MHz, 100kHz, 10kHz, or 1Hz) for telecommunication baud rates and microcontroller system clocks.
3. Memory & Address Generators
IC 74LS93 ripple counters serve as automatic sequential address generators for EEPROMs, DACs (waveform synthesizers), and FIFO memory buffers.