S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Similar documents
S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

Sample Test Paper - I

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques s complement 2 s complement 1 s complement

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques

Digital Electronics Circuits 2017

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER 14 EXAMINATION Model Answer

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

DE58/DC58 LOGIC DESIGN DEC 2014

Sequential vs. Combinational

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

LOGIC CIRCUITS. Basic Experiment and Design of Electronics


MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

SUMMER 18 EXAMINATION Subject Name: Principles of Digital Techniques Model Answer Subject Code:

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Dept. of ECE, CIT, Gubbi Page 1

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Vidyalankar S.E. Sem. III [INFT] Analog and Digital Circuits Prelim Question Paper Solution

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Design of Sequential Circuits

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Show that the dual of the exclusive-or is equal to its compliment. 7

Digital Circuits ECS 371

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

Synchronous Sequential Logic

DIGITAL LOGIC CIRCUITS

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Fundamentals of Boolean Algebra

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Digital Logic Appendix A

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

Philadelphia University Student Name: Student Number:

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

CHW 261: Logic Design

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Sequential Logic Circuits

Digital Electronics Final Examination. Part A

Chapter 4. Sequential Logic Circuits

CHAPTER 7. Exercises 17/ / /2 2 0

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

EET 310 Flip-Flops 11/17/2011 1

Digital Electronics. Part A

Gates and Flip-Flops

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

Vidyalankar. S.E. Sem. III [EXTC] Digital System Design. Q.1 Solve following : [20] Q.1(a) Explain the following decimals in gray code form

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

PGT104 Digital Electronics. PGT104 Digital Electronics

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

Analog & Digital Electronics Laboratory. Code - CS391. Lab Manual

Adders, subtractors comparators, multipliers and other ALU elements

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

Save from: cs. Logic design 1 st Class أستاذ المادة: د. عماد

EE 209 Logic Cumulative Exam Name:

per chip (approx) 1 SSI (Small Scale Integration) Up to 99

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

Chapter 2. Review of Digital Systems Design

Philadelphia University Student Name: Student Number:

CPE/EE 422/522. Chapter 1 - Review of Logic Design Fundamentals. Dr. Rhonda Kay Gaede UAH. 1.1 Combinational Logic

CHW 261: Logic Design

Digital Electronic Meters

Logic. Combinational. inputs. outputs. the result. system can

Digital Signal 2 N Most Significant Bit (MSB) Least. Bit (LSB)

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

PART-A. 2. Expand ASCII and BCD ASCII American Standard Code for Information Interchange BCD Binary Coded Decimal

Fundamentals of Digital Design

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Chapter 7 Logic Circuits

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

UNIT II COMBINATIONAL CIRCUITS:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Chapter #7: Sequential Logic Case Studies Contemporary Logic Design

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Digital Fundamentals

P2 (10 points): Given the circuit below, answer the following questions:

TYPICAL QUESTIONS & ANSWERS

Transcription:

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 100 Q.1(a) Attempt any SIX of the following : [12] Q.1(a) (i) Derive AND gate and OR gate using NAND gates only. [2] (A) OR Gate using NAND gates A B AND Gate Using NAND gates A B A AB Q.1(a) (ii) Define Duality theorem and give example. [2] (A) Theorem: Starting with a boolean relation, another boolean relation can be derived by (i) Changing each OR sign to an AND sign (ii) Changing each AND sign to an OR sign (iii) Complementing any 0 or 1 appearing in the expression Example: A.0 = 0 The dual relation is A = 1 = 1 B Y = A B = A + B Y = AB = A B Q.1(a) (iii) List any four Boolean laws. [2] (A) OR Laws AND Laws Associative Law Commutative Law Distributive Law A + 0 = A A. 1 = A (A. B) C = A. (B. C) A.B = B.A A.B + A.C = A(B + C) A + 1 = 1 A. 0 = 0 (A + B) + C = A + (B + C) A + B = B + A (A + B) (A + C) = A + BC A + A = A A. A = A A + A = 1 A. A = 0 1

: S.Y. Diploma DT Q.1(a) (iv) Define any two specifications of ADC. [2] (A) Analog input voltage This is the maximum allowable input voltage range. Input impedance Its value ranges from 1 K to 1 M depending upon the type of A/D converter. Input capacitance is in the range of tens of pf. Linearity It is conventionally equal to the deviation of the performance of the converter from a best straight line. Accuracy The accuracy of the A/D converter depends upon the accuracy of maximum deviation of the digital output from the ideal linear line. Monotoxicity In response to a continuously increasing input signal the output of an A/D converter should not at any point decrease or skip one or more codes. This is called the monotoxicity of A/D converter. Resolution It is define as the maximum number of digital output codes. This is same as that of a DAC Resolution = 2 n Resolution is defined as the ratio of change in the value of the input analog voltage V A; required to change the digital output by 1 LSB. vfs Resolution n 2 1 Conversion Time It is the total time required to convert the analog input signal into a corresponding digital output. Quantization Error This approximation process is called as quantization and the error due to the quantization process is called as quantization error. Q.1(a) (v) Draw the symbol and truth lable of AND and OR gate. [2] (A) AND OR A A X X B B A B X A B X 0 0 0 0 0 0 0 1 0 0 1 1 1 0 0 1 0 1 1 1 1 1 1 1 2

