Top Banner Ad

AEC101B — Unit 4: Digital Basics and Microcontroller Overview

Table of Contents (29 sections)

AEC101B · Fundamentals of Electronics Engineering · Unit 4

Digital Basics and Microcontroller Overview

Unit Scope & Exam Weightage: The syllabus is deliberately practical: logic levels → AND/OR/NOT/NAND truth tables → simple industrial Boolean logic → ADC concept → Arduino/PLC inputs, outputs and program logic → LCD and 7-segment displays → ladder logic. The bank records 21 clusters worth about 100 marks; these are conventional digital-electronics questions (K-maps, Boolean theorems, universal gates, number systems), which are the algebra behind that industrial logic. Every solved question is linked to a plant example: motor enable, emergency stop, lamp indication and plant readouts.


Front Page: Importance-Wise Topic Roadmap (2023–26 PYQs)

Priority Topic (Exact Syllabus) PYQs Asked Marks Weightage Tag
1 basic gates — AND, OR, NOT, NAND (truth table only) 13 clusters (2023-24 ×5, 2024-25 ×6, 2025-26 ×3) 7m × 6 + 3.5m × 2 + 2m × 5 = 59m Survival Mode Proof + Truth Table
2 Logic levels and digital signals 5 (2023-24 ×2, 2024-25 ×3) 7m × 3 + 2m × 2 = 25m High Yield Number Systems
3 Boolean expression for simple industrial logic (motor ON when switch A AND NOT emergency stop) 3 (2023-24 ×3, 2025-26 ×1) 7m × 2 + 2m = 16m Application K-map + Circuit
4 ADC concept — converting sensor analog output to digital 0 direct — Predicted Numerical
5 PLC ladder logic concept 0 direct — Predicted Application
6 microcontroller overview — inputs, outputs, program logic 0 direct — Predicted
7 display devices — LCD and 7-segment (what they show) 0 direct — Predicted
8 applications: digital readout of temperature/pressure on plant display 0 direct — Application
9 automated ON/OFF control logic integrated in #3 — Application
10 safety interlock logic using NOT and AND integrated in #3 — Application

2-Hour Last-Night Survival Checklist:

  1. Industrial logic first: motor run M=A⋅EStop‾M=A\cdot\overline{EStop} — write the truth table (only A=1A=1, EStop=0EStop=0 gives M=1M=1), draw the AND gate with an inverted stop input and the equivalent ladder rung [ ] A --[/] EStop --( ) M.
  2. Gate truth tables: AND 0001, OR 0111, NAND 1110, NOR 1000, XOR 0110 (for inputs 00,01,10,11). NAND is universal: NOT =A⋅A‾=\overline{A\cdot A}, AND =AB‾⋅AB‾‾=\overline{\overline{AB}\cdot\overline{AB}}, OR =Aˉ∣Bˉ=\bar A\mid\bar B.
  3. Boolean proofs: A+AˉB=(A+Aˉ)(A+B)=A+BA+\bar AB=(A+\bar A)(A+B)=A+B; AB+ABC+ABˉ=AAB+ABC+A\bar B=A; all four minterms sum to 1. Correct the printed typo A+AB+AB=A+BA+AB+AB=A+B to A+AˉB=A+BA+\bar AB=A+B, and the false (iii) AB+Cˉ+BC=AB+CˉAB+\bar C+BC=AB+\bar C to the consensus identity AB+AˉC+BC=AB+AˉCAB+\bar AC+BC=AB+\bar AC.
  4. K-map groupings to rehearse: Σm(0,3,5,7,8,9,10,12,13)+d(1,6,11,14)⇒ACˉ+ADˉ+AˉD+BˉCˉ\Sigma m(0,3,5,7,8,9,10,12,13)+d(1,6,11,14)\Rightarrow A\bar C+A\bar D+\bar AD+\bar B\bar C; Σm(0,1,2,3,5,7,8,9,11,14)⇒AˉD+BˉD+AˉBˉ+BˉCˉ+ABCDˉ\Sigma m(0,1,2,3,5,7,8,9,11,14)\Rightarrow \bar AD+\bar BD+\bar A\bar B+\bar B\bar C+ABC\bar D; Σm(0,1,2,3,5,7,13,15)+d(8,10)⇒BD+AˉBˉ\Sigma m(0,1,2,3,5,7,13,15)+d(8,10)\Rightarrow BD+\bar A\bar B; Σm(1,3,4,5,6,7,9,11,13,15)⇒D+AˉB\Sigma m(1,3,4,5,6,7,9,11,13,15)\Rightarrow D+\bar AB.
  5. Last 20 minutes: sketch the ADC chain (sensor voltage → sample & hold → ADC → MCU/PLC register → 7-segment/LCD) and state that an nn-bit ADC over VrefV_{ref} has LSB =Vref/2n=V_{ref}/2^n; for 10-bit, 5 V5\text{ V} gives 4.88 mV4.88\text{ mV} per count.

