You are on page 1of 58

INDEX

Exp. No: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Date Name of Experiment Study of logic gates using discrete components Adders and Subtractors Combinational logic design using 74XX ICs Binary to gray and gray to binary conversion Pulse detector circuit Estimate the propagation delay in logic gates Flip-flop Adder/ Subtractor circuit using 7483 Design and implementation of BCD adder Design and implementation of 2bit magnitude comparator Design and implementation of multiplexer and demultiplexer Design and implementation of shift register Construction and verification of Asynchronous counter Design and implementation of Synchronous counter, Ring counter and Johnson counter Digital Clock Page no: Facultys signature

Digital electronics Lab

Page 1

Exp no: 1

Date:

STUDY OF LOGIC GATES

Aim: To construct the basic and universal gates using discrete components and verify the truth table Components required: Transistor, resistors, diodes, LED Theory: 1.OR-GATE OR gate has two or more inputs and a single output and it operates in accordance with the following definitions .The output of an OR Gate is high if one or more inputs are high .When all the inputs are low then the output is low..If two or more inputs are high state then the diodes connected to these inputs conduct and all other diodes remain reverse biased so the output will be high and OR function is satisfied. 2. AND GATE AND gate has two or more inputs and a single output and it operates in accordance with the following defenitions.The output of an AND gate is high if all inputs are high. If Vr is chosen i.e. more positive than Vcd then all diodes will be conducting upon a coincidence and the output will be clamped at 1.If Vr is equal to Vcd then all diodes are cut off and output will raise to the voltage Vrif not all input have the same high value then the output of AND gate is equal to Vi (min0) 3. NOT-GATE. The NOT gate circuit has a single output and a single input and perform the operation of negation in accordance with definition ,the output of NOT Gate is high if the input is low and the output is low or zero if the input is high or 1 4. NOR GATE A negation following on OR is called NOT-OR Gate. As shown in figure if V0 is applied as input signal to the diodes then both diodes are forward biased. Hence no voltage is applied to emitter base junction and total current is passed through the LED and it glows which indicates high or one state 5. NAND GATE The NAND Gate can be implemented by placing a transistor NOT gate after the AND gate circuit with diodes. These gates are called diode transistor logic gates. If V0 is applied to input of the diode then the diode D1&D2 will be forward biased. Hence no voltage applied across base emitter junction

Digital electronics Lab

Page 2

and this junction goes into cut off region .Hence total current from source Vce will flow through LED and it flows which indicate the one state or high state. Circuit diagrams:

OR GATE:

AND GATE:

NOT GATE:

Digital electronics Lab

Page 3

NAND GATE:

NOR GATE:

Digital electronics Lab

Page 4

Truth Tables: AND GATE: OR GATE:

A 0 0 1 1

B 0 1 0 1

Y=AB 0 0 0 1

A 0 0 1 1

B 0 1 0 1

Y=A+B 0 1 1 1

NOR GATE: A 0 0 1 1 B 0 1 0 1 Y=(A+B) 1 0 0 0 A 0 0 1 1

NAND GATE: B 0 1 0 1 Y=(AB) 1 0 0 0

NOT GATE: A 0 1 A 1 0

Procedure: 1. 2. 3. 4. Connect the circuit as per diagram Apply 5V from RPS for logic 1 and 0v for logic 0 Measure the output voltage using digital multimeter and verify the truth table Repeat the same for all circuits
Page 5

Digital electronics Lab

Answer the following questions: 1. What are the universal gates? Why are they called universal gates? 2. What is the other name of EX-NOR gate?

Observations and Conclusions:

Digital electronics Lab

Page 6

Exp No: 2

Date: ..

HALF/FULL ADDER & HALF/FULL SUBTRACTOR

Aim: To realize Half/full adder and half/full Subtractor. Using X-OR and Basic gates Components required: IC7404, IC7408, IC7486, IC7432

Circuit Diagram:

Digital electronics Lab

Page 7

Truth Table:

Digital electronics Lab

Page 8

Truth Table:

Procedure: 1. 2. 3. 4. Verify the gates. Make the connections as per the circuit diagram. Switch on Vcc and apply various combinations of input according to the truth table. Note down the output readings for half/full adder and half/full Subtractor, sum/difference and

the carry/borrow bit for different combinations of inputs.

Observation and Conclusions:

Digital electronics Lab

Page 9

Exp no: 3

Date:

COMBINATIONAL LOGIC DESIGN USING 74xx ICs