Prelim Question Paper Solution Q.1(a) (vi) Define with respect to digital ICs [2] (1) Propagation delay (2) Noise immunity (A) (1) Propagation delay (or speed of operation) Input Output 50 % 50 % t PHL The delay times are measured between the 50 % voltage levels of input and output waveforms. There are two delay times t PHL when output goes from High to Low t PLH when output goes from Low to High Propagation delay is average of above two delay times. (2) Noise immunity (or Noise margin) The input & output voltage levels defined above are shown in figure. Stray electric and magnetic fields may induce unwanted voltages, known as noise, on the connecting wires between logic circuits. This may cause the voltage at the input to a logic circuit to drop below V 1H or rise above V 1L and may produce undesired operation. The circuit s ability to tolerate noise signals is referred to as the noise immunity, a quantitative measure of which is called noise margin. There are two types of noise margins. (a) High level noise margin (NM H ) NM H = V 0H V 1H (b) Low level noise margin (NM L ) NM L = V 1L V 0L 1 state noise margin 0 state noise margin V 0H V 1H V 1L V 0L 0 Voltages V 0H V 1H V 1L V 0L t PLH 3

: S.Y. Diploma DT Q.1(a) (vii) Which are the universal gates? Why they called it? [2] (A) NAND and NOR gates are called as Universal gates. With the help of NAND and NOR gates only all basic logical operations can be constructed, hence they are called as universal gates. Q.1(a) (viii) Define any two specifications of DAC. [2] (A) (i) Resolution Resolution is defined as the ratio of change in analog output voltage resulting from a change of 1 LSB at the digital input VFSis defined as the full scale analog output voltage i.e. the analog output voltage when all the digital input with all digits 1. (ii) Accuracy Accuracy indicates how close the analog output voltage is to its theoretical value. It indicates the deviation of actual output from the theoretical value. Accuracy depends on the accuracy of the resistors used in the ladder, and the precision of the reference voltage used. Accuracy is always specified in terms of percentage of the full scale output that means maximum output voltage. (iii) Linearity The relation between the digital input and analog output should be linear. However practically it is not so due to the error in the values of resistors used for the resistive networks. (iv) Temperature sensitivity The analog output voltage of D to A converter should not change due to changes in temperature. But practically the output is a function of temperature. It is so because the resistance values and OPAMP parameters change with changes in temperature. (v) Settling time The time required to settle the analog output within the final value, after the change in digital input is called as settling time. The settling time should be as short as possible. (vi) Long term drift Long term drift are mainly due to resistor and semiconductor aging and can affect all the characteristics. Characteristics mainly affected are linearity, speed etc. 4

Prelim Question Paper Solution (vii) Supply rejection Supply rejection indicates the ability of DAC to maintain scale, linearity and other important characteristics when the supply voltage is varied. Supply rejection is usually specified as percentage of full scale change at or near full scale voltage at 25 e. (viii) Speed It is defined as the time needed to perform a conversion from digital to analog. It is also defined as the number of conversions that can be performed per second. Q.1(b) Attempt any TWO of the following : [8] Q.1(b) (i) Draw symbol and write truth table of 2 : 1 MUX. Also draw [4] the block diagram of 8 : 1 mux. (A) D 0 D 1 2 : 1 MUX S 0 Q.1(b) (ii) Convert the following: (1) (11001) 2 = (? ) 10 (2) (10101) 2 = (? ) 8 (3) (37) 8 = (? ) 2 (4) (5AC) = (? ) 2 (A) (1) (11001) 2 = (? ) 10 1 1 0 0 1 1 2 0 = 1 0 2 1 = 0 0 2 2 = 0 1 2 3 = 8 1 2 4 =16 25 D out S 0 D out 0 D 0 1 D 1 (11001) 2 = (25) 10 8 : 1 MUX (2) (10101) 2 = (? ) 8 The student may convert it to decimal first and then to octal or directly by forming groups of 3 bits starting from LSB. D 0 D 7 S 0 S 1 S 2 D out [4] 5