1. Logic Levels, Gates and Industrial Boolean Logic

TTL: LOW 0-0.8 V0\text{-}0.8\text{ V}, HIGH 2.0-5.0 V2.0\text{-}5.0\text{ V}. CMOS: LOW ≤0.3VDD\le0.3V_{DD}, HIGH ≥0.7VDD\ge0.7V_{DD}. A PLC input treats 24 V24\text{ V} as logic 1 and 0 V0\text{ V} as logic 0; the undefined band must be crossed quickly to avoid multiple transitions.

Gate Expression Output for AB=00,01,10,11AB=00,01,10,11 Plant meaning
AND Y=ABY=AB 0, 0, 0, 1 Motor ON only if switch A and enable B
OR Y=A+BY=A+B 0, 1, 1, 1 Alarm if either sensor trips
NOT Y=AˉY=\bar A 1, 0 Normally-closed stop contact inversion
NAND Y=AB‾Y=\overline{AB} 1, 1, 1, 0 Universal building block
NOR Y=A+B‾Y=\overline{A+B} 1, 0, 0, 0 Universal building block
XOR Y=A⊕BY=A\oplus B 0, 1, 1, 0 Two signals different → mismatch alarm

The core industrial equation:

M=A⋅EStop‾.M=A\cdot\overline{EStop}.

With the emergency stop pressed (EStop=1EStop=1), EStop‾=0\overline{EStop}=0 and M=0M=0 regardless of switch A — the safety interlock has priority. Its truth table is (A,EStop,M)=(0,0,0),(1,0,1),(0,1,0),(1,1,0)(A,EStop,M)=(0,0,0),(1,0,1),(0,1,0),(1,1,0). The ladder equivalent is a normally-open contact A in series with a normally-closed EStop contact driving coil M.

Why NAND/NOR are universal: any SOP or POS expression can be built with one gate type alone, which reduces inventory and IC count in a panel. De Morgan's theorems A+B‾=AˉBˉ\overline{A+B}=\bar A\bar B and AB‾=Aˉ+Bˉ\overline{AB}=\bar A+\bar B are the conversion tools.


2. Boolean Theorems, Number Systems and Complements

Theorem Identity
Identity / null A+0=AA+0=A, A⋅1=AA\cdot1=A, A+1=1A+1=1, A⋅0=0A\cdot0=0
Idempotent A+A=AA+A=A, AA=AAA=A
Complement A+Aˉ=1A+\bar A=1, AAˉ=0A\bar A=0
Distributive A(B+C)=AB+ACA(B+C)=AB+AC, A+BC=(A+B)(A+C)A+BC=(A+B)(A+C)
Absorption A+AB=AA+AB=A, A(A+B)=AA(A+B)=A
Consensus AB+AˉC+BC=AB+AˉCAB+\bar AC+BC=AB+\bar AC
De Morgan A+B‾=AˉBˉ\overline{A+B}=\bar A\bar B, AB‾=Aˉ+Bˉ\overline{AB}=\bar A+\bar B

Number systems used in displays and PLC registers: binary (base 2), octal (3 bits per digit), hexadecimal (4 bits per digit). Decimal 63.25 → 111111.012111111.01_2; (10010.101)2=18.62510(10010.101)_2=18.625_{10}; A6B.0F16=1010 0110 1011.0000 11112=5153.0368\text{A6B.0F}_{16}=1010\,0110\,1011.0000\,1111_2=5153.036_8; (5678)10=0101 0110 0111 1000BCD(5678)_{10}=0101\,0110\,0111\,1000_{BCD}.