Aim: A Warning buzzer is to sound when the following conditions apply: a. b. c. d. Switches A, B, C are on. Switches A and B are on but switch C is off. Switches A and C are on but switch B is off. Switches C and B are on but switch A is off.

Draw a truth table for this situation and obtain a Boolean expression for it. Minimize this expression and draw a logic diagram using only a) NAND b) NOR gates. Components Required: . Truth table:

O/P

Digital electronics Lab

Page 10

Logic diagram:

Digital electronics Lab

Page 11

Procedure: 1. 2. 3. 4. Verify the gates. Make the connections as per the circuit diagram. Switch on Vcc and apply various combinations of input according to truth table. Note down the output readings for the required combinations of inputs.

Observations and conclusion:

Digital electronics Lab

Page 12

Exp No: 4

Date:

BINARY TO GRAY AND GRAY TO BINARY CONVERSION

Aim: - To convert given binary numbers to gray codes and gray to binary numbers.

Components required:.

Truth table: Binary to Gray : B2 B1 B0 G2 G1 G0 Gray to binary: G2 G2 G0 B2 B1 B0

Digital electronics Lab

Page 13

Circuit Diagram:

Digital electronics Lab

Page 14

Procedure: 1. 2. 3. The circuit connections are made as shown in fig. Pin (14) is connected to +Vcc and Pin (7) to ground. In the case of binary to gray conversion, the inputs B0, B1, B2 and B3 are given at

respective pins and outputs G0, G1, G2, G3 are taken for all the 16 combinations of the input. 4. In the case of gray to binary conversion, the inputs G0, G1, G2 and G3 are given at respective pins and outputs B0, B1, B2, and B3 are taken for all the 16 combinations of inputs. 5. The values of the outputs are tabulated.

Observations and Conclusion:

Digital electronics Lab

Page 15

Exp No: 5

Date:

PULSE DETECTOR CIRCUIT

Aim: To study the Pulse detector circuit Components required: CD4001 (CMOS NOR gate) Theory: The single NOR gate and three inverter gates create this effect by exploiting the propagation delay time of multiple, cascaded gates. In this experiment, use three NOR gates with paralleled inputs to create three inverters, thus using all four NOR gates of a 4001 IC. Normally, when using a NOR gate as an inverter, one input would be grounded while the other act as the inverter input, to minimize the capacitance and increase the speed. This particular pulse detector circuit produces a high output pulse at every falling edge of the clock (input) signal

Circuit diagram:

Digital electronics Lab

Page 16

Pin out of CMOS IC:

Procedure: Construct the circuit as given, connect 1MHz clock as input. Observe the input and output waveforms on the C.R.O.

Observation and Conclusion:

Digital electronics Lab

Page 17

Exp. No- 6

Date:

ESTIMATE THE PROPAGATION DELAY IN LOGIC GATES


Aim: To estimate the propagation delay of TTL inverter and CMOS inverter Components required: TTL -74LS04, CMOS-CD4049

Circuit Diagram:

Procedure: 1. Verify the gates 2. The VCC and GND should connect to the concerned pins. 3. Observe the LED output and measure both the input and output voltages using a digital multimeter with the data switch on both positions. I/p (LOW)= -----------------V

O/P(HIGH)= ------------------V

I/P (HIGH) = -------------------V

O/P (LOW) = -------------------V

4. Six gates are connected serially and observe the o/p voltages of each o/p and i/p

Digital electronics Lab

Page 18

5. Input is connected to 1MHz digital clock and display the input of first gate on oscilloscope and the output of the sixth inverter on oscilloscope .The output waveform is delayed by the sum of the propagation delays through the six inverters .Use the oscilloscope techniques to measure the time difference between rising/falling edges on the output of last inverter. Sketch the input and output waveforms (label TPHL,TPLH propagation delays on sketch)

Formulas: Propagation delay , tpxx =

M= Multiplier used on the oscilloscope (will usually be 1 or 0) G=number of logic gates used. Frequency= 1/period

Propagation delay: Propagation delay from a change on an input to a change on the output.TPHL is the propagation delay for an input change causing a HIGH to LOW change on the output(this does NOT REFER to input change).TPLH is the propagation delay for an input change causing a LOW to HIGH change on the output.The figure below define TPHL,TPLH for inverting and non- inverting gates.

Digital electronics Lab

Page 19

Digital electronics Lab

Page 20

Observations and conclusion:

Digital electronics Lab

Page 21

Exp No: 7

Date: .

FLIP-FLOP

Aim: Truth table verification of Flip-Flops: (i) RS-Type (ii) D- Type (iv) JK-Type