: S.Y. Diploma DT Method 1 (10101) 2 = (21) 10 = (25) (8) 8 21 5 2 Method 2 010 101 2 5 2 = (25) 8 OR (3) (37) 8 = (? ) 2 The student may write 3 bit equivalent binary for every octal digit to get the answer or convert the number to decimal first and then to binary. Method 1 3 7 0 1 1 1 1 1 Method 2 (3 7) 8 = (3 1) 10 = (11111) 2 (37) 8 = (011 111) 2 = (11111) 2 (4) (5AC) = (? ) 2 The student may convert the hexadecimal number to decimal first and then the obtained decimal to binary or form 4 bit binary groups equivalent of the hexadecimal digits to get the answer in binary directly. Method 1 (5 A C) 16 = (1452) 10 = (10110101100) 2 Method 2 5 A C 7 8 0 = 7 3 8 1 = 24 31 12 16 0 = 12 10 16 1 = 160 5 16 2 = 1280 1452 2 31 1 2 15 1 2 7 1 2 3 1 1 1 2 1452 0 2 726 0 2 363 1 2 181 1 2 90 0 2 45 1 2 22 0 2 11 1 2 5 1 2 2 0 1 6 0101 1010 1100 = (10110101100) 2

Prelim Question Paper Solution Q.1(b) (iii) Draw truth table of 3 inputs EX-OR gate. Draw its symbol. [4] Also give its output expression. (A) Q.2 Attempt any FOUR of the following : [16] Q.2(a) Draw logical symbol, truth table and logical expression for NAND [4] and NOR gate. (A) NAND Gate y = AB logical expression A B Y 0 0 1 0 1 1 1 0 1 1 1 0 NOR Gate y = A B logical expression A B Y 0 0 1 0 1 0 1 0 0 1 1 0 Output Expression: Q =A B C Symbol Symbol 7

: S.Y. Diploma DT Q.2(b) Perform the following binary operations. (i) 111.01 110 (ii) 11001 101 (A) (i) 111.01 110 111.01 110 00000 11101 11101 101011.10 Answer = 101011.1 (ii) 11001 101 101 101 11001 101 00101 101 000 Answer = 101 Q.2(c) For the given K-map in Figure, write minimized SOP expression and for the same draw NAND-NAND logic circuit. (A) CD CD CD CD AB 0 1 0 0 AB 1 1 1 0 AB 1 1 1 0 AB 0 0 1 0 CD CD CD CD AB 0 1 0 0 AB 1 1 1 0 AB 1 1 1 0 AB 0 0 1 0 ACD CD CD CD CD AB 0 1 0 0 AB 1 1 1 0 AB 1 1 1 0 AB 0 0 1 0 BD ACD [4] [4] 8 CB

Prelim Question Paper Solution Y BC ACD ACD BD A B C D A B C D Q.2(d) Simplify the following equation using k map and realize it using logic gates. Y= m(0, 1, 2, 3, 8, 10) + d(5, 7). (A) Y = (0, 1, 2, 3, 8, 10) + d(5, 7) AB AB AB AB CD 0 1 4 0 12 0 8 1 CD 1 1 5 X 13 0 9 0 CD 3 1 7 X 15 0 11 0 CD 2 1 6 0 14 0 10 1 Y = BD AD A A B B C D B.D y [4] 9

: S.Y. Diploma DT Q.2(e) Draw 16:1 MUX using 4:1 MUX [4] (A) Q.2(f) Perform the following substraction using 2's complement method. (1) (01000) 2 (01001) 2 (2) (01100) 2 (00011) 2 (A) [4] 10

Prelim Question Paper Solution Q.2(g) Design a full adder using half adder. [4] (A) Full Adder is a combinational circuit that performs the addition of three bits (two significant bits and previous carry). It consists of three inputs and two outputs, two inputs are the bits to be added, the third input represents the carry form the previous position A B Carry Input SUM CARRY OUT 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 A circuit which obeys this truth table is called a full adder. We can design a full adder by linking together two half adder circuits: 11

: S.Y. Diploma DT Thus, we can implement a full adder circuit with the help of two half adder circuits. The first will half adder will be used to add A and B to produce a partial Sum. The second half adder logic can be used to add CIN to the Sum produced by the first half adder to get the final S output. If any of the half adder logic produces a carry, there will be an output carry. Thus, COUT will be an OR function of the half-adder Carry outputs. Q.3 Attempt any FOUR of the following : [16] Q.3(a) Convert the expression Y = AB + AC BC into the standard SOP [4] form. (A) Y = AB C C AC B B BC A A = ABC ABC ABC ABC ABC ABC = ABC ABC ABC ABC ABC AB C But A + A = A (ABC + ABC) = ABC and ABC ABC = ABC Y = ABC ABC ABC ABC Standard SOP form Q.3(b) Draw logic diagram of 1:4 demultiplexers. Write truth table of it. [4] (A) D in is connected to Y 0 when S 1 S 0 = 00, it is connected to Y 1 when S 1 S 0 = 01 and so on. The other outputs will remain zero. The enable input needs to be high in order to enable the demux. If E= 0 then all the outputs will be low irrespective of everything. 12

