Top Banner
DIGITAL ELECTRONICS LAB MANUAL ET-364(A) FOR 3 rd YEAR, DAE (ELECTRICAL) PUNJAB BOARD OF TECHNICAL EDUCATION, LAHORE NAME____________________________________ FATHERS NAME__________________________ ROLL NO__________________________________ BATCH_______2009-2012________ Dr. ABDUL QADEER POLYTECHNIC INSTITUTE ELLAHABAD, 0494752820 DEPATRMENT OF ELECTRICAL
40

Digital Electronics Lab Manual by M Shakeel

Jan 21, 2016

Download

Documents

Siva Jaganathan

Practical
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • DIGITAL ELECTRONICS LAB MANUAL

    ET-364(A) FOR

    3rd YEAR, DAE (ELECTRICAL) PUNJAB BOARD OF TECHNICAL EDUCATION, LAHORE

    NAME____________________________________

    FATHERS NAME__________________________

    ROLL NO__________________________________

    BATCH_______2009-2012________

    Dr. ABDUL QADEER POLYTECHNIC INSTITUTE

    ELLAHABAD, 0494752820

    DEPATRMENT OF ELECTRICAL

  • DIGITAL ELECTRONICS LAB DOS

    1. Be regular to the lab. 2. Follow proper Dress Code. 3. Maintain Silence. 4. Know the theory behind the experiment before coming to the lab. 5. Identify the different leads or terminals or pins of the IC before making Connection. 6. Know the Biasing Voltage required for different families of ICs and connect the power supply voltage and ground terminals to the respective pins of the ICs. 7. Know the Current and Voltage rating of the ICs before using them in the experiment. 8. Avoid unnecessary talking while doing the experiment. 9. Handle the IC Trainer Kit properly. 10. Mount the IC Properly on the IC Zif Socket. 11. Handle the microprocessor kit properly. 12. While doing the Interfacing, connect proper voltages to the interfacing kit. 13. Keep the Table clean. 14. Take a signature of the In charge before taking the kit/components. 15. After the completion of the experiments switch off the power supply and return the apparatus. 16. Arrange the chairs/stools and equipment properly before leaving the lab.

    .DON TS 1. Do not exceed the voltage Rating. 2. Do not inter change the ICs while doing the experiment. 3. Avoid loose connections and short circuits. 4. Do not throw the connecting wires to floor. 5. Do not come late to the lab. 6. Do not operate p/IC trainer kits unnecessarily. 7. Do not panic if you dont get the output

  • CONTENTS

    Experiment No Page. No

    1. Verification of Gates 2

    2. Half/Full Adder/Subtractor 7 3. Parallel Adder/Subtractor 9

    4. 4-Bit Magnitude Comparator 12

    5. MUX/DEMUX 13

    6. Decoder and Encoder 15

    7. BCD to Seven Segment Display 17 8. RS Flip-Flop 18

    9. D Flip-Flops 19

    10. JK Flip-Flops 20

    11. Schmitt Trigger 21

    12. Uses of IC555 22 13. Shift Registers 24

    14. Counters 27

    15. Memory Devices 30

    16. 8085 Microprocessor 33

    17. Project-1

    18. Project-2 19. Project-3

  • Digital Electronics Lab Manual

    Page 1

    The Breadboard The breadboard consists of two terminal strips and two bus strips (often broken in the centre). Each bus strip has two rows of contacts. Each of the two rows of contacts are a node. That is, each contact along a row on a bus strip is connected together (inside the breadboard). Bus strips are used primarily for power supply connections, but are also used for any node requiring a large number of connections. Each terminal strip has 60 rows and 5 columns of contacts on each side of the centre gap. Each row of 5 contacts is a node. You will build your circuits on the terminal strips by inserting the leads of circuit components into the contact receptacles and making connections with 22-26 gauge wire. There are wire cutter/strippers and a spool of wire in the lab. It is a good practice to wire +5V and 0V power supply connections to separate bus strips.

    The breadboard. The lines indicate connected holes.

    The 5V supply MUST NOT BE EXCEEDED since this will damage the ICs (Integrated circuits) used during the experiments. Incorrect connection of power to the ICs could result in them exploding or becoming very hot - with the possible serious injury occurring to the people working on the experiment! Ensure that the power supply polarity and all components and connections are correct before switching on power . Building the Circuit Throughout these experiments we will use TTL chips to build circuits. The steps for wiring a circuit should be completed in the order described below:

    1. Turn the power (Trainer Kit) off before you build anything! 2. Make sure the power is off before you build anything! 3. Connect the +5V and ground (GND) leads of the power supply to the power

    and ground bus strips on your breadboard.

    Bus Strip

    Often gap here

    Terminal Strip

  • Digital Electronics Lab Manual

    Page 2

    4. Plug the chips you will be using into the breadboard. Point all the chips in the same direction with pin 1 at the upper-left corner. (Pin 1 is often identified by a dot or a notch next to it on the chip package)

    5. Connect +5V and GND pins of each chip to the power and ground bus strips on the breadboard.

    6. Select a connection on your schematic and place a piece of hook-up wire between corresponding pins of the chips on your breadboard. It is better to make the short connections before the longer ones. Mark each connection on your schematic as you go, so as not to try to make the same connection again at a later stage.

    7. Get one of your group members to check the connections, before you turn the power on.

    8. If an error is made and is not spotted before you turn the power on. Turn the power off immediately before you begin to rewire the circuit.

    9. At the end of the laboratory session, collect you hook-up wires, chips and all equipment and return them to the demonstrator.

    10. Tidy the area that you were working in and leave it in the same condition as it was before you started.

    Common Causes of Problems 1. Not connecting the ground and/or power pins for all chips. 2. Not turning on the power supply before checking the operation of the

    circuit. 3. Leaving out wires. 4. Plugging wires into the wrong holes. 5. Driving a single gate input with the outputs of two or more gates 6. Modifying the circuit with the power on.

    In all experiments, you will be expected to obtain all instruments, leads, components at the start of the experiment and return them to their proper place after you have finished the experiment. Please inform the demonstrator or technician if you locate faulty equipment. If you damage a chip, inform a demonstrator, don't put it back in the box of chips for somebody else to use. If you locate any errors in this manual, please e-mail:-

    [email protected] Example Implementation of a Logic Circuit Build a circuit to implement the Boolean function F = / (/A. /B), please note that the notation /A refers to . You should use that notation during the write-up of your laboratory experiments.

    Quad 2 Input 7400 Hex 7404 Inverter

  • Digital Electronics Lab Manual

    Page 3

    The complete designed and connected circuit

    Sometimes the chip manufacturer may denote the first pin by a small indented circle above the first pin of the chip. Place your chips in the same direction, to save confusion at a later stage. Remember that you must connect power to the chips to get them to work.

    Digital Electronics Lab Manual Written by: Muhammad Shakeel

  • Digital Electronics Lab Manual

    Page 4

    Experiment No: 1 Date: __/__/____

    VERIFICATION OF GATES Aim: - To study and verify the truth table of logic gates Apparatus Required: - All the gate ICs mention in the fig.

    Procedure: - 1. Place the IC on IC Trainer Kit. 2. Connect VCC and ground to respective pins of IC Trainer Kit. 3. Connect the inputs to the input switches provided in the IC Trainer Kit. 4. Connect the outputs to the switches of O/P LEDs, 5. Apply various combinations of inputs according to the truth table and Observe condition of LEDs. 6. Disconnect output from the LEDs and note down the corresponding Multimeter voltage readings for various combinations of inputs.

    2-Input AND Gate 74LS08

    2-Input AND Gate 4081

    2-Input OR Gate 74LS32

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

  • Digital Electronics Lab Manual

    Page 5

    2-Input OR Gate 4071

    Inverter (NOT) Gate 4009

    2-Input NAND Gate 74LS00

    2-Input NAND Gate 4011

    A O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    Y4 (V)

    Y4 (V)

    Y4 (V)

    0

    1

    Inverter (NOT) Gate 74LS04

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

    A O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    Y4 (V)

    Y4 (V)

    Y4 (V)

    0

    1

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

  • Digital Electronics Lab Manual

    Page 6

    2-Input NOR Gate 74LS02

    2-Input NOR Gate 4001

    2-Input XOR Gate 74LS86

    2-Input XNOR Gate 4077

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

    A B O/P Y1 (V)

    Y2 (V)

    Y3 (V)

    Y4 (V)

    0 0

    0 1

    1 0

    1 1

    2-Input XOR Gate 4030

  • Digital Electronics Lab Manual

    Page 7

    Conclusion:_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

  • Digital Electronics Lab Manual

    Page 8

    Experiment No: 2 Date: __/__/____

    HALF/FULL ADDER & HALF/FULL SUBTRACTOR Aim: - To realize half/full adder and half/full Subtractor. Apparatus Required: - IC 74LS86, 74LS32, 74LS08, 74LS04 etc.

    Procedure:-

    1. Verify the Gates. 2. Make the connection as per circuit diagram. 3. Switch on VCC and apply various combinations of input according to the

    Truth table.

    4. 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. Logic Diagram of Half Adder Truth Table

    Logic Diagram of Full Adder

    Truth Table of full Adder

    A B Sum Carry 0 0

    0 1

    1 0

    1 1

    Inputs Outputs A B 0 0 0

    0 0 1 0 1 0

    0 1 1

    1 0 0

    1 0 1

    1 1 0

    1 1 1

  • Digital Electronics Lab Manual

    Page 9

    Logic Diagram of Half Subtractor

    Conclusion:___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ______________________________________________________________________________ ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

    A B Di 0 0

    0 1

    1 0

    1 1

    Inputs Outputs A B Di 0 0 0 0 0 1 0 1 0 0 1 1

    1 0 0 1 0 1 1 1 0 1 1 1

    Logic Diagram of Full Subtractor

  • Digital Electronics Lab Manual

    Page 10

    Experiment No: 3 Date: __/__/____

    Design and implementation of 4 bit binary Adder/ Subtractor:

    Aim: - To design and implement 4 bit binary adder, 4 bit binary Subtractor and adder/Subtractor using IC 7483. Apparatus Required: - IC 74LS83, 74LS86,74LS04

    Procedure:-

    1. Apply the Inputs to A1 to A4 and B1 to B4. 2. Make the connection as per circuit diagram. 3. Switch on VCC and apply various combinations of input according to the

    Truth table.

    4. The truth tables of Adder, Subtractor and adder-Subtractor are noted down.

    Adder

    ICs Pin configuration

    I C 4 0 0 8

  • Digital Electronics Lab Manual

    Page 11

    Truth Table of Adder A3 A2 A1 A0 B3 B2 B1 B0 C4(V) S3(V) S2(V) S1(V) S0(V) 0 0 0 1 0 0 1 0 0 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 0 1 1 1 0 0 1 1 Subtractor:-

    Truth Table of Subtractor A3 A2 A1 A0 B3 B2 B1 B0 C4(V) S3(V) S2(V) S1(V) S0(V) 0 0 1 0 0 0 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 0 0 1 1 1 1 Adder / Subtractor Add=0 Subtract=1

  • Digital Electronics Lab Manual

    Page 12

    Truth Table of Adder / Subtractor

    Input Data A Input Data B Addition Subtraction A4 A3 A2 A1 B4 B3 B2 B1 Cout S4 S3 S2 S1 Bout D4 D3 D2 D1 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 1 1 1 1 0 1 0 1 0 1 1 Conclusion:___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ______________________________________________________________________________ ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

  • Digital Electronics Lab Manual

    Page 13

    Experiment No: 4 Date: __/__/____

    4-bit magnitude comparator Aim: - To Verify 4-bit magnitude comparator operation. Apparatus Required: - IC 74LS85 Procedure:-

    1. Make the connection as per pin diagram of 74LS85 IC. 2. Switch on VCC and apply various inputs according to the function table. 3. Verify the output readings for different inputs according to function table.

    Conclusion:_______________________________________________________________________________________________________________________________________________________________________________________________________________________________ ______________________________________________________________________________

    Signature of the staff in charge

  • Digital Electronics Lab Manual

    Page 14

    Experiment No: 5 Date: __/__/____

    Multiplexer and De Multiplexer:

    Aim: - To Verify truth table of Multiplexer and verify a De multiplexer. Apparatus Required: - IC 4514, 4515 Procedure:-

    4. Make the connection as per circuit diagram. 5. Switch on VCC and apply various inputs according to the Truth table. 6. Note down the output readings for Multiplexer and De Multiplexer.

    8 input- Multiplexer

    1-16 line De Multiplexer

    S0 S1 S2 Z 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 E A0 A1 A2 A3 O/P 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 0 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1

  • Digital Electronics Lab Manual

    Page 15

    74LS139, 1 to 4 line De Multiplexer

    Conclusion:___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ______________________________________________________________________________ ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

    G B A Y 0 0 0 0 0 1 0 1 0 0 1 1

  • Digital Electronics Lab Manual

    Page 16

    Experiment No: 6 Date: __/__/____

    Decoder and Encoder

    Aim: - To design and implement of Decoder and Encoder. Apparatus Required: - IC 4514, 45147 Procedure:-

    1. Make the connection as per circuit diagram of 4514 shown in Experiment No 5, for decoder circuit

    2. Make the connection as per circuit diagram of 45147 given down for Encoder. 3. Switch on VCC and apply various inputs according to the Truth table. 4. Note down the output readings for Decoder and Encoder.

    Truth Table of Decoder:- No BCD inputs Decimal output A0 A1 A2 A3 0 1 2 3 4 5 6 7 8 9 0 L L L L 1 L L L H 2 L L H L 3 L L H H 4 L H L L 5 L H L H 6 L H H L 7 L H H H 8 H L L L 9 H L L H

    Encoder

  • Digital Electronics Lab Manual

    Page 17

    Truth Table of Encoder

    Decimal Digit BCD code A B C D 0 1 2 3 4 5 6 7 8 9 Conclusion:___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ______________________________________________________________________________ ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

  • Digital Electronics Lab Manual

    Page 18

    Experiment No: 7 Date: __/__/____

    BCD to Seven Segment Decoder

    Aim: - To design and implement of BCD to seven segment Decoder. Apparatus Required: - IC 74LS47, seven segment display. Procedure:-

    1. Make the connection as per circuit diagram of 74LS47 2. Switch on VCC and apply various inputs according to the Truth table. 3. Note down the output readings for Decoder using seven segment displays.

    BCD to Seven segment Decoder/Driver

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ Signature of the staff in charge

    A0 A1 A2 A3 Digits a b c d e f g 0 0 0 0 0 0 0 0 1 1 0 0 1 0 2 0 0 1 1 3 0 1 0 0 4 0 1 0 1 5 0 1 1 0 6 0 1 1 1 7 1 0 0 0 8 1 0 0 1 9

  • Digital Electronics Lab Manual

    Page 19

    Experiment No: 8 Date: __/__/____

    RS Flip Flop

    Aim:- To Verify function of RS Flip-Flop.

    Apparatus Required: - IC 4043

    Procedure:- 1. Make the connection as per circuit diagram. 2. Switch on VCC and apply various inputs according to the Truth table. 3. Note down the output readings for RS Flip-Flop in truth table.

    IC4043 Pin Diagram Truth Table

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ Signature of the staff in charge

    S R Q Mode of Operation 0 0

    0 1

    1 0

    1 1

  • Digital Electronics Lab Manual

    Page 20

    Experiment No: 9 Date: __/__/____

    D Flip Flop

    Aim: - To Verify function of D Flip-Flop.

    Apparatus Required: - IC 4013

    Procedure:- 1. Make the connection as per circuit diagram. 2. Switch on VCC and apply various inputs according to the Truth table. 3. Note down the output readings for D Flip-Flop in truth table. IC4013 Pin Diagram Truth Table

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

    CL D S R Q Q 0 0 0

    1 0 0

    0 0 Q Q 0 1

    1 0

    1 1

  • Digital Electronics Lab Manual

    Page 21

    Experiment No: 10 Date: __/__/____

    JK Flip Flop

    Aim: - To Verify function of JK Flip-Flop.

    Apparatus Required: - IC 4027 or 74LS76

    Procedure:- 1. Make the connection as per circuit diagram. 2. Switch on VCC and apply various inputs according to the Truth table. 3. Note down the output readings for JK Flip-Flop in truth table.

    IC4027 Pin Diagram 74LS76 Pin Diagram

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ______________________________________________________________________________

    Signature of the staff in charge

    CL J K Q Q Mode of Operation 0 0

    0 1

    1 0

    1 1

  • Digital Electronics Lab Manual

    Page 22

    Experiment No: 11 Date: __/__/____

    Schmitt Trigger

    Aim: - To Verify function of Schmitt Trigger.

    Apparatus Required: - IC 4093 or 74LS13 or 74LS14

    Procedure:- 1. Make the connection as per circuit diagram. 2. Switch on VCC and apply various inputs according to the circuit diagram. 3. Check the output wave form on oscilloscope.

    IC4093Pin Diagram

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

    Wave form

  • Digital Electronics Lab Manual

    Page 23

    Experiment No: 12 Date: __/__/____

    Uses of IC 555 Aim: - To construct Astable and Monostable Multivibrator by using 555 timer and Verify there functions. Apparatus Required: - IC 555 ,74LS13 or 74LS14

    Procedure:- 1. Make the connection as per circuit diagram. 2. Switch on VCC and apply various inputs according to the circuit diagram. 3. Check the output wave form on oscilloscope.

    IC555 Pin Diagram

    Circuit diagram of Astable 555 timer

    Circuit diagram of Monostable 555 timer

    In the astable timer, the out put voltage wave form is square wave. The width of this wave is dependent on capacitor charging and discharging time. when the capacitor is charging the output is high thats time period is: When capacitor is discharging, output is low thats time period is: and

    In monostable timer, its output high for several seconds or minutes when a negative trigger pulse is applied on its pin2.the time period of high output is depend on capacitor charging time:

    When capacitor charging complete, output will low. Due to this resin this circuit is also called one-short operation of 555 timer.

  • Digital Electronics Lab Manual

    Page 24

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

  • Digital Electronics Lab Manual

    Page 25

    Experiment No: 13 Date: __/__/____

    Shift Registers

    Aim: - To Verify function of different shift resistors.

    Apparatus Required: - 74LS164 , 74LS65 ,4035

    Procedure:- 1. Make the connection as per circuit diagram. 2. Switch on VCC and apply various inputs according to the circuit diagram. 3. Check the output and note down in the truth table.

    SIPO 74LS164

    CLK Serial in

    - - H 1 H 0 H 0 H 1 H 0 H 1 H 1 H 1

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ______________________________________________________________________________

  • Digital Electronics Lab Manual

    Page 26

    PISO and SISO 74LS165

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ____________________________________________________________________________________________________________________________________________________________

  • Digital Electronics Lab Manual

    Page 27

    PIPO 4035

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ ____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

  • Digital Electronics Lab Manual

    Page 28

    Experiment No: 14 Date: __/__/____

    Counters

    Aim: - To Verify function of different Counters.

    Apparatus Required: - 74LS164 , 74LS65 ,4035

    Procedure:- 1. Make the connection as per circuit diagram. 2. Switch on VCC and apply various inputs according to the circuit diagram. 3. Check the output and note down in the truth table.

    74LS93, divide by 12 counter

    74LS163, 4-bit synchronous counter

    No. of CP

    Binary counting sequence

    Decimal count

    1 2 3 4 5 6 7 8 9

    10 11 12 13 14 15 16

    (Recycles)

  • Digital Electronics Lab Manual

    Page 29

    74LS191, Synchronous 4-Bit Up/Down Counter with Mode Control

    74LS197, 4-STAGE PRESETTABLE RIPPLE COUNTERS

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

  • Digital Electronics Lab Manual

    Page 30

    ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

  • Digital Electronics Lab Manual

    Page 31

    Experiment No: 15 Date: __/__/____

    Memory Devices

    Aim: - To study the function of different memory devices.

    PIC12C67X EPROM Memory Programming Specification

    1.0 PROGRAMMING THE PIC12C67X AND PIC12CE67X The PIC12C67X and PIC12CE67X can be programmed using a serial method. In serial mode the PIC12C67X and PIC12CE67X can be programmed while in the users system. This allows for increased design flexibility. 1.1 Hardware Requirements The PIC12C67X and PIC12CE67X requires two programmable power supplies, one for VDD (2.0V to 6.0V recommended) and one for VPP (12V to 14V). Both supplies should have a minimum resolution of 0.25V. 1.2 Programming Mode The programming mode for the PIC12C67X and PIC12CE67X allows programming of user program memory, special locations used for ID, and the configuration word for the PIC12C67X and PIC12CE67X.

    24AA00 128 Bit I2C Bus Serial EEPROM

    PIN DESCRIPTIONS 1. SDA Serial Data This is a bidirectional pin used to transfer addresses and data into and data out of the device. It is an open

  • Digital Electronics Lab Manual

    Page 32

    drain terminal, therefore the SDA bus requires a pull-up resistor to VCC (typical 10 k for 100 kHz, 2 k for 400 kHz). For normal data transfer SDA is allowed to change only during SCL low. Changes during SCL high are reserved for indicating the Start and Stop conditions.

    2. SCL Serial Clock This input is used to synchronize the data transfer from and to the device.

    3. Noise Protection The SCL and SDA inputs have Schmitt Trigger and filter circuits which suppress noise spikes to assure proper device operation even on a noisy bus.

    UVEPROM Built-in 8-bit single chip microcontroller

    HM-6514 1024 x 4 CMOS RAM

    Conclusion:_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

  • Digital Electronics Lab Manual

    Page 33

    ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

  • Digital Electronics Lab Manual

    Page 34

    Experiment No: 16 Date: __/__/____

    8085 Microprocessor Aim: - To study the function of 8085 Microprocessor.

    Address Bus: The pins A8-A15 denote the address bus. They are used for the most significant bit of memory address. Address/Data Bus: AD0-AD7 constitutes the Address/Data bus. They are time multiplexed. These pins are used for least significant bits of address bus in the first machine clock cycle and used as data bus for second and third clock cycle. But what is a clock cycle? What is first clock cycle and second, third so on... A clock cycle is nothing but the time taken between two adjacent pulses of the oscillator. In simple words clock cycle refers to the transition between o volts to 5 volts and back to 0 volts. So the first clock cycle means the first transition of pulse from 0volts to 5 volts and then back to 0 volts. ALE: Address Latch Enable: In the previous article we saw how ALE helps in demultiplexing the lower order address and data bus. This signal goes high during the first clock cycle and enables the lower order address bits. The lower order address bus is added to memory or any external latch. IO/M: Consider we have an address to be processed. But how do the processors know whether the address is for memory or I/O functions? For this purpose a status signal called IO/M is used. This distinguishes whether the address is for memory or IO. When this pin goes high, the address is for an I/O device. While the pin goes low, the address is assigned for the memory. S0-S1: S0 and S1 are status signals which provides different status and functions depending on their status.

  • Digital Electronics Lab Manual

    Page 35

    RD: This is an active low signal. That is, an operation is performed when the signal goes low. This signal is used to control READ operation of the microprocessor. When this pin goes low the microprocessor reads the data from memory or I/O device. WR: WR is also an active low signal which controls the write operations of the microprocessor. When this pin goes low, the data is written to the memory or I/O device. READY: READY is used by the microprocessor to check whether a peripheral is ready to accept or transfer data. A peripheral may be a LCD display or analog to digital converter or any other. These peripherals are connected to microprocessor using the READY pin. If READY is high then the periphery is ready for data transfer. If not the microprocessor waits until READY goes high. HOLD: This indicates if any other device is requesting the use of address and data bus. Consider two peripheral devices. One is the LCD and the other Analog to Digital converter. Suppose if analog to digital converter is using the address and data bus and if LCD requests the use of address and data bus by giving HOLD signal, then the microprocessor transfers the control to the LCD as soon as the current cycle is over. After the LCD process is over, the control is transferred back to analog and digital converter. HLDA: HLDA is the acknowledgment signal for HOLD. It indicates whether the HOLD signal is received or not. After the execution of HOLD request, HLDA goes low. INTR: INTR is an interrupt request signal. It has the lowest priority among the interrupts. INTR can be enabled or disabled by using software. Whenever INTR goes high the microprocessor completes the current instruction which is being executed and then acknowledges the INTR signal and processes it. INTA: Whenever the microprocessor receives interrupt signal. It has to be acknowledged. This acknowledgement is done by INTA. So whenever the interrupt is received INTA goes high. RST 5.5, 6.5, 7.5: These are nothing but the restart interrupts. They insert an internal restart function automatically. All the above mentioned interrupts are maskable interrupts. That is, they can be enabled or disabled using programs. TRAP: Among the interrupts of 8085 microprocessor, TRAP is the only non-maskable interrupt. It cannot be enabled or disabled using a program. It has the highest priority among the interrupts. PRIORITY ORDER (From highest to lowest) TRAP RST 7.5 RST 6.5 RST 5.5 INTR RESET IN: This pin resets the program counter to 0 and resets interrupt enable and HLDA flip-flops. The CPU is held in reset condition until this pin is high. However the flags and registers wont get affected except for instruction register. RESET OUT: This pin indicates that the CPU has been reset by RESET IN.

  • Digital Electronics Lab Manual

    Page 36

    X1 X2: These are the terminals which are connected to external oscillator to produce the necessary and suitable clock operation. CLK: Sometimes it is necessary for generating clock outputs from microprocessors so that they can be used for other peripherals or other digital ICs. This is provided by CLK pin. Its frequency is always same as the frequency at which the microprocessor operates. SID: This pin provides serial input data. The serial data on this pin is loaded into the seventh bit of the accumulator when RIM instruction is executed. RIM stands for READ INTERRUPT MASK, which checks whether the interrupt is masked or not. SOD: This pin provides the serial output data. The serial data on this pin delivers its output to the seventh bit of the accumulator when SIM instruction is executed. Vcc and Vss: Vcc is +5v pin and Vss is ground pin. Thus the pin diagram and signals of 8085 microprocessor are explained in detail.

    Conclusion:____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Signature of the staff in charge

  • Digital Electronics Lab Manual

    Page 37

    Project-1

    Moving message display