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:
- Industrial logic first: motor run — write the truth table (only , gives ), draw the AND gate with an inverted stop input and the equivalent ladder rung
[ ] A --[/] EStop --( ) M. - Gate truth tables: AND 0001, OR 0111, NAND 1110, NOR 1000, XOR 0110 (for inputs 00,01,10,11). NAND is universal: NOT , AND , OR .
- Boolean proofs: ; ; all four minterms sum to 1. Correct the printed typo to , and the false (iii) to the consensus identity .
- K-map groupings to rehearse: ; ; ; .
- Last 20 minutes: sketch the ADC chain (sensor voltage → sample & hold → ADC → MCU/PLC register → 7-segment/LCD) and state that an -bit ADC over has LSB ; for 10-bit, gives per count.
1. Logic Levels, Gates and Industrial Boolean Logic
TTL: LOW , HIGH . CMOS: LOW , HIGH . A PLC input treats as logic 1 and as logic 0; the undefined band must be crossed quickly to avoid multiple transitions.
| Gate | Expression | Output for | Plant meaning |
|---|---|---|---|
| AND | 0, 0, 0, 1 | Motor ON only if switch A and enable B | |
| OR | 0, 1, 1, 1 | Alarm if either sensor trips | |
| NOT | 1, 0 | Normally-closed stop contact inversion | |
| NAND | 1, 1, 1, 0 | Universal building block | |
| NOR | 1, 0, 0, 0 | Universal building block | |
| XOR | 0, 1, 1, 0 | Two signals different → mismatch alarm |
The core industrial equation:
With the emergency stop pressed (), and regardless of switch A — the safety interlock has priority. Its truth table is . 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 and are the conversion tools.
2. Boolean Theorems, Number Systems and Complements
| Theorem | Identity |
|---|---|
| Identity / null | , , , |
| Idempotent | , |
| Complement | , |
| Distributive | , |
| Absorption | , |
| Consensus | |
| De Morgan | , |
Number systems used in displays and PLC registers: binary (base 2), octal (3 bits per digit), hexadecimal (4 bits per digit). Decimal 63.25 → ; ; ; .
Complements: 1's complement = invert bits; 2's complement = invert and add 1. is done by adding the complement; with 2's complement discard the end carry, and no carry means a negative result. Example: 's , 2's .
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 |
|---|---|
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 -bit digital word the controller can store and display. The input range is divided into levels; one LSB . A 10-bit ADC with resolves per count, so a 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: ; dually .
- using the distributive law and .
- De Morgan: and , verified by comparing truth tables.
- Consensus: because and the added terms are absorbed. Industrial use: simplify to when the redundant stop term cancels.
Solved Q2 (2023-24, 2025-26, 7m)
Q: Simplify the function 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
Implementation: four AND gates (with inverters for complemented inputs) feeding a 4-input OR gate. Spot-check (): , so as required. Equivalent POS from the zeros: .
Solved Q3 (2024-25, 7m)
Q: Minimize the four variable logic function using K-map:
Solution: The verified minimum is
Minterm 14 () has no larger neighbour and forces the five-literal term . 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 using K-Map and design logic resultant circuit using basic logic gates.
Solution: Using the two don't-cares to enlarge groups gives . Two 2-input AND gates feeding one OR gate implement it; POS alternative . Spot-check (): ? With , and → output 1, correct.
Solved Q5 (2023-24, 7m)
Q: Simplify the following function using K-map . Also implement the simplified function using basic gates only.
Solution: The eight odd- minterms form an octet giving ; the remaining quad at gives . Hence . 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) (ii) (iii)
Solution: The printed (i) contains a duplication: reduces to , not ; the intended identity is , proved as . (ii) using with . (iii) The printed identity is not valid: for the LHS is 1 but the RHS is 0. The intended consensus theorem is . Proof: ; is absorbed by and by , leaving . State the correction explicitly — a wrong printed identity cannot be proved.
Solved Q7 (2024-25, 2m)
Q: Prove the following Boolean functions: and .
Solution: . And (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: , , , ; add one tied-input NAND inverter to get XNOR. NOR version uses the dual construction built from stages; XNOR is .
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 : .
Solved Q10 (2024-25, 2m)
Q: Find 1's and 2's complement of .
Solution: 1's complement ; 2's complement .
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 .
Solution: , ; sum .
Solved Q13 (2024-25, 2m)
Q: What are the binary-arithmetic operations for ?
Solution: Align the binary points and add with carries: .
Solved Q14 (2024-25, 7m)
Q: Distinguish between POS & SOP. Convert the given expression in standard SOP form.
Solution: SOP = sum of products (minterms, ); POS = product of sums (maxterms, ). Expand each term to three variables: , , . Hence , equivalently .
Solved Q15 (2023-24, 7m)
Q: Realize NOT, AND, OR and XOR gates using NAND gate.
Solution: NOT . AND . OR (invert both inputs with tied-input NANDs). XOR: , , , ; verify , .
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 , AND and OR ; since {NOT, AND, OR} is functionally complete, every SOP expression can be built. NOR is universal because NOT , OR and AND ; 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: .
Solution: For POS, enter zeros in a 5-variable K-map (two 4×4 planes, and ) 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
Spot-check three zeros: is zeroed by ; by ; by . For an unlisted minterm such as , all six factors evaluate to 1, so 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 to binary number. (ii) Convert to decimal number. (iii) Convert to octal number. (iv) Perform subtraction using complement . (v) Design AND, OR, and NOT gates using only NOR gates.
Solution:
- (i) ; ; hence .
- (ii) ; ; total .
- (iii) . Group integer bits from the point: ; group fraction bits right-padded: . Hence .
- (iv) Align to 4 bits: . 2's complement of is . Add ; no end carry means a negative result. Magnitude = 2's complement of = . Result (i.e. ).
- (v) NOR-only: NOT ; OR ; AND . Verify AND: gives , all other inputs give 0.
Solved Q19 (2024-25, 2m)
Q: What are the binary-arithmetic operations for ?
Solution: Align the binary points and add with carries. Decimal check: , and . Hence the sum is .
Solved Q20 (2023-24, 7m)
Q: Simplify the function 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
Spot-check: makes the first factor 0; makes ; makes . For a NOR-only implementation, realise each sum term by De Morgan, e.g. , building the product of complements with NOR gates and inverting it with a tied-input NOR; then AND the three sum terms using , again a NOR followed by a tied-input NOR inverter.
Solved Q21 (2023-24, 2m)
Q: Simplify the Boolean function using Boolean algebra.
Solution: Interpret as and as :
Use :
Hence , equivalently . Truth-table check: gives 1 (from ); gives 1 (from ); gives 1 (from ); gives 0.
6. Predicted / Application Questions (not verbatim PYQs)
- Predicted (7m): A motor must run when start switch and emergency stop . Derive the Boolean expression, truth table, gate circuit and PLC ladder rung.
Guide: ; only gives 1; AND gate with inverted stop input; ladder
-[ ] A --[/] EStop --( ) M; adding a seal-in contact in parallel with A gives latch behaviour. - Predicted (7m): A PT100 signal is conditioned to and read by a 10-bit ADC. Find the resolution in mV and in per count, and describe how the value reaches a 7-segment display. Guide: ; ; ADC word → BCD conversion → decoder → 7-segment segments a–g.
- 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
- (2m) State the truth table of a NAND gate for inputs 00, 01, 10, 11. (Ans: 1,1,1,0.)
- (2m) Why is a NOT gate obtained by tying the two inputs of a NAND together?
- (7m) Write the ladder rung for "lamp ON if either limit switch LS1 or LS2 is closed, but only when master enable is on".
- (7m) Convert to binary and to decimal. (Ans: , .)
- (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.