Prelim Question Paper Solution Inputs Outputs E D in S 1 S 0 Y 0 Y 1 Y 2 Y 3 1 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 1 0 1 0 1 1 0 0 0 0 1 1 1 1 0 0 0 1 Implementation : The 1 : 4 Demux is implemented as shown in figure. D in (Input) E Enable Y 0 is connected to D in Y 1 is connected to D Y 2 is connected to D in Y 3 is connected to D in Q.3(c) Reduce the given logic expression using Boolean laws and draw NAND logic circuit. Y A A B A B (A) Y A A B A B A B (A A) A B A A 1 A A A B A B [4] B B 13

: S.Y. Diploma DT Q.3(d) For the given K-Map in figure, write the POS expression and draw NOR-NOR logic circuit for same. [4] (A) AB CD POS Expression y (A C D) (A B D) (A C) A B C D A B C D Q.3(e) Minimize the following equation using k map. (i) Y = m(0, 1, 2, 4, 5, 6) (ii) Y = m(0, 2, 4, 5). (A) (i) Y = m(0, 1, 2, 4, 5, 6) Y = m (0, 1, 2, 4, 5, 6) 00 01 11 10 CD CD CD CD 00 AB 0 1 1 1 01 AB 0 0 0 1 11 AB 1 1 0 0 10 AB 1 1 0 0 A C D A C A B D (A + C + D) (A B C) A C [4] 14

BC A Y = B C BC B C BC B C A 1 1 0 1 A 1 1 0 1 B (ii) Y = m (0, 2, 4, 5) Y = m (0, 2, 4, 5) BC A BC B C BC B C A 0 1 1 0 A 0 0 1 1 A B Y = (A + C) A B Prelim Question Paper Solution Q.3(f) Explain working of PIPO with neat logic diagram and timing diagram. [4] (A) C. (A + C) Working In Parallel out Shift register, the data bits are entered simultaneously into their respective stages on parallel lines. The output data bits are also available on parallel lines. Immediately following the simultaneous entry of all data bits, the bits appear in the parallel outputs. 15

: S.Y. Diploma DT Truth Table Inputs Outputs ABCD QA QB QC QD 1111 1 1 1 1 Timing diagram Input D C B A = 1111 Q.3(g) Obtain an 1 : 8 demultiplexer using 1 : 4 demultiplexer. [4] (A) 16

Prelim Question Paper Solution Q.3(h) Explain the functions of 'preset' and 'clear' inputs in flip-flops. [4] (A) The normal data inputs to a flip flop (D, S and R, or J and K) are referred to as synchronous inputs because they have effect on the outputs (Q and not Q) only in step, or in sync, with the clock signal transitions. These extra inputs are called asynchronous because they can set or reset the flip-flop regardless of the status of the clock signal. Typically, they are called preset and clear: When the preset input is activated, the flip-flop will be set (Q=1, not-q=0) regardless of any of the synchronous inputs or the clock. When the clear input is activated, the flip-flop will be reset (Q=0, not-q=1), regardless of any of the synchronous inputs or the clock. So, what happens if both preset and clear inputs are activated? we get an invalid state on the output. Asynchronous inputs, just like synchronous inputs, can be engineered to be active-high or active low. If they re active-low, there will be an inverting bubble at that input lead on the block symbol, just like the negative edge-trigger clock inputs. 17

: S.Y. Diploma DT Sometimes the designations PRE and CLR will be shown with inversion bars above them, to further denote the negative logic of these inputs: Inputs CLK PR CLR OUTPUT Operation performed 1 1 1 Qn+1 Normal JKFF X 0 1 1 FF is set X 1 0 0 FF is reset Q.4 Attempt any FOUR of the following : [16] Q.4(a) Classify the memories and explain ROM. [4] (A) [Correct classification of memories in other form may also be considered] Read only Memory (ROM) ROM is used to store information permanently. The data stored in ROM can be read or recalled for use in digital devices. ROM is nonvolatile memory i.e. the information once stored remains intact. 18

Prelim Question Paper Solution Q.4(b) State any four specifications of A to D converter. [4] (A) Analog input voltage: This is the maximum allowable input voltage range, 0 10 V, ± 5 V,± 10 V, and so on. Input Impedance: Its value ranges from 1 k to 1 M depending upon the type of A/D converter. Input capacitance is in the range of tens of pf. Stability : The temperature dependence. Even if analog input is kept constant, the digital output may change with temperature. This is called stability. It is expressed as % error per degree rise in temperature. Resolution : Is define as the maximum number of digital output code. This is same as that of a DAC. Resolution = 2 Resolution is defined as the ratio of change in the value of the input analog voltage V A, required to change the digital output by 1 LSB. VFS Resolution = n 2 1 Conversion Time It is the total time required to convert the analog input signal into a corresponding digital output. As we know the conversion time depends on the conversion technique used for an ADC. The conversion time is also dependent on the propagation delays introduced by the circuit components. Conversion time should ideally be zero and practically be as small as possible. Quantization Error As shown in the figure the digital output is not always the accurate representation of the analog input. For example any input voltage between 1/8 to 2/8 of full scale will be converted to a digital word of 001. This approximation process is called as quantization and the error due to the quantization process is called as quantization error. 1 The maximum value of quantization error is LBS. 2 The quantization error should be as small as possible. It can be reduce by increasing the number of bits. The increase in number of bits will also improve the resolution. 19