(iii) T- Type.

Components Required:

Circuit Diagram& Truth table: i) RS Flip-Flop: Qn 0 1 0 1 0 1 0 1 Qn 1 0 1 0 1 0 1 0 R 0 0 0 0 1 1 1 1 S 0 0 1 1 0 0 1 1 Qn+1 Qn+1

ii) D Flip Flop:

Digital electronics Lab

Page 22

iii) T Flip-flop:

iv) M/S JK flip flop:

Digital electronics Lab

Page 23

Procedure: 1. Connections are made as per circuit diagram. 2. Verify the truth table for various combinations of inputs. Observations and conclusions:

Digital electronics Lab

Page 24

Exp No: 8

Date: .

ADDER/SUBTRACTOR CIRCUITS USING 7483

Aim: To design and set up the following circuits using 4 bit binary adder IC 7483 i) ii) 4 bit binary adder 4 bit add/subtract circuit

Components required: IC 7486, IC 7483, IC 7400. Theory: The 7483 is a TTL IC with four full adders in it. This means it can add nibbles. To add bytes, we need to use two 7483 ICs.

4 bit binary adder A3A2A1A0 and B3B2B1B0 are inputs and Cout S3S2S1S0 is the output. CARRY IN pin is ground. This circuit is also called a nibble adder.

4 bit add/subtract circuit The circuit set up is shown in figure. To add the nibbles, SUB is to be made 0. To subtract B3B2B1B0 from A3A2A1A0, SUB is to be made 1. EXOR gates function as controlled inverters. When SUB = 1, B3B2B1B0 is complemented. Now A3A2A1A0, complemented version of B3B2B1B0 , and 1 at Cin pin are added together. Cout is ignored. Thus the 2s complement of subtrahend is added with minuend. If minuend is less than subtrahend, the obtained output will be the 2s complement of difference. For example

Procedure: 1. Test all components and IC package using digital IC testers. 2. Set up the nibble adder and try a few nibbles addition. Verify the working of the circuit. 3. Set up the add/ subtrator circuit. Verify the working of the circuit.
Digital electronics Lab Page 25

Circuit Diagram: 4 bit binary adder:

4 bit add/subtract circuit:

Digital electronics Lab

Page 26

Observations and conclusions:

Digital electronics Lab

Page 27

Exp No: 9

Date: ..

DESIGN AND IMPLEMENTATION OF BCD ADDER Aim: To design and implement BCD adder using 4 bit binary adder IC 7483. Components required: . Theory: BCD Addition: Binary Coded Decimal is a method of using binary digits to represent the decimal digits 0 through 9. The valid BCD numbers are (0000 to 1001)BCD. Each digit of the decimal number will be represented by its four bit binary equivalent. Ex: (127)10 - BCD equivalent (0001 0010 0111)2. In BCD addition the following three cases are observed, 1. The resulting BCD number equal to less than (1001)BCD. 2. The resulting BCD number greater than (1001)BCD. 3. Carry is generated in the BCD addition. For case 2 and 3, the result is added with correction factor (0110)BCD so that the result is in valid BCD number.

BCD ADDER: The two BCD inputs to be added are applied at inputs A and B of the first binary adder IC 7483. The sum output of the first binary adder is given to the B input of the second binary adder. The A input of the binary adder is given (0110)BCD when a carry is generated from the first adder or when sum from the first binary adder is greater than (0110)BCD, else A input is (0000)BCD. The following Boolean expression is used to find whether (0110)BCD or (0000)BCD needs to be applied to the A input, Cout = Cout1 + S4 (S3 + S2) Where S4, S3, S2, S1 are the sum of the BCD from the first binary adder with S4 as the MSB and S1 as the LSB. Cout1 is the carry output from the first binary adder.

Digital electronics Lab

Page 28

Procedure: 1. Verify the gates. 2. Make the connections as per the circuit diagram. 3. Apply and verify the various combination of input according to the truth table for BCD adder. Circuit diagram:

Digital electronics Lab

Page 29

Observations and Conclusions:

Digital electronics Lab

Page 30

Exp No: 10

Date: ..

DESIGN AND IMPLEMENTATION OF 2 BIT MAGNITUDE COMPARATOR Aim: To design and implement of 2 bit Magnitude Comparator for the Condition A=B A>B A<B