Complements: 1's complement = invert bits; 2's complement = invert and add 1. A−BA-B is done by adding the complement; with 2's complement discard the end carry, and no carry means a negative result. Example: 10011010→110011010\rightarrow1's 0110010101100101, 2's 0110011001100110.


3. K-Map Minimisation and Universal Gates

A 4-variable K-map uses Gray-code order 00, 01, 11, 10 on both axes. Group 1s in powers of two, wrap edges and corners, use don't-cares only to enlarge groups; read each group as the product of the variables that do not change, then OR the products.

Function Verified minimum
F=Σm(0,3,5,7,8,9,10,12,13)+d(1,6,11,14)F=\Sigma m(0,3,5,7,8,9,10,12,13)+d(1,6,11,14) ACˉ+ADˉ+AˉD+BˉCˉA\bar C+A\bar D+\bar AD+\bar B\bar C
f=Σm(0,1,2,3,5,7,8,9,11,14)f=\Sigma m(0,1,2,3,5,7,8,9,11,14) AˉD+BˉD+AˉBˉ+BˉCˉ+ABCDˉ\bar AD+\bar BD+\bar A\bar B+\bar B\bar C+ABC\bar D
F=Σm(0,1,2,3,5,7,13,15)+d(8,10)F=\Sigma m(0,1,2,3,5,7,13,15)+d(8,10) BD+AˉBˉBD+\bar A\bar B
F=Σm(1,3,4,5,6,7,9,11,13,15)F=\Sigma m(1,3,4,5,6,7,9,11,13,15) D+AˉBD+\bar AB
F=ΠM(0,2,10,11,12,14,15)⋅d(5,13)F=\Pi M(0,2,10,11,12,14,15)\cdot d(5,13) (A+B+D)(Aˉ+Bˉ)(Aˉ+Cˉ)(A+B+D)(\bar A+\bar B)(\bar A+\bar C)

For an industrial interlock, a K-map can simplify a multi-sensor enable expression into a handful of contacts, reducing ladder rungs and failure points.


4. ADC, Microcontroller, Displays and Ladder Logic

ADC concept: converts a sensor's analogue voltage into an nn-bit digital word the controller can store and display. The input range is divided into 2n2^n levels; one LSB =Vref/2n=V_{ref}/2^n. A 10-bit ADC with Vref=5 VV_{ref}=5\text{ V} resolves 4.88 mV4.88\text{ mV} per count, so a 1.25 mV1.25\text{ mV} bridge signal first needs analogue amplification (Unit 3) or a 16-bit ADC.

  • Microcontroller / PLC: reads inputs (limit switches, analog channels), executes a stored logic program and drives outputs (coils, indicators, drives). A PLC scan cycle is: read inputs → solve ladder logic → update outputs → repeat (typically milliseconds).
  • Ladder logic: two vertical power rails with horizontal rungs; -[ ]- is a normally-open (NO) contact, -[/]- a normally-closed (NC) contact, -( )- an output coil. A seal-in (latching) rung puts a NO contact of the output in parallel with the start pushbutton so the motor stays on until the NC stop opens.
  • 7-segment display: seven LEDs labelled a–g; lighting selected segments forms digits 0–9. A BCD-to-7-segment decoder turns the 4-bit result into segment drives. Used for plant temperature/pressure readouts.
  • LCD: a 16×2 alphanumeric module shows text such as TEMP=185 C; low power, but needs contrast adjustment and cannot be read in the dark without a backlight.