: S.Y. Diploma DT Q.4(c) Construct D-flip flop using R-S flip flop and explain it s working along with truth table. (A) Working : The SR flip flop can be converted into D flip flop by simply the addition of an inverter. This flip flop has only one input that is D input. The output Q will go to the same state that is present on the D input when negative edge of clock occurs. The output Q n+1 at the end of the clock pulse equal the input D n. hence we can say that the input data appears at the output at the end of the clock pulse. Thus the transfer of data from input to the output delayed and hence the name delay (D) flip flop. [4] 20

Truth Table for a D type Flip flop Input D n Output Q n+1 0 0 1 1 Prelim Question Paper Solution Q.4(d) Describe working of RS ff using NAND gates only. [4] (A) The clocked SR flip flop is an edge triggered SR flip flop. It can be of two types. (i) Positive edge triggered (ii) Negative edge triggered. Positive edge triggered SR Flip Flop: Basic SR Latch Clocked S R Flip flop (Positive edge triggered) The positive edge triggered S-R flip Flop. It is also called as clocked SR FF. This circuit will operate as an SR flip flop only for the positive clock edge but there is no change in output id clock=0 or even for the negative going clock edge. Operation : Case I: S = X, R = X, clock = 0 Since clock = 0, the outputs of NAND gates 3 and 4 will be forced to be 1 irrespective of the values of S and R. that means R'= S'= 1 these are the inputs of the latch. Hence the outputs of basic SR F/F i.e. Q and Q will not change in the output of the clocked SR flip flop Case II: S = X, R = X, clock = 1 (high level) As this flip flop does respond not respond to levels applied at the clock input, the outputs Q and Q will not change. So Q n+1 = Q n and Q Q Case III: S = R = 0 : No Change If S = R = 0 then outputs of NAND gates 3 and 4 are force to become 1. Hence R' and S' both will be equal to 1. Since S' and R' are the inputs of the basic S-R flip flop using NAND gates, there will be no change in the state of outputs. n 1 n 21

: S.Y. Diploma DT Case IV: S = 0 R = 1, clock Now S = 0, R = 1 and a positive edge is applied to the clock input. Since S = 0, output of NAND-3 i.e. R =1. And as R = 1 and clock =1 the output of NAND-4 i.e. S = 0. Hence Q = 0 and Q = 1. This is the n 1 n 1 reset condition. Case V: S = 1 R = 0, clock = Now S = 1, R = 0 and a positive going edge is applied to the clock input. Output of NAND 3 i.e. R' = 0 and output of NAND 4 i.e. S' = 1 Hence output of SR flip flop is Q n+1 = 1 and Q = 0 n 1 This is the reset condition. Case VI: S = 1 R = 1, clock = As S = 1, R = 1 and clock = 1, the outputs of NAND gates 3 and 4 both are 0. i.e. S'= R' = 0. Hence the "Race" condition will occur in the basic SR flip-flop. The symbol of positive edge triggered SR flip flop is as shown in figure and the truth table. Inputs Outputs CLK S R Q n + 1 Q n 1 Remark 0 X X Q n Q n 1 No change (NC) 1 X X Q n Q n No change (NC) X X Q n Q n No change (NC) 0 0 Q n Q n No change (NC) 0 1 0 1 Reset 1 0 1 0 Set 1 1 Race Race Avoid = Negative edge of clock, = Positive edge of clock Note that for clock input to be at negative or positive levels as the edge triggered flip flop does not respond. Similarly it does not respond to negative edge of the clock. 22

Prelim Question Paper Solution The flip flop will respond only to the positive edge of clock. With positive edge of the clock, the SR flip flop behaves in the following way: S = R = 0 No change in output S = 0, R = 1 Q n+1 = 0, Q 1 Reset condition S = 1, R = 0 Q n+1 = 1, Q 0 Set condition S = R = 1 n 1 n 1 Race condition. Negative Edge Triggered S-R Flip Flop: The internal circuit (with NAND gates) of the negative edge triggered S-R flip flop is exactly same as that for the positive edge triggered one. The differentiator circuit is slightly modified in order to enable the flip flop for the negative (falling) edges of the clock input. The circuit symbol of the negative edge triggered S-R flip flop and its truth table. CLK S Q R Q (C 590) Fig. : Circuit symbol of negative edge triggered SR FF = Positive edge of clock = Negative edge of clock 23