Draw a truth table for this situation and obtain a Boolean expression for it. Minimize this expression and draw a logic diagram. Components Required:IC7408, IC7432, IC7404, IC748 Theory: The comparison of two numbers is an operation that determines one number is greater than, less than (or) equal to the other number. A magnitude comparator is a combinational circuit that compares two numbers A and B to determine their relative magnitude. The outcome of the comparator is specified by three binary variables that indicate whether A>B, A=B (or) A<B. Consider two numbers A and B with two digits each. Here A = A1 A0 and B = B1 B0.

Digital electronics Lab

Page 31

Logic Diagram:

Digital electronics Lab

Page 32

Observations & Conclusions:

Digital electronics Lab

Page 33

Exp No: 11

Date:..

DESIGN AND IMPLEMENTATION OF MULTIPLEXER AND DEMULTIPLEXER Aim: To design and implement multiplexer and demultiplexer using logic gates and IC Components Required: -74LS04, 74LS11, 74LS32, 74LS151,74LS154 Function Table: S1 S0 Input Y

Circuit diagram for multiplexer:

Digital electronics Lab

Page 34

Use 74LS151 to implement the logic function F=A

Digital electronics Lab

Page 35

Truth table

S0

S1

Output

Truth table:

Logic Diagram:

Digital electronics Lab

Page 36

Observations conclusions:

Digital electronics Lab

Page 37

Exp No: 12

Date:

DESIGN AND IMPLEMENTATION OF SHIFT REGISTER

Aim: -To construct and verify the truth table of a shift register using D- Flip-flop. Components Required: IC7474, IC7404, IC7432, IC7408 Theory: A binary FLIP-FLOP is a one bit memory storage cell . n FLIP-FLOP can store n bits. This series of FLIP-FLOP are called Registers. Registers in which data is entered or / and taken out in serial form are referred to as shift registers , since bits are shifted in the FLIP-FLOP with the occurrence of clock pulses either in the right (right shift register) as well as in the left direction (left shift register) There are four types of shift registers. a) Serial in serial out (SISO) b) Serial in parallel out (SIPO) c) Parallel in serial out (PISO) d) Parallel in parallel out (PIPO)

Digital electronics Lab

Page 38

Circuit diagram: SHIFT REGISTER (SIPO):

Digital electronics Lab

Page 39

SHIFT REGISTER (PIPO):

Digital electronics Lab

Page 40

SHIFT REGISTER (SISO):

When the Input is 1, after the 4th clock pulse, A gives the output as 1 When the Input is 0, after the 4th clock pulse, A gives output as 0

Digital electronics Lab

Page 41

SHIFT REGISTER (PISO):

Digital electronics Lab

Page 42

Procedure : 1. Verify the flip flop. 2. Make the connections as per the circuit diagram. 3. Switch on VCC and apply various combinations of input according to truth table. 4. By applying the clock pulse, all input combinations are given and the outputs are verified with the truth table Questions: 1. 2. 3. 4. 5. What is a register? What is a shift register? What is a parallel in,parallel-out ,shift register? What is a universal shift register? What are the applications of shift registers?

Observations & Conclusions

Digital electronics Lab

Page 43

Exp No: 13

Date

CONSTRUCTION AND VERIFICATION OF 4 BIT ASYNCHRONOUS COUNTERS AND MOD10/MOD12 ASYNCHRONOUS COUNTER

Aim: To construct and verify the 4bit ripple counter, mod10/mod12 Asynchronous counter Components required: IC7476 Theory: A counter is a register capable of counting number of clock pulse arriving at its clock input. Counter represents the number of clock pulse arrived. A specified sequence of state appears as counter output. This is the main difference between a register and a counter. There are two types of counter, synchronous and asynchronous. In synchronous common clock is given to all flip flops and in asynchronous first flip flop is clocked by external pulse and then each successive flip flop is clocked by Q or Q output of previous stage. Because of inherent propagation delay time all flip flops are not activated at same time which results in asynchronous operation. Pin details of IC 7476:

Digital electronics Lab

Page 44

Logic diagram for 4bit ripple counter:

Truth table:

CLK 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

QA 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

QB 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1

QC 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1

QD 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1

Digital electronics Lab

Page 45

Logic diagram for Mod 10 counter:

Truth table: CLK 0 1 2 3 4 5 6 7 8 9 10 QA 0 1 0 1 0 1 0 1 0 1 0 QB 0 0 1 1 0 0 1 1 0 0 0 QC 0 0 0 0 1 1 1 1 0 0 0 QD 0 0 0 0 0 0 0 0 1 1 0

Digital electronics Lab

Page 46

3bit up/down counter:

State diagram: When M=1

Digital electronics Lab

Page 47

When M=0

Truth table:

M 0 0 0 0 0 0 0 0

