Analogue Versus Digital [5 M]

Similar documents
MODULE 3. Combinational & Sequential logic

WINTER 15 EXAMINATION Model Answer

Module -5 Sequential Logic Design

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

IT T35 Digital system desigm y - ii /s - iii

Logic Design Viva Question Bank Compiled By Channveer Patil

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Vignana Bharathi Institute of Technology UNIT 4 DLD

Decade Counters Mod-5 counter: Decade Counter:

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Counter dan Register

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Chapter 4. Logic Design

Sequential Logic Basics

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

St. MARTIN S ENGINEERING COLLEGE

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

1. Convert the decimal number to binary, octal, and hexadecimal.

UNIT IV. Sequential circuit

Laboratory Objectives and outcomes for Digital Design Lab

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

WINTER 14 EXAMINATION

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

TYPICAL QUESTIONS & ANSWERS

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

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

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

AIM: To study and verify the truth table of logic gates

VU Mobile Powered by S NO Group

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Subject : EE6301 DIGITAL LOGIC CIRCUITS

Computer Architecture and Organization

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

Introduction. Serial In - Serial Out Shift Registers (SISO)

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

Asynchronous (Ripple) Counters

Helping Material of CS302

CS302 Glossary. address : The location of a given storage cell or group of cells in a memory; a unique memory location containing one byte.

MC9211 Computer Organization

BISHOP ANSTEY HIGH SCHOOL & TRINITY COLLEGE EAST SIXTH FORM CXC CAPE PHYSICS, UNIT 2 Ms. S. S. CALBIO NOTES lesson #39

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Dev Bhoomi Institute Of Technology PRACTICAL INSTRUCTION SHEET EXPERIMENT NO. ISSUE NO. : ISSUE DATE: REV. NO. : REV. DATE : PAGE:

Contents Circuits... 1

Semester 6 DIGITAL ELECTRONICS- core subject -10 Credit-4

CS302 - Digital Logic Design FAQs By

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

DIGITAL ELECTRONICS LAB MANUAL FOR 2/4 B.Tech (ECE) COURSE CODE: EC-252

Logic Design II (17.342) Spring Lecture Outline

DIGITAL ELECTRONICS MCQs

ME 515 Mechatronics. Introduction to Digital Electronics

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Department of Computer Science and Engineering Question Bank- Even Semester:

Introduction to Digital Electronics

DepartmentofElectronicEngineering NEDUniversity ofengineering &Technology LABORATORY WORKBOOK DIGITAL LOGIC DESIGN (TC-201)

Experiment 8 Introduction to Latches and Flip-Flops and registers

CHAPTER 4: Logic Circuits

2. Counter Stages or Bits output bits least significant bit (LSB) most significant bit (MSB) 3. Frequency Division 4. Asynchronous Counters

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

Unit-5 Sequential Circuits - 1

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad ELECTRICAL AND ELECTRONICS ENGINEERING

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Chapter 3: Sequential Logic Systems

Principles of Computer Architecture. Appendix A: Digital Logic

Scanned by CamScanner

SEMESTER ONE EXAMINATIONS 2002

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous)

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Counters

EECS 270 Midterm 2 Exam Closed book portion Fall 2014

EKT 121/4 ELEKTRONIK DIGIT 1

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Chapter 5 Flip-Flops and Related Devices

Engineering College. Electrical Engineering Department. Digital Electronics Lab

UNIVERSITI TEKNOLOGI MALAYSIA

RS flip-flop using NOR gate

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

PURBANCHAL UNIVERSITY

CHAPTER 1 LATCHES & FLIP-FLOPS

Page No.1. CS302 Digital Logic & Design_ Muhammad Ishfaq

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics


B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

RAO PAHALD SINGH GROUP OF INSTITUTIONS BALANA(MOHINDER GARH)123029

Transcription:

Q.1 a. Analogue Versus Digital [5 M] There are two basic ways of representing the numerical values of the various physical quantities with which we constantly deal in our day-to-day lives. One of the ways, referred to as analogue, is to express the numerical value of the quantity as a continuous range of values between the two expected extreme values. For example, the temperature of an oven settable anywhere from 0 to 100 C may be measured to be 65 C or 64.96 C or 64.958 C or even 64.9579 C and so on, depending upon the accuracy of the measuring instrument. Similarly, voltage across a certain component in an electronic circuit may be measured as 6.5 V or 6.49 V or 6.487 V or 6.4869 V. The underlying concept in this mode of representation is that variation in the numerical value of the quantity is continuous and could have any of the infinite theoretically possible values between the two extremes. The other possible way, referred to as digital, represents the numerical value of the quantity in steps of discrete values. The numerical values are mostly represented using binary numbers. For example, the temperature of the oven may be represented in steps of 1 C as 64 C, 65 C, 66 C and so on. To summarize, while an analogue representation gives a continuous output, a digital representation produces a discrete output. Analogue systems contain devices that process or work on various physical quantities represented in analogue form. Digital systems contain devices that process the physical quantities represented in digital form. *5 points difference Q.1.b. [5 M] Let us find the binary equivalent of (17E.F6) 16 Solution The given hex number = (17E.F6) 16 The binary equivalent = (0001 0111 1110.1111 0110) 2 = (000101111110.11110110) 2 = (101111110.1111011) 2 The 0s on the extreme left of the integer part and on the extreme right of the fractional part have been omitted. The given binary number = (110010100011.10100101) 2 = make a group of 4 digits CA3.A5 Q.1. c. Decimal-to-Binary Conversion (125.50) =(1111101.1) 2 [3 M] divide by 2 method

(110001)2 = (49 [2 M] Q.1.d. i)the binary equivalent of decimal 13 I [1 M] Binary Gray conversion Binary 1101 Gray 1- - - Binary 1101 Gray 10 - - Binary 1101 Gray 101 Binary 1101 Gray 1011 (ii) Gray binary conversion [1 M] Gray 1111 Binary 1- - - Gray 1111 Binary 10- - Gray 1111 Binary 101- Gray 1111 Binary 1010 iii) 1F5 [1 M] iv) (14765) 8 [1 M] v) (682) 10 [1 M] Q.1.e Error Detection and Correction Codes [5 M] When we talk about digital systems, be it a digital computer or a digital communication set-up, the issue of error detection and correction is of great practical significance. Errors creep into the bit stream owing to noise or other impairments during the course of its transmission from the transmitter to the receiver. Any such error, if not detected and subsequently corrected, can be disastrous, as digital systems are sensitive to errors and tend to malfunction if the bit error rate is more than a certain threshold level. Error detection and correction, as we will see below, involves the addition of extra bits, called check bits, to the information-carrying bit stream to give the resulting bit sequence a unique characteristic that helps in detection and localization of errors. These additional bits are also called redundant bits as they do not carry any information. While the addition of redundant bits helps in achieving the goal of making transmission of information from one place to another error free or reliable, it also makes it inefficient. In this section, we will examine some common error detection and correction codes. Parity Code A parity bit is an extra bit added to a string of data bits in order to detect any error that might have crept into it while it was being stored or processed and moved from one place to another in a digital system. We have an even parity, where the added bit is such that the total number of ls in the data bit string becomes even, and an odd parity, where the added bit makes the total number of ls in the data bit string odd.

Repetition Code The repetition code makes use of repetitive transmission of each data bit in the bit stream. In the case of threefold repetition, 1 and 0 would be transmitted as 111 and 000 respectively. If, in the received data bit stream, bits are examined in groups of three bits, the occurrence of an error can be detected. Cyclic Redundancy Check Code Cyclic redundancy check (CRC) codes provide a reasonably high level of protection at low redundancy level. The cycle code for a given data word is generated as follows. The data word is first appended by a number of 0s equal to the number of check bits to be added. This new data bit sequence is then divided by a special binary word whose length equals n+1, n being the number of check bits to be added. The remainder obtained as a result of modulo-2 division is then added to the dividend sequence to get the cyclic code. The code word so generated is completely divisible by the divisor used in the generation of the code. Thus, when the received code word is again divided by the same divisor, an error-free reception should lead to an all 0 remainder. A nonzero remainder is indicative of the presence of errors. Hamming Code Definition Q.1.f. i) 10110011 addition [2 M] ii) 1010 subtraction [3 M] Q.2.a EXCLUSIVE-NOR (commonly written as EX-NOR) means NOT of EX-OR, i.e. the logic gate that we get by complementing the output of an EX-OR gate. Figure below shows its circuit symbol along with its truth table. The truth table of an EX-NOR gate is obtained from the truth table of an EX-OR gate by complementing the output entries. Logically, Y= A B = A B+A B [1M] Symbol of Ex Nor gate [1M] True table [1 M]