: S.Y. Diploma DT Q.4(e) Draw and explain D flip-flop using SR flip-flop. Also draw truth [4] table. (A) Due to Inverter S and R will always be the complements of each other hence S=R=0 or S=R=1 conditions never appear. D S R Qn+1 Qn+1 0 0 1 0 1 1 1 0 1 0 Q.4(f) Draw neat circuit diagram of clocked JK flip-flop using NAND gates. Give its truth table and explain race around condition. (A) [4] 24

Prelim Question Paper Solution Race around condition: When JK flip flop when the value of J and K =1 and at the same time value of clock is 1, so according to the truth table of J=k=1 the value of output should be toggled so the value keep on changing till the change in the clock pulse which is not acceptable. Elimination of Race around Condition: Race around condition can be avoided using Master Slave Flip flop & by using Edge Triggered Flip Flop. Q.5 Attempt any FOUR of the following : [16] Q.5(a) Draw the logic diagram of D type flip flop using NAND gates. [4] Write its truth table. (A) D (Input) Truth table Input (D n ) Output Q 0 1 1 0 Q.5(b) Draw Master- slave J-K flip-flop and explain it s working. [4] (A) Master Slave JK FF 25

: S.Y. Diploma DT Truth Table : Case I: Clock = x, J=K=0 For clock=1 the master is active, slave in active. As J=K=0.Therefore Output of master i.e. Q 1 and will not change. Hence the S and R inputs to the slave will remain unchanged. As soon as clock = 0, the slave becomes active and master is inactive. But since the S and R inputs have not change the slave outputs will also remain unchanged. Therefore the output will not change if J=K=0 Case II: clock =, J = K = 0 This condition has been already discussed in case I. Case III: Clock=, J = 0 and K = 1 Clock = 1: Master active, slave inactive. Output of the master become Q 1 = 0 and Q = 1.That means S=0 and R = 1 1 Clock = 0 slave active master inactive Outputs of the slave become Q = 0 and Q =1 1 Again if clock=1: master active, slave inactive. Even with the change output Q=0 and Q 1 = 1 fed back to master, its outputs will Q 1 = 0 and Q = 1 that means S = 0 and R = 1. 1 Hence with clock = 0 and slave becoming active, the outputs of slave will remain Q = 0 and Q 1. Thus we get a stable output from the Master Slave. Case IV: CLK=, J=1, K=0 Clock =1 master active, slave inactive Outputs of master become Q 1 = 1 and Q = 0 i.e. S=1, 1 26

R = 0 Clock = 0: master inactive slave active. Prelim Question Paper Solution Outputs of slave become Q = 1 and Q = 0. 1 Again if clock=1 then it can be shown that the outputs of the slave are stabilized to Q = 1 and Q 0. 1 Case V : CLK : =, J = 1, K = 1 Clock =1: master will be active, slave inactive. Outputs of master will toggle so S and R also will be inverted. Clock=0: master inactive, slave active Outputs of the slave will toggle. These changed outputs are returned back to the master inputs. But since clock = 0, the master is still inactive. So it does not respond to these changed outputs. This avoids the multiple toggling which leads to the race around condition. Thus the master slave flip flop will avoid the race around condition. Q.5(c) Define Modulus of counter. Determine number of flip flops to be [4] used in MOD-21 counter. (A) Modulus of a counter is the no. of different states through which the counter progress during its operation. It indicates the no. of states in the counter, pulses to be counted are applied to counter. The circuit comes back to its starting state after counting N pluses in the case of modulus N counter. In general, m number of flip-flops are required to construct MOD-n counter, where n <=2 m MOD n Counter = 2 m where m is no. of flip flops and n is the no. of counters. MOD 21 = 2 m Hence m = 5 (5 flip flops are required for MOD 21) MOD n counter Number of flip flops(m) 21 5 Q.5(d) Compare combinational logic circuit and sequential logic circuit. (any [4] 4 points) (A) Combinational logic Sequential logic (i) The combinational logic circuit consists of logic gate only. Sequential logic circuit consists of combinational logic circuit along with memory for storage of information. 27

: S.Y. Diploma DT (ii) It operation depend upon present input and does not required history of inputs. (iii) Easy to design due to lack of memory. (iv) Faster in speed as all inputs are primary inputs are applies simultaneously. (v) Examples Encoders, decoders, multiplexer, demultiplexer etc. It operation depend upon present input as well as last state of input and output which are stored in memory. Difficult to design due to presence of memory. Slower in speed because of secondary Inputs. Examples counters, shift registers flip-flop etc. Q.5(e) Describe block diagram of digital comparator and write truth table [4] of 2 bit comparator. (A) Digital comparator is a combinational circuit which compares two numbers, A and B; and evaluates their relative magnitudes. The outcome of the comparison is given by three binary variables which indicate whether. A = B or A > B or A < B. Depending on the result of comparison one of these outputs will go high. Inputs Outputs A 1 A 0 B 1 B 0 A > B A = B A < B 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 1 0 0 1 0 1 0 0 1 0 0 28