Q2

Q1

Q0

M 1 1 1 1 1 1 1 1

Q2

Q1

Q0

Questions: 1. How many flipflops are required to build an asynchronous counter to count 0 to 19? 2. Draw a mod -3 asynchronous counter? 3. How many flipflops are needed to count mod-128 binary counter? Observations and Conclusions:

Digital electronics Lab

Page 48

Exp No-14

Date.

DESIGN AND IMPLEMENTATION OF 4BIT SYNCHRONOUS COUNTER, RING COUNTER AND JOHNSON COUNTER Aim: To design and implement 4bit synchronous counter, ring counter and Johnson counter Components required: IC7473, 7408, 7476 Theory: Synchronous and asynchronous counters provide same outputs. The difference is that in the synchronous counters all flip flops work in synchronism with the input clock pulse. That means, the output of all the flip flops in the counter change state at the same instant. Therefore,the propagation delay occurring in asynchronous counter is eliminated in synchronous counters .Synchronous counters for any given count sequence or modulus can be designed and setup by the following procedure. 1. Find the number of flip flpos the relation M=2NwhereM is the modulus of the counter and N is minimum number of flip flops required, N=log2M 2. Write down the count sequence (FF outputs) in a tabular form. 3. Determine the flip flops inputs which must be present for the desired next state using excitation table of flip flops 4. Prepare Karnaugh maps for each FF input in terms of FF outputs as the input variables.Obtain the minimized expressions from K-maps 5. Set up the circuit using FFs and other gates Excitation table of JK F/F: Q 0 0 1 1 Qn+1 0 1 0 1 J 0 1 X X K X X 1 0

Digital electronics Lab

Page 49

Digital electronics Lab

Page 50

2) Design and implement mod 7 synchronous counter:

Digital electronics Lab

Page 51

Digital electronics Lab

Page 52

Ring counter and Johnson counter: Theory: Ring counter and Johnson counter are basically shift registers Ring counter: It is constructed using JK flip flop by connecting Q and Q outputs from one flipflop to the J and K inputs of the next flipflop.The output of the final flipflop are connected to the input of the first flipflop.To start the counter , first flipflop is set using preset facility and the remaining flipflops are reset using reset input .When clock signal arrives,this set condition continues to shift around the ring. Ring counter using Dflipflops are made by connecting the Q output of last flip flop to the D input of the first flipflop.As it can be seen from the truth table ,there are four unique output states for this counter ,rendering a mod-4 ring counter.Ring counter is called divide by N counter where N is the number of flipflops. Johnson counter: The modulo number of ring counter can be doubled by making a small change in the ring counter circuit .The Q and Q output of the last flipflop are connected to the J and K input of the first flipflop respectively.This is the Johnson counter. Intially all the flipflops are reset.After the first clockpulse FF0 is set and remaining FF are reset .After fourth clock pulse all flipflops are set.After fifth clockpulse FF0 is reset and the remaining flipflops are set.After the eighth clock pulse all flipflops are reset .There are eight different output conditions creating a mod-8 johnson counter.Johnson counter is also called twisted ring counter or divide by 2N counter. Procedure: 1.Set up the ring counter and set any Q ouput using PRESET and apply monopulses using switch in the trainer kit to the clk input 2. Note down the states of the ring counter output s on the truth table for successive clocks 3.Repeat the steps 1 and 2 for the Johnson co

unter

Digital electronics Lab

Page 53

Truth table and Timig diagram:

Digital electronics Lab

Page 54

Johnson counter:

Truth table and waveforms:

Digital electronics Lab

Page 55

Observations &Conclusions:

Digital electronics Lab

Page 56

Exp No: 15 DIGITAL CLOCK

Date:

Aim: Design a digital clock circuit and verify the output Components required: IC7490 Theory: A block diagram showing the functions to be performed is given below, the first divide by 60-counter changes state once each second and has 60 discrete states. It can there fore, be decoded to provide signals to display seconds. This counter is referred to as the seconds counter. The second divide by 60 counter changes state once each minute and has 60 discrete states .It can thus be decoded to provide the necessary signals to display minutes. This counter is then the minutes counter .The last counter changes state once each 60 minutes(one each hour).Thus if it is divide by 12 counter, it will have 12 states that can be decoded to provide signals to display the correct hour. This, then, is the hours counter.

Circuit diagram:

Seconds counter

Digital electronics Lab

Page 57

Draw the circuits of minutes counter, hours counter

Observations & conclusions:

Digital electronics Lab

Page 58

You might also like