Docsity

Digital logic design, Schemes and Mind Maps of Digital Logic Design and Programming

Partial preview of the text

Download Digital logic design and more Schemes and Mind Maps Digital Logic Design and Programming in PDF only on Docsity!

DEPARTMENT OF ELECTRICAL ENGINEERING

DIGITAL LOGIC DESIGN

LAB MANUAL

THE UNIVERSITY OF AZAD JAMMU & KASHMIR

MUZAFFARABAD

Approved By:

Engr. Faisal Mehmood Butt

Prepared By:

Engr. RAJA TAHIR IQBAL

LIST OF EXPERIMENTS Exp No.

EXPERIMENTS

01 (a)Safety precautions (b)Familiarization with M21-7000 digital training system (c)Implementation of basic logic gates ICs 02 (a)Verification of distributive law using logic gates (b)Verification of De Morgan’s Law 03 Study of basic identities of Boolean algebra 04 (a)Implementation of digital logic gates(OR, AND, NOT) (b)Implementation of digital logic gates(XOR, XNOR) 05 Implementation of half adder & full adder using basic gates 06 Implementation of half subtactor & full subtractor using basic gates 07 Designing code converter 08 Designing decoder & encoder 09 Implementation of multiplexer & demultiplexer 10 Designing magnitude comparator 11 Designing even & odd parity checker & generator

Verification of R-S flip flop and D flip flop 13 JK flip flop as D flip flop and T flip flop 14 4-Bit shift register 15 Construction and verification of 4 bit ripple counter and mod 10/mod 12 ripple counter

The points in ABCDE (and FGHIJ) grid are vertically connected as indicated by red circle. So all 5 points on are actually the same point. It makes No difference whether you connect a wire on any one of these points. The next vertical strip is a different point and so on. Whereas the upper and lower grids are horizontally connected as indicated below. Each grid consists of 4 such separate horizontal strips:

IC Placement on Breadboard

A typical 14 pin IC placement on such a bread board is shown below: The upper and lower horizontal strips are normally served for power (+5V) and ground (0V) respectively. But it is not necessary to do so.

Never place any IC such that its opposite pins are within (connected to) the same Node on the same grid.

Procedure:

  1. Make sure the trainer board is switched off while you are patching the circuit.
  2. Make a neat schematic diagram clearly mentioning the IC numbers, PIN configurations and connections between different ICs.
  3. Place the IC(s) such that the Notch is towards the left.
  4. Provide the ground connection(s) by connecting the GND pin(s) of the IC(s) to O V on your trainer board power supply with the help of jumping wires. Make sure that all the ICs are properly grounded.
  5. Provide the VDD or operating voltage to each IC by connecting its VDD (or VCC) terminal to +5V on your trainer board power supply.
  6. Patch the circuit as per the schematic.
  7. Connect the inputs of your circuit to the logic switches provided on your trainer board. Typically there are 8 such switches provided. The low position of the switch indicates a 0 logic level (0V) and the high position a logic level of 1(+5V).
  8. Connect the output of your circuit to the logic probe provided on the trainer board.
  9. Now switch on the trainer board and give the input sequence to your circuit with the help of logic switches. It is a good practice to give the input sequence in ascending order like this: 000, 001, 010, 011, 100, 101, 110, 111 (Here No. of inputs is 3). This pattern can be adopted for lesser or more No. of inputs.
  10. Observe the output of your circuit against different inputs and record them in the truth table.
  11. Compare with theoretical values and debug the circuit if needed.
  12. Show your work for each lab task to your Lab Instructor.
  13. Give your observations and conclusion. Marks Obtained Instructor’s Signature

Details of trainer components

Section A comprises of “ POWER SWITCH” it is top left side of trainer. The function of this switch is to use OFF or ON the power. Section B comprises of “DC POWER”. It consists of Voltage Section one port is of +/-5V DC fixed output, the other is for ground connection and the third is of+/-5V (DC variable output). Section C consists of “SOLDER LESS BREADBOARD”. Interconnected with 2820 tie points nickel plated contact, fitted all DIP sizes and all component with lead and solid wire AWG#22- (0.3-0.8mm).It can be changed and replaced for different purposes and can be connected with demonstration panel. Section D comprises of “Amplitude”. Sine wave output 010 Vpp variable, Triangle wave output 010 Vpp and Square wave output 10 Vpp Variable, TTL mode output 4 Vpp. Section E consists of “ Potentiometer”. A potentiometer measuring instrument is essentially a voltage divider used for measuring electric potential. (a) Variable resistor VR1=1KΩ (b) Variable resistor VR2=100KΩ Section F comprises of “Function Generator”. It is used to generate different types of electrical waveforms over a wide range of frequencies. Frequency Range:1Hz-10Hz 10Hz-100Hz 100Hz-1KHz 1KHz-10KHz 10KHz-100KHz Section G comprises of “Two Digits of 7 Segment LED DISPLAY ”. Two Pulse Switch :2pcs push buttons contains switches de bouncing for eliminating the bounce caused by switch from open to close or from close to open position. Sixteen Data Switches: Sixteen pcs toggle switches and corresponding output point.When switch is at down position the output is at low level, contrarily it is at high level while setting at upper position. Section H comprises of “Speaker ”. 2,1/2” diameter,80nm/0.5w to be used for load. Section I comprises of “Four Channel Adaptor ”. Both of the two banana sockets and two BNC jack point tips are changeable. It is suitable for M21-7000 to be connected with peripherals. Section J comprises of “Sixteen bits LED Display ”. 16 red LEDs, separate input terminals. The LED will be lighted up when input is at H1 level, and it will be turned off when it is at no input or low level. Section K comprises of “Other Standard Accessories ”. (a)Power Cord