0 1 0 1 0 1 0 0 1 1 0 0 0 1 0 1 1 1 0 0 1 1 0 0 0 1 0 0 1 0 0 1 1 0 0 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 1 0 0 1 0 0 1 1 0 1 1 0 0 1 1 1 0 1 0 0 1 1 0 1 0 1 0 Prelim Question Paper Solution Q.5(f) List different types of flip-flop. Draw the diagram of master Slave JK flip-flop. (A) Types of Flip-Flops RS flip-flop JK flip-flop D flip-flop T flip-flop Circuit Diagram Fig: Master Slave JK Q.5(g) Draw the diagram of serial in parallel out (SIPO) shift register. [4] Also draw timing diagram. (A) A serial-in/parallel-out shift register is similar to the serial-in/ serial-out shift register in that it shifts data into internal storage elements and shifts data out at the serial-out, data-out, pin. It is different in that it makes all the internal stages available as outputs. Therefore, a serial-in/parallel-out shift register converts data from serial format to parallel format. If four data bits are shifted in by four clock pulses via a single wire at data-in, below, the data becomes available simultaneously on the four outputs QA to QD after the fourth clock pulse. [4] 29

: S.Y. Diploma DT Figure: Serial in parallel Figure: Timing Diagram Q.5(h) State different applications of flip flops. [4] (A) Applications of flip flop Bounce elimination of key Memory Registers Counters Delay element Q.5(i) Draw and explain SISO with truth table and timing diagram. [4] (A) Serial in Serial out Shift Register (SISO), type of shift register accepts data serially, one bit at a time at the single input line, and shifted to next flip flop serially. The output is also obtained on a single output line in a same serial fashion. A shift right register can be constructed with either J-K or D flip flops as shown in below. 30

Prelim Question Paper Solution Shift-right register using J-K flip-flops As shown in figure J-K flip flop based shift register requires connection of both J and K inputs. Input data are connected to the J and K inputs of the left most (lowest order) flip flop of flip flop chain. And all flip flops are connected in serially. For a JK flip flop output is followed whatever the input of J and the both the input are complimentary. Let take an example to input a 0, one should apply a 0 at the J input, i.e., J = 0 and K = 1 and vice versa. With the application of a clock pulse the data will be shifted by one bit to the right. In this way the first data will store at Flip flop A then in next clock pulse the date of A flip flop is shifted to filp flop B in that way. Finally the serial output will appear from flip flop D. For example, consider that all the stages are reset and a logical input 1011 is applied at the serial input line connected to stage A. the table given below shows how the data is shifted from one flip flop to other and finally get the output from D flip flop. After fourth clock pulse we will get first input after next three clock pulse the complete input (1011) which we feed at flip flop A will out from flip flop D. Now in bellow see the waveform of 4 bit serial shift register. After fourth clock pulse we will get first input after next three clock pulse the complete input (1011) which we feed at flip flop A will out from flip flop D. Now in bellow see the waveform of 4 bit serial shift register. 31

: S.Y. Diploma DT Q.6 Attempt any TWO of the following : [16] Q.6(a) (i) Draw the circuit diagram of successive approximation type A to [8] D converter and describe its working. (ii) A D to A converter has a full scale analog output of 12V with 4 bit binary inputs. Find the voltage corresponding to each analog step. (A) (i) Block Diagram 32

Prelim Question Paper Solution Working The comparator serves the function of the scale, the output of which is used for setting/ resetting the bits at the output of the programmer. This output is converted into equivalent analog voltage from which offset is subtracted and then applied to the inverting input terminal of the comparator. The outputs of the programmer will change only when the clock pulse is present. To start the conversion, the programmer sets the MSB to 1 and all other bits to 0. This is converted into analog voltage by the DAC and the comparator compares it with the analog input voltage. If the analog input voltage Va >= Vi, the output voltage of the comparator is HIGH, which sets the next bit also. On the other hand if Va <= Vi. Then the output of the comparator is LOW which resets the MSB and sets the next bit. Thus a 1 is tried in each bit of DAC until the binary equivalent of analog input voltage is obtained. (ii) Formula Full scale analog output V o = n 2-1 12 = = 12 = 0.8 4 2 1 15 Inputs Output D C B A V O in Volts 0 0 0 0 0 0 0 0 1 0.8 0 0 1 0 1.6 0 0 1 1 2.4 0 1 0 0 3.2 0 1 0 1 4 0 1 1 0 4.8 0 1 1 1 5.6 1 0 0 0 6.4 1 0 0 1 7.2 1 0 1 0 8 1 0 1 1 8.8 1 1 0 0 9.6 1 1 0 1 10.4 1 1 1 0 11.2 1 1 1 1 12 33