flowchart LR
    S[\"Sensor 4-20 mA\"]) --> I[\"PLC analog input\"])
    I --> A[\"ADC\"])
    A --> L[\"Ladder / program logic\"])
    L --> O[\"Digital output - relay or drive\"])
    L --> D[\"LCD / 7-segment readout\"])

Examiner Tip: Distinguish combinational logic (output depends only on the present inputs — gates,adders) from program logic in a PLC (inputs scanned, logic solved sequentially, outputs latched). A question asking “what does the PLC do?” expects the scan-cycle explanation, not a gate diagram.


5. Solved Exam-Ready Questions (verbatim PYQ wording)

Solved Q1 (2023-24, 2025-26, 7m)

Q: Explain the basic laws and theorems of Boolean algebra.

Solution: State and prove the Section 2 table. Key proofs:

  • Absorption: A+AB=A(1+B)=AA+AB=A(1+B)=A; dually A(A+B)=AA(A+B)=A.
  • A+AˉB=(A+Aˉ)(A+B)=A+BA+\bar AB=(A+\bar A)(A+B)=A+B using the distributive law and A+Aˉ=1A+\bar A=1.
  • De Morgan: A+B‾=AˉBˉ\overline{A+B}=\bar A\bar B and AB‾=Aˉ+Bˉ\overline{AB}=\bar A+\bar B, verified by comparing truth tables.
  • Consensus: AB+AˉC+BC=AB+AˉCAB+\bar AC+BC=AB+\bar AC because BC=BC(A+Aˉ)BC=BC(A+\bar A) and the added terms are absorbed. Industrial use: simplify M=A⋅EStop‾+A⋅EStopM=A\cdot\overline{EStop}+A\cdot EStop to M=AM=A when the redundant stop term cancels.

Solved Q2 (2023-24, 2025-26, 7m)

Q: Simplify the function F=∑m(0,3,5,7,8,9,10,12,13)+∑d(1,6,11,14)F = \sum m(0, 3, 5, 7, 8, 9, 10, 12, 13) + \sum d(1, 6, 11, 14) using K-map and also implement the simplified expression using Basic gates only.

Solution: Enter the minterms and don't-cares in a Gray-ordered 4-variable map; using the don't-cares to form the largest quads/octets gives the verified minimum

F=ACˉ+ADˉ+AˉD+BˉCˉ.F=A\bar C+A\bar D+\bar A D+\bar B\bar C.

Implementation: four AND gates (with inverters for complemented inputs) feeding a 4-input OR gate. Spot-check m12m_{12} (A=1,B=1,C=0,D=0A=1,B=1,C=0,D=0): ACˉ=1A\bar C=1, so F=1F=1 as required. Equivalent POS from the zeros: (A+D+Bˉ)(A+D+Cˉ)(Aˉ+Cˉ+Dˉ)(A+D+\bar B)(A+D+\bar C)(\bar A+\bar C+\bar D).

Solved Q3 (2024-25, 7m)

Q: Minimize the four variable logic function using K-map: f(A,B,C,D)=∑m(0,1,2,3,5,7,8,9,11,14)f(A, B, C, D) = \sum m (0, 1, 2, 3, 5, 7, 8, 9, 11, 14)

Solution: The verified minimum is

f=AˉD+BˉD+AˉBˉ+BˉCˉ+ABCDˉ.f=\bar A D+\bar B D+\bar A\bar B+\bar B\bar C+ABC\bar D.

Minterm 14 (A=1,B=1,C=1,D=0A=1,B=1,C=1,D=0) has no larger neighbour and forces the five-literal term ABCDˉABC\bar D. Draw five AND gates into an OR gate; in ladder terms this is five parallel branches of series contacts.

Solved Q4 (2024-25, 7m)

Q: Simplify F=∑m(0,1,2,3,5,7,13,15)+d(8,10)F = \sum m(0, 1, 2, 3, 5, 7, 13, 15) + d(8, 10) using K-Map and design logic resultant circuit using basic logic gates.

Solution: Using the two don't-cares to enlarge groups gives F=BD+AˉBˉF=BD+\bar A\bar B. Two 2-input AND gates feeding one OR gate implement it; POS alternative (B+Aˉ)(D+Bˉ)(B+\bar A)(D+\bar B). Spot-check m5m_5 (0,1,0,10,1,0,1): AˉBˉ=0\bar A\bar B=0? With A=0,B=1A=0,B=1, AˉBˉ=0\bar A\bar B=0 and BD=1⋅1=1BD=1\cdot1=1 → output 1, correct.

Solved Q5 (2023-24, 7m)

Q: Simplify the following function using K-map F(A,B,C,D)=∑(1,3,4,5,6,7,9,11,13,15)F(A, B, C, D) = \sum(1, 3, 4, 5, 6, 7, 9, 11, 13, 15). Also implement the simplified function using basic gates only.

Solution: The eight odd-DD minterms form an octet giving DD; the remaining quad at A=0,B=1A=0,B=1 gives AˉB\bar AB. Hence F=D+AˉBF=D+\bar AB. Implement with one inverter, one AND gate and one OR gate.

Solved Q6 (2024-25, 7m)

Q: Prove the following using the Boolean algebraic theorems: (i) A+A⋅B+AB=A+BA + A\cdot B + AB = A + B (ii) A⋅B‾+A‾⋅B+A‾⋅B‾=A‾+B‾A\cdot \overline{B} + \overline{A}\cdot B + \overline{A}\cdot \overline{B} = \overline{A} + \overline{B} (iii) AB+C‾+BC=AB+C‾AB + \overline{C} + BC = AB + \overline{C}

Solution: The printed (i) contains a duplication: A+AB+ABA+AB+AB reduces to AA, not A+BA+B; the intended identity is A+AˉB=A+BA+\bar AB=A+B, proved as A+AˉB=(A+Aˉ)(A+B)=A+BA+\bar AB=(A+\bar A)(A+B)=A+B. (ii) ABˉ+AˉB+AˉBˉ=ABˉ+Aˉ(B+Bˉ)=ABˉ+Aˉ=Aˉ+BˉA\bar B+\bar AB+\bar A\bar B=A\bar B+\bar A(B+\bar B)=A\bar B+\bar A=\bar A+\bar B using X+XˉY=X+YX+\bar XY=X+Y with X=AˉX=\bar A. (iii) The printed identity AB+Cˉ+BC=AB+CˉAB+\bar C+BC=AB+\bar C is not valid: for A=0,B=1,C=1A=0,B=1,C=1 the LHS is 1 but the RHS is 0. The intended consensus theorem is AB+AˉC+BC=AB+AˉCAB+\bar AC+BC=AB+\bar AC. Proof: AB+AˉC+BC=AB+AˉC+BC(A+Aˉ)=AB+AˉC+ABC+AˉBCAB+\bar AC+BC=AB+\bar AC+BC(A+\bar A)=AB+\bar AC+ABC+\bar ABC; ABCABC is absorbed by ABAB and AˉBC\bar ABC by AˉC\bar AC, leaving AB+AˉCAB+\bar AC. State the correction explicitly — a wrong printed identity cannot be proved.

Solved Q7 (2024-25, 2m)

Q: Prove the following Boolean functions: AB+ABC+ABˉ=AAB + ABC + A\bar{B} = A and ABˉ+AˉB+AB+AˉBˉ=1A\bar{B} + \bar{A}B + AB + \bar{A}\bar{B} = 1.

Solution: AB+ABC+ABˉ=A(B+BC+Bˉ)=A[(B+Bˉ)+BC]=AAB+ABC+A\bar B=A(B+BC+\bar B)=A[(B+\bar B)+BC]=A. And AˉBˉ+AˉB+ABˉ+AB=Aˉ(Bˉ+B)+A(Bˉ+B)=Aˉ+A=1\bar A\bar B+\bar AB+A\bar B+AB=\bar A(\bar B+B)+A(\bar B+B)=\bar A+A=1 (the complete set of four minterms).

Solved Q8 (2025-26, 3.5m)

Q: Define universal logic Gates. Realize XOR, XNOR gates using NAND and NOR gate only.

Solution: A universal gate can realise any Boolean function by itself. NAND XOR: N1=AB‾N_1=\overline{AB}, N2=AN1‾N_2=\overline{AN_1}, N3=BN1‾N_3=\overline{BN_1}, Y=N2N3‾=A⊕BY=\overline{N_2N_3}=A\oplus B; add one tied-input NAND inverter to get XNOR. NOR version uses the dual construction built from A+B‾\overline{A+B} stages; XNOR is A⊕B‾\overline{A\oplus B}.

Solved Q9 (2024-25, 2m)

Q: Why is NAND gate called a 'universal gate'? Realize NOT gate using NAND gate only.

Solution: NAND alone can produce NOT, AND and OR, hence any logic function. NOT is realised by tying both NAND inputs to AA: Y=A⋅A‾=AˉY=\overline{A\cdot A}=\bar A.

Solved Q10 (2024-25, 2m)

Q: Find 1's and 2's complement of 1001101010011010.

Solution: 1's complement =01100101=\mathbf{01100101}; 2's complement =01100101+1=01100110=01100101+1=\mathbf{01100110}.

Solved Q11 (2024-25, 2m)

Q: Define the term "combinational logic" in digital electronics.

Solution: A circuit whose outputs at any instant depend only on the present combination of inputs, with no memory, feedback or clock. Gates, adders and decoders are combinational; a PLC scan that latches an output is sequential.

Solved Q12 (2023-24, 2m)

Q: Add binary numbers (1110.10+1011.11)2(1110.10 + 1011.11)_2.

Solution: 1110.102=14.51110.10_2=14.5, 1011.112=11.751011.11_2=11.75; sum 26.2510=11010.01226.25_{10}=\mathbf{11010.01_2}.

Solved Q13 (2024-25, 2m)

Q: What are the binary-arithmetic operations for 11.10+10.11+111.00+110.11+001.01=?11.10 + 10.11 + 111.00 + 110.11 + 001.01 = ??

Solution: Align the binary points and add with carries: 3.5+2.75+7+6.75+1.25=21.2510=10101.0123.5+2.75+7+6.75+1.25=21.25_{10}=\mathbf{10101.01_2}.

Solved Q14 (2024-25, 7m)

Q: Distinguish between POS & SOP. Convert the given expression in standard SOP form. F(A,B,C)=AB+BC+CAF (A, B, C) = AB + BC + CA

Solution: SOP = sum of products (minterms, F=1F=1); POS = product of sums (maxterms, F=0F=0). Expand each term to three variables: AB=ABCˉ+ABCAB=AB\bar C+ABC, BC=AˉBC+ABCBC=\bar ABC+ABC, CA=ABˉC+ABCCA=A\bar BC+ABC. Hence F=AˉBC+ABˉC+ABCˉ+ABC=Σm(3,5,6,7)F=\bar ABC+A\bar BC+AB\bar C+ABC=\Sigma m(3,5,6,7), equivalently F=ΠM(0,1,2,4)F=\Pi M(0,1,2,4).

Solved Q15 (2023-24, 7m)

Q: Realize NOT, AND, OR and XOR gates using NAND gate.

Solution: NOT =A⋅A‾=\overline{A\cdot A}. AND =AB‾⋅AB‾‾=\overline{\overline{AB}\cdot\overline{AB}}. OR =Aˉ⋅Bˉ‾=\overline{\bar A\cdot\bar B} (invert both inputs with tied-input NANDs). XOR: N1=AB‾N_1=\overline{AB}, N2=AN1‾N_2=\overline{AN_1}, N3=BN1‾N_3=\overline{BN_1}, Y=N2N3‾Y=\overline{N_2N_3}; verify A=B⇒Y=0A=B\Rightarrow Y=0, A≠B⇒Y=1A\ne B\Rightarrow Y=1.

Solved Q16 (2024-25, 2m)

Q: Why are NAND and NOR gates called universal gates?

Solution: A universal gate alone can realise any Boolean function. NAND is universal because NOT =A⋅A‾=\overline{A\cdot A}, AND =AB‾⋅AB‾‾=\overline{\overline{AB}\cdot\overline{AB}} and OR =Aˉ⋅Bˉ‾=\overline{\bar A\cdot\bar B}; since {NOT, AND, OR} is functionally complete, every SOP expression can be built. NOR is universal because NOT =A+A‾=\overline{A+A}, OR =A+B‾+A+B‾‾=\overline{\overline{A+B}+\overline{A+B}} and AND =Aˉ+Bˉ‾=\overline{\bar A+\bar B}; every POS expression can be built. In a plant panel this reduces IC types and spares inventory.

Solved Q17 (2024-25, 7m)

Q: Minimize the following Boolean function in POS form using the K map: f(A,B,C,D,E)=∏M(3,5,6,9,10,11,13,19,21,22,23,25,26,27,29)f(A, B, C, D, E) = \prod M(3, 5, 6, 9, 10, 11, 13, 19, 21, 22, 23, 25, 26, 27, 29).

Solution: For POS, enter zeros in a 5-variable K-map (two 4×4 planes, A=0A=0 and A=1A=1) and group the zeros in powers of two, allowing wrap-around between planes for the 8-cell groups. Each group gives a sum term: a fixed variable 0 is written uncomplemented, a fixed variable 1 is complemented. The verified minimum covering all listed maxterms is

f=(A+B+Cˉ+Dˉ+E)(Aˉ+B+Cˉ+Dˉ)(B+C+Dˉ+Eˉ)(B+Cˉ+D+Eˉ)(Bˉ+C+Dˉ)(Bˉ+D+Eˉ).f=(A+B+\bar C+\bar D+E)(\bar A+B+\bar C+\bar D)(B+C+\bar D+\bar E)(B+\bar C+D+\bar E)(\bar B+C+\bar D)(\bar B+D+\bar E).

Spot-check three zeros: M3=00011M_3=00011 is zeroed by (B+C+Dˉ+Eˉ)=0+1+0+0=0(B+C+\bar D+\bar E)=0+1+0+0=0; M6=00110M_6=00110 by (A+B+Cˉ+Dˉ+E)=0+0+0+0+0=0(A+B+\bar C+\bar D+E)=0+0+0+0+0=0; M22=10110M_{22}=10110 by (Aˉ+B+Cˉ+Dˉ)=0+0+0+0=0(\bar A+B+\bar C+\bar D)=0+0+0+0=0. For an unlisted minterm such as m24=11000m_{24}=11000, all six factors evaluate to 1, so f=1f=1 as required. Draw the two-plane map in the exam and read each group directly.

Solved Q18 (2023-24, 7m)

Q: Perform the following as mentioned: (i) Convert (63.250)10(63.250)_{10} to binary number. (ii) Convert (10010.101)2(10010.101)_2 to decimal number. (iii) Convert (A6B.0F)16(A6B.0F)_{16} to octal number. (iv) Perform subtraction using 2′s2's complement (111−1010)2(111 - 1010)_2. (v) Design AND, OR, and NOT gates using only NOR gates.

Solution:

  • (i) 63=32+16+8+4+2+1=111111263=32+16+8+4+2+1=111111_2; .250=0.012.250=0.01_2; hence (63.250)10=111111.012(63.250)_{10}=\mathbf{111111.01_2}.
  • (ii) 100102=16+2=1810010_2=16+2=18; .1012=0.5+0.125=0.625.101_2=0.5+0.125=0.625; total 18.62510\mathbf{18.625_{10}}.
  • (iii) A6B.0F16=1010 0110 1011.0000 11112\text{A6B.0F}_{16}=1010\,0110\,1011.0000\,1111_2. Group integer bits from the point: 101 001 101 011=51538101\,001\,101\,011=5153_8; group fraction bits right-padded: 000 011 110=0368000\,011\,110=036_8. Hence 5153.0368\mathbf{5153.036_8}.
  • (iv) Align to 4 bits: 0111−10100111-1010. 2's complement of 10101010 is 0101+1=01100101+1=0110. Add 0111+0110=11010111+0110=1101; no end carry means a negative result. Magnitude = 2's complement of 11011101 = 00110011. Result −310\mathbf{-3_{10}} (i.e. −00112-0011_2).
  • (v) NOR-only: NOT =A+A‾=\overline{A+A}; OR =A+B‾+A+B‾‾=\overline{\overline{A+B}+\overline{A+B}}; AND =Aˉ+Bˉ‾=\overline{\bar A+\bar B}. Verify AND: A=B=1A=B=1 gives 0+0‾=1\overline{0+0}=1, all other inputs give 0.

Solved Q19 (2024-25, 2m)

Q: What are the binary-arithmetic operations for 11.10+10.11+111.00+110.11+001.01=?11.10 + 10.11 + 111.00 + 110.11 + 001.01 = ??

Solution: Align the binary points and add with carries. Decimal check: 3.5+2.75+7+6.75+1.25=21.25103.5+2.75+7+6.75+1.25=21.25_{10}, and 21.2510=10101.01221.25_{10}=\mathbf{10101.01_2}. Hence the sum is 10101.01210101.01_2.

Solved Q20 (2023-24, 7m)

Q: Simplify the function F=∏M(0,2,10,11,12,14,15)⋅∏d(5,13)F = \prod M(0, 2, 10, 11, 12, 14, 15) \cdot \prod d(5,13) using K-map and implement the simplified expression using NOR gates only.

Solution: Enter the seven zeros and use don't-cares 5 and 13 to enlarge the zero groups. The verified minimum POS is

F=(A+B+D)(Aˉ+Cˉ)(Aˉ+Bˉ).F=(A+B+D)(\bar A+\bar C)(\bar A+\bar B).

Spot-check: M0=0000M_0=0000 makes the first factor 0; M12=1100M_{12}=1100 makes (Aˉ+Bˉ)=0(\bar A+\bar B)=0; M15=1111M_{15}=1111 makes (Aˉ+Cˉ)=0(\bar A+\bar C)=0. For a NOR-only implementation, realise each sum term by De Morgan, e.g. A+B+D=Aˉ⋅Bˉ⋅Dˉ‾A+B+D=\overline{\bar A\cdot\bar B\cdot\bar D}, building the product of complements with NOR gates and inverting it with a tied-input NOR; then AND the three sum terms using T1T2T3=Tˉ1+Tˉ2+Tˉ3‾T_1T_2T_3=\overline{\bar T_1+\bar T_2+\bar T_3}, again a NOR followed by a tied-input NOR inverter.

Solved Q21 (2023-24, 2m)

Q: Simplify the Boolean function F=XY+XY′/Z+YZ′F = XY + XY'/Z + YZ' using Boolean algebra.

Solution: Interpret XY′/ZXY'/Z as XYˉZˉX\bar Y\bar Z and Z′Z' as Zˉ\bar Z:

F=XY+XYˉZˉ+YZˉ.F=XY+X\bar Y\bar Z+Y\bar Z.

Use Y+XYˉ=Y+XY+X\bar Y=Y+X:

XYˉZˉ+YZˉ=Zˉ(XYˉ+Y)=Zˉ(X+Y)=XZˉ+YZˉ.X\bar Y\bar Z+Y\bar Z=\bar Z(X\bar Y+Y)=\bar Z(X+Y)=X\bar Z+Y\bar Z.

Hence F=XY+XZˉ+YZˉF=\mathbf{XY+X\bar Z+Y\bar Z}, equivalently XY+Zˉ(X+Y)XY+\bar Z(X+Y). Truth-table check: X=0,Y=1,Z=0X=0,Y=1,Z=0 gives 1 (from YZˉY\bar Z); X=1,Y=0,Z=0X=1,Y=0,Z=0 gives 1 (from XZˉX\bar Z); X=1,Y=1,Z=1X=1,Y=1,Z=1 gives 1 (from XYXY); X=0,Y=0,Z=1X=0,Y=0,Z=1 gives 0.


6. Predicted / Application Questions (not verbatim PYQs)

  1. Predicted (7m): A motor must run when start switch A=1A=1 and emergency stop EStop=0EStop=0. Derive the Boolean expression, truth table, gate circuit and PLC ladder rung. Guide: M=AEStop‾M=A\overline{EStop}; only (1,0)(1,0) gives 1; AND gate with inverted stop input; ladder -[ ] A --[/] EStop --( ) M; adding a seal-in contact in parallel with A gives latch behaviour.
  2. Predicted (7m): A 0-100∘C0\text{-}100^\circ\text{C} PT100 signal is conditioned to 0-5 V0\text{-}5\text{ V} and read by a 10-bit ADC. Find the resolution in mV and in ∘C^\circ\text{C} per count, and describe how the value reaches a 7-segment display. Guide: 5/1024=4.88 mV/count5/1024=4.88\text{ mV/count}; 100/1024≈0.098∘C/count100/1024\approx0.098^\circ\text{C/count}; ADC word → BCD conversion → decoder → 7-segment segments a–g.
  3. Predicted (7m): Explain how an Arduino/PLC uses program logic to implement an automated ON/OFF tank-level control with a level switch and a pump, stating the roles of inputs, outputs and the scan cycle. Guide: read level switch (input) → if tank empty and pump enabled set output coil → drive relay/pump; repeat scan; add a latch and a high-level cut-off for safety.

7. Self-Test Additions

  1. (2m) State the truth table of a NAND gate for inputs 00, 01, 10, 11. (Ans: 1,1,1,0.)
  2. (2m) Why is a NOT gate obtained by tying the two inputs of a NAND together?
  3. (7m) Write the ladder rung for "lamp ON if either limit switch LS1 or LS2 is closed, but only when master enable is on".
  4. (7m) Convert (63.250)10(63.250)_{10} to binary and (10010.101)2(10010.101)_2 to decimal. (Ans: 111111.012111111.01_2, 18.62518.625.)
  5. (7m) Explain with a block diagram how a plant temperature value moves from a 4–20 mA transmitter to an LCD readout.

Note: the recorded K-map clusters for this unit often name four/five variables, which exceeds the syllabus phrase "truth table only" for gates; they are solved above because they appear in the question bank, but the syllabus-listed industrial logic and ladder concepts are the first priority for revision.