A B Y 0 0 1 1 0 1 0 1 1 0 0 1 Circuit diagram using basic gates and NANAD gate. [2 M] Q.2.b. 4 input AND GATE symbol and output equation [2 M] Y =A.B.C.D Waveform with A and B as input waveform and Y as output [3 M] Q.2.c Can prove using Boolean law as well as using truthtable method. [5 M] Every step [1 M] e.g assume that A=1 and B =0 A+A B+AB =A+B 1+0.0+1.1=1 A+B=1+0=1 All four possibilities will get Q.2.d Write 3 variable SOP k map [1 M] Reduce map [2 M] Y=AC +BC Draw circuit diagram using NAND gate [2 M]

Q.2.e Octat = B Pair = A +C +D Y= (B ). (A +C +D ) [3M] circuit diagram using NOR gates [ 2M] Q.2.f SOP using Quad (0,1,2,3)=A B Pair (6,14)=BCD Pair (12,13)=ABC Y =A B +BCD +ABC [3M] circuit diagram using basic gates [ 2M] Q.3.a. 1. Define half adder 2. A half-adder is an arithmetic circuit block that can be used to add two bits. Such a circuit thus has two inputs that represent the two bits to be added and two outputs, with one producing the SUM output and the other producing the CARRY. Figure 7.4 shows the truth table of a half-adder, showing all possible input combinations and the corresponding outputs. The Boolean expressions for the SUM and CARRY outputs are given by the equations SUM S = A B + A B CARRY C = A B Reduce the 3 variable k map for Y=A B+AB Reduce the 3 variable k map for Y= AB [1M] [1M] [1M]

