ECE 2103 Digital Electronics - Missed Portions & Pedagogical Gaps
This document logs all fundamental concepts, methodologies, and circuits that were missing or insufficiently explained in the original study notes. Adding these sections will make the notes 100% self-sufficient for a student studying Digital Electronics for the first time, while keeping them strictly aligned with the ECE 2103 Syllabus and Checklist.
1. Chapter 1: Number Systems & Arithmetic
1.1 Unsigned Binary Multiplication Methodology
Concept: Binary multiplication is mathematically identical to decimal multiplication but utilizes base-2. The process involves generating partial products for each bit of the multiplier and summing them.
Step-by-Step Algorithm (Paper-and-Pencil):
Write down the multiplicand and multiplier.
For each digit of the multiplier (starting from LSB to MSB):
If the multiplier bit is 1, copy the multiplicand (shifted left by the corresponding position weight).
If the multiplier bit is 0, write a row of 0s.
Sum all the partial product rows using binary addition rules.
Worked Example: Multiply 1110β by 510β in Binary (10112βΓ01012β)
Concept: Binary division is performed using long division, which is much simpler than decimal division because the quotient bits can only be 0 or 1.
Step-by-Step Algorithm (Paper-and-Pencil):
Align the divisor with the MSB of the dividend.
Compare the divisor with the selected portion of the dividend:
If the dividend portion is β₯ divisor, write 1 in the quotient, subtract the divisor, and bring down the next bit.
If the dividend portion is < divisor, write 0 in the quotient and bring down the next bit.
Repeat until all bits of the dividend have been processed.
Worked Example: Divide 4510β by 910β in Binary (1011012βΓ·10012β)
000101 (Quotient = 5_10) _________ 1001 | 101101 (Dividend = 45_10) - 1001 (1011 >= 1001 -> Quotient bit = 1, subtract) ------ 00100 (Remainder + bring down next bit '0') - 00000 (100 < 1001 -> Quotient bit = 0, subtract 0) ------- 1001 (Remainder + bring down next bit '1') - 1001 (1001 >= 1001 -> Quotient bit = 1, subtract) ------ 0000 (Remainder = 0, Stop)
2. Chapter 2: Digital Codes & Error Detection
2.1 Alphanumeric Codes: ASCII Overview
Concept: Digital systems must process non-numeric data such as letters, punctuation, and control characters. ASCII (American Standard Code for Information Interchange) is the universal alphanumeric standard.
Key Parameters:
Standard ASCII: A 7-bit code representing 27=128 unique characters (codes 0β12710β). Contains 94 printable characters and 34 non-printable control characters (like Backspace, Carriage Return).
Extended ASCII: An 8-bit code representing 28=256 characters, adding graphical symbols and foreign characters.
Parity Integration: Standard ASCII is typically stored in 8-bit bytes where the 8th (MSB) bit is reserved as a parity bit for error detection.
Cells in the same row and column position across the two maps are physically adjacent (differ by only one variable, A).
A group can span both planes. If a group of cells exists in the exact same positions on both the A=0 and A=1 maps, the variable A changes state and is eliminated.
If a group exists only on the A=0 plane, the final term must include Aβ². If it exists only on the A=1 plane, it must include A.
Before transistors, logic gates were built using PN-junction diodes.
1. Diode OR Gate
Schematic: Diodes connected from inputs to output node; resistor R pulls output to Ground.
Circuit Operation:
Inputs A, B = LOW (0V): Both diodes reverse-biased (OFF). No current flows. Output pulled to Ground (0VβΉLogicΒ 0).
Input A = HIGH (5V), B = LOW: Diode DAβ forward-biased (ON), conducting current to output. Diode DBβ is OFF. Output rises to 5VβVDββ4.3VβΉLogicΒ 1.
Diode OR Gate Schematic: Input A --->[ Diode DA ]---+---> Output Y | Input B --->[ Diode DB ]---+ | [ R ] | GND
2. Diode AND Gate
Schematic: Diodes pointing from output node back to inputs; resistor R pulls output to VCCβ (5V).
Circuit Operation:
ANY Input (A or B) = LOW (0V): The corresponding diode is forward-biased, conducting current to Ground. This pulls the output node down to 0V+VDββ0.7VβΉLogicΒ 0.
BOTH Inputs (A and B) = HIGH (5V): Both diodes are reverse-biased (OFF). No current flows through them. Output node is pulled up to VCCβ=5VβΉLogicΒ 1.
Diode AND Gate Schematic: Vcc (5V) | [ R ] | Input A <---[ Diode DA ]------+---> Output Y | Input B <---[ Diode DB ]------+
4.2 CMOS NOR Gate
Concept: CMOS NOR logic uses PMOS transistors in series (Pull-Up Network) and NMOS transistors in parallel (Pull-Down Network).
Circuit Operation:
ANY Input (A or B) = HIGH (5V): The parallel NMOS stack (NAβ or NBβ) turns ON, pulling the output node to Ground (Logic 0). At least one series PMOS (PAβ or PBβ) turns OFF, disconnecting the path to VDDβ.
BOTH Inputs (A and B) = LOW (0V): Both parallel NMOS turn OFF. Both series PMOS turn ON, creating a low-resistance path from VDDβ to Output (Logic 1).
CMOS NOR Schematic: Vdd (5V) | [ PMOS PA ] | [ PMOS PB ] | Inputs A, B ----+--+----------> Output Y | | +---+--+---+ | | [ NMOS NA ] [ NMOS NB ] | | +----+-----+ | GND
4.3 ECL (Emitter-Coupled Logic) OR/NOR Gate
Concept: ECL is a high-speed, non-saturating bipolar logic family. It avoids saturation delays by using a differential amplifier configuration.
Circuit Operation:
The inputs drive the base terminals of parallel input transistors (TAβ,TBβ).
Their emitters are tied together and connected to a constant-current source (resistor to βVEEβ).
A reference transistor (TREFβ) has its base connected to a fixed reference voltage (VBBβ).
Logic LOW Input: If inputs are low, TAβ,TBβ are OFF. Current is steered entirely through TREFβ. Emitter follower outputs generate Y=LOW and Yβ²=HIGH.
Logic HIGH Input: If any input is high, TAβ or TBβ turns ON, steering current away from TREFβ. The emitter follower outputs flip: Y=HIGH (OR output) and Yβ²=LOW (NOR output).
5. Chapter 5: Combinational Circuit Design
5.1 Combinational Circuit Analysis Blueprint
Concept: Analysis is the reverse-engineering process of determining the logical function of a given schematic.
The 4-Step Analysis Algorithm:
Label Outputs: Assign variable labels to all intermediate gate outputs.
Write Equations: Deriving from the input side forward, write the Boolean equation for each intermediate output, and finally for the overall circuit outputs.
Construct Truth Table: Calculate the binary output states for all 2n possible input combinations using the derived equations.
Determine Function: Analyze the truth table or simplify the Boolean equation to describe what function the circuit performs (e.g., parity checker, adder, etc.).
5.2 BCD to Seven-Segment Decoder Design
Concept: Converts a 4-bit BCD input (A,B,C,D) to control signals for a 7-segment display (segments a,b,c,d,e,f,g) representing digits 0 to 9.
Display Layout:
a +---+ f | | b +---+ <- g e | | c +---+ d
Truth Table (Active-High Display):
Donβt care inputs (10β15): Segments are blank or donβt care (X).
Decimal
Inputs (ABCD)
Segments (aΒ bΒ cΒ dΒ eΒ fΒ g)
0
0 0 0 0
1 1 1 1 1 1 0
1
0 0 0 1
0 1 1 0 0 0 0
2
0 0 1 0
1 1 0 1 1 0 1
3
0 0 1 1
1 1 1 1 0 0 1
4
0 1 0 0
0 1 1 0 0 1 1
5
0 1 0 1
1 0 1 1 0 1 1
6
0 1 1 0
1 0 1 1 1 1 1
7
0 1 1 1
1 1 1 0 0 0 0
8
1 0 0 0
1 1 1 1 1 1 1
9
1 0 0 1
1 1 1 1 0 1 1
Minimized Logic Equations (using K-Maps):
a=A+C+BD+Bβ²Dβ²
b=Bβ²+Cβ²Dβ²+CD
c=B+Cβ²+D
d=A+Bβ²Dβ²+CDβ²+Bβ²C+BCβ²D
e=Bβ²Dβ²+CDβ²
f=A+Cβ²Dβ²+BCβ²+BDβ²
g=A+Bβ²C+BCβ²+CDβ²
5.3 Basic 1-to-4 Demultiplexer (DeMUX) Design
Concept: A Demultiplexer takes a single input line D and routes it to one of 2n outputs controlled by n select lines.
1-to-4 DeMUX Truth Table:
Inputs: Data D, Selects S1β,S0β. Outputs: Y3β,Y2β,Y1β,Y0β.
Selects (S1βS0β)
Outputs (Y3βΒ Y2βΒ Y1βΒ Y0β)
0 0
0 0 0 D
0 1
0 0 D 0
1 0
0 D 0 0
1 1
D 0 0 0
Logic Equations:
Y0β=S1β²βS0β²βD
Y1β=S1β²βS0βD
Y2β=S1βS0β²βD
Y3β=S1βS0βD
Schematic: Four 3-input AND gates driven by select signals and Data input.