: S.Y. Diploma DT Q.6(b) (i) List four applications of flip flops. [8] (ii) Compare synchronous and asynchronous counter on any two points. (iii) Convert JK- flip flop in to T-flip flop. Write it s truth table and explain. (A) (i) Applications of flip flops (1) Elimination of keyboard debounce. (2) As a memory elements. (3) In various types of registers. (4) In counters/timers. (5) As a delay elements (ii) Asynchronous Counter Synchronous Counter 1) In an Asynchronous Counter the In a Synchronous Counter all the output of one Flip Flop acts as the Flip Flop s are Connected to a clock Input of the next Flip Flop. common clock signal. 2) Speed is Low. Speed is High. 3) Only J K or T Flip Flop can be usedsynchronous Counter can be to construct Asynchronous designed using JK, RS, T and D Counter. FlipFlop. 4) Problem of Glitch arises Problem of Lockout 5) Only serial count either up or Random and serial counting is down is possible. possible. 6) Settling time is more Settling time is less 7) Also called as serial counter Also called as Parallel Counter 8) (iii) Truth Table for Conversion : Inputs Outputs T Present state of Q Next state of Q J K 0 0 0 0 X 1 0 1 1 X 1 1 0 X 1 0 1 1 X 0 Excitation table of T FF Excitation table of JK FF 34

Prelim Question Paper Solution K map and simplification : For J output For K output Q n T 0 1 0 0 X 1 1 X J = T (a) K map for J output Logic Diagram : T (input) CLK K = T (b) K map for K outputs Q.6(c) (i) Convert the following SOP equation into standard SOP equation. Y = AB AB ABC (A) Y = AB AB ABC Y = AB(C C) AB(C C) ABC Y = ABC ABC ABC ABC ABC Q.6(c) (ii) List any four applications of multiplexer and implement the following logic expression using 16:1 MUX. Y = m(0, 3, 5, 6, 7, 10, 13). (A) Applications: 1) Digital computer 2) Microprocessor 3) Data converters 4) Digital systems Q n T 0 1 0 X 0 1 X 1 Conversion logic J K Given JK F/F Q Q T Flipflop Outputs [8] [8] 35

: S.Y. Diploma DT Expression using 16:1 MUX Y = m(0, 3, 5, 6, 7, 10, 13) +V CC 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 : 1 MUX S 3 S 2 S 1 S 0 Q.6(d) Draw block diagram and truth table of 1:4 demultiplexer. [8] (A) 1-to-4 Demultiplexer has a single input (D), two selection lines (S1 and S0) and four outputs (Y0 to Y3). The input data goes to any one of the four outputs at a given time for a particular combination of select lines. The block diagram of 1:4 DEMUX is shown below. y 36

Prelim Question Paper Solution The truth table of this type of demultiplexer is given below. From the truth table it is clear that, when S1=0 and S0= 0, the data input is connected to output Y0 and when S1= 0 and s0=1, then the data input is connected to output Y1. Similarly, other outputs are connected to the input for other two combinations of select lines. Q.6(e) (i) With suitable diagram describe successive approximation ADC. [4] (A) Successive approximation register The comparator serves the function of the scale, the output of which is used for setting /resetting the bits at the output of the programmer. This output is converted into equivalent analog voltage from which offset is subtracted and then applied to the inverting input terminal of the 37

: S.Y. Diploma DT comparator. The outputs of the programmer will change only when the clock pulse is present. To start the conversion, the programmer sets the MSB to 1 and all other bits to O. This is converted into analog voltage by the DAC and the comparator compares it with the analog input voltage. If the analog input voltage Va>= Vi, the output voltage of the comparator is HIGH, which sets the next bit also. On the other hand if Va<=Vi, Then the output of the comparator is LOW which resets the MSB and sets the next bit. Thus a 1 is tried in each bit of DAC until the binary equivalent of analog input voltage is obtained. Q.6(e) (ii) List any four specifications of ADC. [4] (A) Analog input voltage Input impedance Linearity Accuracy: Monotoxicity Resolution Conversion Time Quantization Error OR Analog input voltage: This is the maximum allowable input voltage range Input impedance: Its value ranges from 1 kω to 1 MΩ depending upon the type of A/D converter. Input capacitance is in the range of tens of pf. Linearity: is conventionally equal to the deviation of the performance of the converter from a best straight line. Accuracy: the accuracy of the A/D converter depends upon the accuracy of maximum deviation of the digital output from the ideal linear line. Monotoxicity: In response to a continuously increasing input signal the output of an A/D converter should not at any point decrease or skip one or more codes. This is called the monotoxicity of A/D converter. Resolution is define as the maximum number of digital output codes. This is same as that of a DAC Resolution= 2n Resolution is defined as the ratio of change in the value of the input analog voltage VA, required to change the digital output by 1 LSB. 38

Prelim Question Paper Solution Conversion Time: It is the total time required to convert the analog input signal into a corresponding digital output. Quantization Error: This approximation process is called as quantization and the error due to the quantization process is called as quantization error. 39