(b)Pin: 10pcs (c)User Manual Section l comprises of “Universal Connector”. Fixed Holder: It reserves universal connector fixed holder on the panel in order to be connected with various universal connectors, which are available. (1)Straight header 60 pin. (2)Card edge connector 2.54mm;62 pin. (3)DIP sockets connector 28 pin and 40 pin. Marks Obtained Instructor’s Signature

symbol. The output of NOT gate is the inverse of the input. Unlike the others it only has one input and one output. NAND Gate The NAND function is the complement of the AND function and the logic symbols have the inversion on the output. NAND gate is constructed by adding an inverter after AND operator. The NAND function provides logic 0 on the output only when both inputs are logic 1, and logic 1 output for all other combinations. Here, OUT = NOR Gate The complement of the OR function is the NOR function and the logic symbol has the inversion present on the output. NOR gate is constructed by adding an inverter after OR operator. Here, OUT =

Procedure:

 Place the IC 7408LS on the trainer board.  Connect VCC and ground to the respective pins on the trainer board.  Connect the inputs to the input switches provided in the trainer board.  Connect the outputs to the switches of output LEDs.  Apply various combinations of inputs as shown in the truth table and observe the conditions of LEDs.  Similarly follow these steps for other gates.

Observations & Calculations:

AND Gate: Truth table for IC: 7408 Input 1 Input 2 Output 0 0 0 0 1 0 1 0 0 1 1 1

NOR Gate: Truth table for IC: 7402 Input 1 Input 2 Output 0 0 0 0 1 0 1 0 0 1 1 1 Marks Obtained Instructor’s Signature

EXPERIMENT No. 02(a) Verification of distributive law using logic gates

Objective:

Verification of distributive law using logic gates

Apparatus:

 Logic trainer

 Connecting wires

 IC: 7408LS, 7432LS

 Power supply

Theory:

A(B+C)=AB+AC

Procedure:

(a)Place the IC of required on the bread board. Be sure that it is seated firmly, straddling the notch in the socket, and that none of the pins are bent (b) Connect Vcc=5V to pin 14 and Ground to pin 7 (c) Pin lay out of the IC is given in Annex connect one of gates. (d) Connect inputs (pin1&2)to SW1 and SW2 and output to the LED. (e)Switch ON the circuit and complete following truth tables f Logic Diagram: or both cases for distributive law

Observations & Calculations:

Digital Logic Design, EE Department, The University of Azad Jammu & Kashmir EXPERIMENT NO: 02(b) Verification of De-Morgan’s Law

Objective:

Boolean algebra uses many of the same laws as those of ordinary algebra. De Morgan’s theorem allows for the simplification of a Boolean Expression by the cancellation of some redundant inversions. In this experiment, we’ll know about these laws & theorem.

Apparatus:

 Logic trainer

 Connecting wires

 IC: 7400LS, 7408LS, 7404LS & 7432LS

 Power supply

Theory:

De Morgan developed a theorem that allows conversion between a logic expression that has inversions on the output to a different logic expression with the inversions on each of The inputs. This may allow for the simplification of a Boolean Expression by the cancellation of some redundant inversions. There are two Boolean Equations that represent De Morgan's Theorem:

Procedure:

 At first construct the circuits shown in the Boolean laws.  Check if the laws are valid. Give truth tables for each law.  Apply various combinations of inputs as shown in the truth table and observe the conditions of LEDs. Logic Diagram:

Digital Logic Design, EE Department, The University of Azad Jammu & Kashmir

Observations & Calculations:

Truth table that verifies 1st^ DE Morgan’s law: (AB)’=A’ + B’ A B (AB)’ A’ + B’ Truth table that verifies 2nd^ DE Morgan’s law: (A+B)’=A’. B’ A B (A+B)’ A’. B’ Marks Obtained Instructor’s Signature