[ 2M] Q.3.b Adder Subtractor Subtraction of two binary numbers can be accomplished by adding 2 s complement of the subtrahend to the minuend and disregarding the final carry, if any. If the MSB bit in the result of addition is 246 Digital Electronics Four-bit adder-subtractor. [3M] a 0, then the result of addition is the correct answer. If the MSB bit is a 1, this implies that the answer has a negative sign. The true magnitude in this case is given by 2 s complement of the result of addition. Full adders can be used to perform subtraction provided we have the necessary additional hardware to generate 2 s complement of the subtrahend and disregard the final carry or overflow. Figure 7.19 shows one such hardware arrangement. Let us see how it can be used to perform subtraction of two four-bit binary numbers. A close look at the diagram would reveal that it is the hardware arrangement for a four-bit binary adder, with the exception that the bits of one of the binary numbers are fed through controlled inverters. The control input here is referred to as the SUB input. When the SUB input is in logic 0 state, the four bits of the binary number (B 3 B 2 B 1 B 0 are passed on as such to the B inputs of the corresponding full adders. The outputs of the full adders in this case give the result of addition of the two numbers. When the SUB input is in logic 1 state, four bits of one of the numbers, (B 3 B 2 B 1 B 0 in the present case, get complemented. If the same 1 is also fed to the CARRY-IN of the LSB full adder, what we finally achieve is the addition of 2 s complement and not 1 s complement. Thus, in the adder arrangement of Fig. 7.19, we are basically adding 2 s complement of (B 3 B 2 B 1 B 0 to (A 3 A 2 A 1 A 0. The outputs of the full adders in this case give the result of subtraction of the two numbers. The arrangement shown achieves A B. The final carry (the CARRY-OUT of the MSB full adder) is ignored if it is not displayed. [ 2M]

Q.3.c Magnitude Comparator A magnitude comparator is a combinational circuit that compares two given numbers and determines whether one is equal to, less than or greater than the other. The output is in the form of three binary variables representing the conditions A = B A > B and A < B, if A and B are the two numbers being compared. Depending upon the relative magnitude of the two numbers, the relevant output changes state. If the two numbers, let us say, are four-bit binary numbers and are designated as (A 3 A 2 A 1 A 0 and (B 3 B 2 B 1 B 0, the two numbers will be equal if all pairs of significant digits are equal, that is, A 3 = B 3, A 2 = B 2 A 1 = B 1 and A 0 = B 0. In order to determine whether A is greater than or less than B we inspect the relative magnitude of pairs of significant digits, starting from the most significant position. The comparison is done by successively comparing the next adjacent lower pair of digits if the digits of the pair under examination are equal. The comparison continues until a pair of unequal digits is reached. In the pair of unequal digits, if A i =1 and B i =0, then A>B, and if A i =0, B i = 1 then A < B. If X, Y and Z are three variables respectively representing the A = B, A > B and A < B conditions, then the Boolean expression representing these conditions are given by the equations X = x 3 x 2 x 1 x 0 where x i = A i B i +A i B i Y = A 3 B 3 +x 3 A 2 B 2 +x 3 x 2 A 1 B 1 +x 3 x 2 x 1 A 0 B 0 Z = A 3 B 3 +x 3 A 2 B 2 +x 3 x 2 A 1 B 1 +x 3 x 2 x 1 A 0 B 0 [ 2M] Circuit diagram using simple gates. [3M] 2 bit comparator Q.3.d BCD to Excess 3 converter Circuit diagram [3M] Q.3.e Multipliers Multiplication of binary numbers is usually implemented in microprocessors and microcomputers by using repeated addition and shift operations. Since the binary adders are designed to add only two binary numbers at a time, instead of adding all the partial products at the end, they are added two at a

time and their sum is accumulated in a register called the accumulator register. Also, when the multiplier bit is 0, that very partial product is ignored, as an all 0 line does not affect the final result. The basic hardware arrangement of such a binary multiplier would comprise shift registers for the multiplicand and multiplier bits, an accumulator register for storing partial products, a binary parallel adder and a clock pulse generator to time various operations. Figure 7.35 4 4 bit multiplier. Q.3.f Full Adder A full adder circuit is an arithmetic circuit block that can be used to add three bits to produce a SUM and a CARRY output. Such a building block becomes a necessity when it comes to adding binary numbers with a large number of bits. The full adder circuit overcomes the limitation of the half-adder, which can be used to add two bits only. Let us recall the procedure for adding larger binary numbers. We begin with the addition of LSBs of the two numbers. We record the sum under the LSB column and take the carry, if any, forward to the next higher column bits. As a result, when we add the next adjacent higher column bits, we would be required to add three bits if there were a carry from the previous addition. We have a similar situation for the other higher column bits

Truth table of a full adder. also until we reach the MSB. A full adder is therefore essential for the hardware implementation of an adder circuit capable of adding larger binary numbers. A halfadder can be used for addition of LSBs. [3M] CIRCUIT diagram using basic gates or using Ex-or gate Q.4.a Multiplexer A multiplexer or MUX, also called a data selector, is a combinational circuit with more than one input line, one output line and more than one selection line. There are some multiplexer ICs that provide complementary outputs. Also, multiplexers in IC form almost invariably have an ENABLE or STROBE input, which needs to be active for the multiplexer to be able to perform its intended function. A multiplexer selects binary information present on any one of the input lines, depending upon the logic status of the selection inputs, and routes it to the output line. If there are n selection lines, then the number of maximum possible input lines is 2 n and the multiplexer is referred to as a 2 n - to-1 multiplexer or 2 n 1 multiplexer. Truth table of multiplexer Block diagram of multiplexer [1M] Q.4.b Demultiplxer A demultiplexer is a combinational logic circuit with an input line, 2 n output lines and n select lines. It routes the information present on the input line to any of the output lines. The output line that gets the information present on the input line is decided by the bit status of the selection lines. A decoder is a special case of a demultiplexer without the input line. Figure 8.18(a) shows the circuit representation of a 1-to-4 demultiplexer. the truth table of the demultiplexer when the input line is held HIGH. A decoder, as mentioned earlier, is a combinational circuit that decodes the information on n input lines to a maximum of 2 n unique output lines. Truth table of demultiplexer Block diagram of demultiplexer [1M]

Q.4.c Construct a 16-to-1 line multiplexer with two 8-to-1 line multiplexers and one 2-to-1 line multiplexer. Use block diagrams for the three multiplexers. The multiplexer inputs are labeled I0 to I15. The outputs from the two 8-to-1 MUXes are inputted to the 2-to-1 MUX to produce the final output. The alignment of MUXes is shown in the figure below. In particular, note how the selection inputs S0, S1 and S3, and S4, are connected to the various MUXes. The order and alignments are important - study them carefully.

Q.4.d [5M] Bistable multivibrator Bistable Multivibrator A bistable multivibrator circuit is one in which both LOW and HIGH output states are stable. Bistable Multivibrators have TWO stable states (hence the name: Bi meaning two) and maintain a given output state indefinitely unless an external trigger is applied forcing it to change state. The bistable multivibrator can be switched over from one stable state to the other by the application of an external trigger pulse thus, it requires two external trigger pulses before it returns back to its original state. As bistable multivibrators have two stable states they are more commonly known as Latches and Flip-flops for use in sequential type circuits. The discrete Bistable Multivibrator is a two state non-regenerative device constructed from two cross-coupled transistors operating as ON-OFF transistor switches. In each of the two states, one of the transistors is cut-off while the other transistor is in saturation, this means that the bistable circuit is capable of remaining indefinitely in either stable state. To change the bistable over from one state to the other, the bistable circuit requires a suitable trigger pulse and to go through a full cycle, two triggering pulses, one for each stage are required. Its more common name or term of flip-flop relates to the actual operation of the device, as it flips into one logic state, remains there and then changes or flops back into its first original state. Consider the circuit below. Bistable Multivibrator Circuit The Bistable Multivibrator circuit above is stable in both states, either with one transistor OFF and the other ON or with the first transistor ON and the second OFF. Lets suppose that the switch is in the left position, position A. The base of transistor TR1 will be grounded and in its cut-off region producing an output at Q. That would mean that transistor TR2 is ON as its base is connected to Vcc through the series combination of resistors R1 and R2. As transistor TR2 is ON there will be zero output at Q, the opposite or inverse of Q.

If the switch is now move to the right, position B, transistor TR2 will switch OFF and transistor TR1 will switch ON through the combination of resistors R3 and R4 resulting in an output at Q and zero output at Q the reverse of above. Then we can say that one stable state exists when transistor TR1 is ON and TR2 is OFF, switch position A, and another stable state exists when transistor TR1 is OFF and TR2 is ON, switch position B. So Bistable Multivibrators can produce a very short output pulse or a much longer rectangular shaped output whose leading edge rises in time with the externally applied trigger pulse and whose trailing edge is dependent upon a second trigger pulse. Q.4.e. Circuit diagram DESCRIPTION Master slave J K flip flop Define race around condition [1M] Master-slave flip flop is designed using two separate flip flops. Out of these, one acts as the master and the other as a slave. The figure of a master-slave J-K flip flop is shown below. Master Slave Flip Flop From the above figure you can see that both the J-K flip flops are presented in a series connection. The output of the master J-K flip flop is fed to the input of the slave J-K flip flop. The output of the slave J-K flip flop is given as a feedback to the input of the master J-K flip flop. The clock pulse [Clk] is given to the master J-K flip flop and it is sent through a NOT Gate and thus inverted before passing it to the slave J-K flip flop. Working When Clk=1, the master J-K flip flop gets disabled. The Clk input of the master input will be the opposite of the slave input. So the master flip flop output will be recognized by the slave flip flop only when the Clk value becomes 0. Thus, when the clock pulse males a transition from 1 to 0, the locked outputs of the master flip flop are fed through to the inputs of the slave flip-flop making this flip flop edge or pulse-triggered.

Q.4.f D flip flop Circuit diagram DESCRIPTION D flip-flop[edit] D flip-flop symbol The D flip-flop is widely used. It is also known as a "data" or "delay" flip-flop. The D flip-flop captures the value of the D-input at a definite portion of the clock cycle (such as the rising edge of the clock). That captured value becomes the Q output. At other times, the output Q does not change. [22][23] The D flip-flop can be viewed as a memory cell, a zeroorder hold, or a delay line. [24] Truth table: Clock D Qnext Rising edge 0 0 Rising edge 1 1 Non-Rising X Q Most D-type flip-flops in ICs have the capability to be forced to the set or reset state (which ignores the D and clock inputs), much like an SR flip-flop. Usually, the illegal S = R = 1 condition is resolved in D-type flip-flops. By setting S = R = 0, the flip-flop can be used as described above. Here is the truth table for the others S and R possible configurations: Q.5.a Modulus of a Counter [3M] The modulus (MOD number) of a counter is the number of different logic states it goes through before it comes back to the initial state to repeat the count sequence. An n-bit counter that counts through all

its natural states and does not skip any of the states has a modulus of 2 n. We can see that such counters have a modulus that is an integral power of 2, that is, 2, 4, 8, 16 and so on. These can be modified with the help of additional combinational logic to get a modulus of less than 2 n. To determine the number of flip-flops required to build a counter having a given modulus, identify the smallest integer m that is either equal to or greater than the desired modulus and is also equal to an integral power of 2. For instance, if the desired modulus is 10, which is the case in a decade counter, the smallest integer greater than or equal to 10 and which is also an integral power of 2 is 16. The number of flip-flops in this case would be 4, as 16 = 2 4. On the same lines, the number of flip-flops required to construct counters with MOD numbers of 3, 6, 14, 28 and 63 would be 2, 3, 4, 5 and 6 respectively. In general, the arrangement of a minimum number of N flip-flops can be used to construct any counter with a modulus given by the equation 2 N 1 + 1 modulus 2 N draw diagram of any modulus counter e.g mod 5 counter Q.5.b 11.6 UP/DOWN Counters 10100110 01110101 00120100 11130011 10140010 01150001 Counters are also available in integrated circuit form as UP/DOWN counters, which can be made to operate as either UP or DOWN counters. As outlined in Section 11.5, an UP counter is one that counts upwards or in the forward direction by one LSB every time it is clocked. A four-bit binary UP counter will count as 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111, 0000, 0001, and so on. A DOWN counter counts in the reverse direction or downwards by one LSB every time it is clocked. The four-bit binary DOWN counter will count as 0000, 1111, 1110, 1101, 1100, 1011, 1010, 1001, 1000, 0111, 0110, 0101, 0100, 0011, 0010, 0001, 0000, 1111, and so on. Some counter ICs have separate clock inputs for UP and DOWN counts, while others have a single clock input and an UP/DOWN control pin. The logic status of this control pin decides the counting mode. As an example, ICs 74190 and 74191 are four-bit UP/DOWN counters in the TTL family with a single clock input and an UP/DOWN control pin. While IC 74190 is a BCD decade counter, IC 74191 is a binary counter. Also, ICs 74192 and 74193 are four-bit UP/DOWN counters in the TTL family, with separate clock input terminals for UP and DOWN counts. While IC 74192 is a BCD decade counter, IC 74193 is a binary counter.

Q. Q.5.d. [5M] A basic four-bit shift register can be constructed using four D flip-flops, as shown below. The operation of the circuit is as follows. The register is first cleared, forcing all four outputs to zero. The input data is then applied sequentially to the D input of the first flip-flop on the left (FF0). During each clock pulse, one bit is transmitted from left to right. Assume a data word to be 1001. The least significant bit of the data has to be shifted through the register from FF0 to FF3. the basic four-bit serial-in serial-out shift register implemented using D flip-flops. The circuit functions as follows. A reset applied to the CLEAR input of all the flip-flops resets their Q outputs to 0s. Refer to the timing waveforms of Fig. 11.36. The waveforms shown include the clock pulse train, the waveform representing the data to be loaded onto the shift register and the Q outputs of different flipflops.

In order to get the data out of the register, they must be shifted out serially. This can be done destructively or non-destructively. For destructive readout, the original data is lost and at the end of the read cycle, all flip-flops are reset to zero. Q.5.e. MOD 8 counter circuit diagram Truth table Description [1M] Q.5.f Solve k amp The circuit excitation table is shown in Table. [3M] The number of flip-flops required is 3. X 1 (A) and X 2 (A) are the inputs of flip-flop A, which is also the LSB flip-flop. X 1 (B) and X 2 (B) represent the inputs to flip-flop B. X 1 (C) and X 2 (C) are the inputs to flip-flop C, which is also the MSB flip-flop. The next step is to draw Karnaugh maps, one each for different inputs to the three flip-flops. show the Karnaugh maps for X 1 (A), X 2 (A), X 1 (B), X 2 (B), X 1 (C) and X 2 (C) respectively. The minimized expressions are as follows: X 1 A = A X 2 A = A + B C X 1 B = B X 2 B =A + B + C X 1 C = C X 2 C = B + C

Counters and Registers