E7A: Digital Circuits
Digital circuits operate on binary logic — every node is either high (1) or low (0). Building useful systems from these binary states requires understanding how individual gates combine into larger circuits: flip-flops that remember state, counters that divide frequencies, multivibrators that generate timing, and logic gates that perform boolean operations.
This lesson covers the digital circuit principles and logic elements tested in the Extra class exam, including flip-flop behavior, multivibrator types, gate logic operations, truth tables, frequency division, and the distinction between positive and negative logic.
Flip-Flops and Bistable Circuits
A flip-flop is a bistable circuit — it has two stable output states (Q = 0 or Q = 1) and stays in whichever state it was last set to until a trigger changes it. This is the fundamental digital memory element, storing exactly one bit.
The bistable property means a flip-flop output changes state on each trigger edge, toggling between 0 and 1. A signal driving the flip-flop at frequency f produces an output at f/2 — one complete output cycle for every two input cycles. This is the basis of binary frequency division.
Common flip-flop types include the SR (Set-Reset), D (Data), JK, and T (Toggle) flip-flops. The JK and T types are particularly useful for counters and dividers.
Multivibrators
Multivibrators are circuits built from two active elements (transistors or logic gates) with cross-coupled feedback. They come in three stability types:
- Astable multivibrator: Has no stable state — it continuously alternates between two states without any external clock or trigger signal. This self-oscillating behavior makes it a square wave generator.
- Monostable multivibrator: Has one stable state. When triggered, it switches temporarily to an alternate state for a set time (determined by an RC time constant), then returns to stable. Also called a "one-shot."
- Bistable multivibrator: Has two stable states and requires an external trigger to change — this is the flip-flop.
Frequency Dividers and Counters
Since each flip-flop divides a signal frequency by 2, cascading multiple flip-flops produces higher division ratios. The output frequency equals the input frequency divided by 2ⁿ where n is the number of flip-flops:
- 1 flip-flop → divide by 2
- 2 flip-flops → divide by 4
- 3 flip-flops → divide by 8
- 4 flip-flops → divide by 16
A decade counter counts from 0 to 9 and then resets, producing one output pulse for every 10 input pulses. Decade counters are used in frequency counters and BCD (binary-coded decimal) systems.
Logic Gate Operations
Each type of logic gate performs a specific boolean function. The key gates tested on the exam:
| Gate | Operation | Output rule |
|---|---|---|
| AND | Logical AND | Output = 1 only if ALL inputs are 1 |
| OR | Logical OR | Output = 1 if ANY input is 1 |
| NAND | NOT-AND | Output = 0 ONLY if all inputs are 1 |
| NOR | NOT-OR | Output = 0 if any input is 1 |
| XOR | Exclusive OR | Output = 1 if inputs differ |
| XNOR | Exclusive NOR | Output = 0 if one and only one input is 1 |
The NAND gate is particularly useful because any logic function can be built from NAND gates alone. The OR gate's key property is that it produces a 1 if any input is 1 — even a single high input drives the output high.
The two-input exclusive NOR (XNOR) gate produces a 0 when exactly one of its inputs is 1. It outputs 1 only when both inputs match (both 0 or both 1), making it a digital equality comparator.
Truth Tables and Positive Logic
A truth table is a list of all possible input combinations and the corresponding output for a digital device. It fully defines the logical behavior of any gate or circuit. Truth tables are used to verify logic designs and to understand gate operation.
Positive logic is the convention where a high voltage represents a logic 1 and a low voltage represents a logic 0. This is the standard convention in most modern digital circuits. Negative logic reverses this: low voltage = 1, high voltage = 0. Knowing which convention is in use is essential for interpreting circuit diagrams correctly.
E7A Practice Questions
Check Your Knowledge
E7B: Amplifiers →
← E7: Practical Circuits