lab manual of ece316.pdf

Upload: ranjith-kasu

Post on 07-Aug-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/20/2019 Lab Manual of ECE316.pdf

    1/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    2/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    3/53

    3

    Experiment-1 

    AIM: To perform the basic 8085 programs using kit 

    i)  To perform the experiment for addition of two 8-bit nos.

    ii) 

    To perform the experiment for subtraction of two 8-bit nos.iii)  To perform the experiment for addition of two 16-bit nos.

    iv)  To perform the experiment for subtraction of two 16-bit nos.

    Requirements: 8085 kit

    i) 

    Addition of two 8-bit nos.

    Algorithm:

    Program: i)

  • 8/20/2019 Lab Manual of ECE316.pdf

    4/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    5/53

    5

    iii) 

    Addition of two 16-bit nos.

    Algorithm :

    Program iii)

  • 8/20/2019 Lab Manual of ECE316.pdf

    6/53

    6

  • 8/20/2019 Lab Manual of ECE316.pdf

    7/53

    7

    iv)  Subtraction of two 16- bit nos.

    Algorithm:

    Program iv)

  • 8/20/2019 Lab Manual of ECE316.pdf

    8/53

    8

  • 8/20/2019 Lab Manual of ECE316.pdf

    9/53

    9

    Outline of the Procedure 

    (a) Switch on the Microprocessor kit and press reset.

    (b) Press „1‟ and then „A‟ for writing the code in assembly language.

    (c) 

    ) Select the starting RAM address for writing the code.

    (d) Start writing the above mentioned program(s) from the selected RAM

    address.

    (e) For executing the code, press „G‟ and write the memory location from

    which the code has been started.

    (f) Then press shift + $

    Cautions: 

    a. Before enter the program press RST key on 8085 kit.

     b. Proper care must be taken while handling the microprocessor kit.

    Learning outcomes: Mathematical operations using 8085 microprocessor.

    Result: Mathematical operations using 8085 kit

  • 8/20/2019 Lab Manual of ECE316.pdf

    10/53

    10

    Worksheet of the student 

    Date of Performance Registration No. 

    AIM: 

    Observation Table: 

    i)  Addition of two 8-bit nos.

    Sr. no. 1st location = data 2n location= data Result

    3rd location= data

    Withoutcarry

    With

    carry

    ii) 

    Subtraction of two 8-bit nos.

    Sr. no. 1st location=data 2n location=data Result

    3rd location=data

    Without carry

    With carry

    iii) 

    Addition of two 16- bit nos.

    Sr. no. 1st location= data 2n location=data Result

    3rd location=data

    Without carry

    With carry

    iv)  Subtraction of two 16-bit nos.

    Sr. no. 1st location=data 2n location= data Result

    3

    rd

    location=dataWithout carry

    With carry

    Learning Outcomes (what I have learnt): 

  • 8/20/2019 Lab Manual of ECE316.pdf

    11/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    12/53

    12

    Experiment 2: 

    AIM: To perform the 8085 programs on kit 

    i)  To perform the experiment to multiply two 8-bit nos.

    ii) 

    To perform the experiment for division of two 8-bit nos.iii)

     

    To perform the experiment to sort given “n” nos. in ascending order.

    iv) 

    To perform the experiment to sort given “n” nos. in descending order.

    Requirements: 8085 kit 

    i)  Multiply two 8-bit nos.

    Algorithm: 

    Program

    i)

  • 8/20/2019 Lab Manual of ECE316.pdf

    13/53

    13

    ii) 

    Division of two 8-bit nos.

    Algorithm: 

  • 8/20/2019 Lab Manual of ECE316.pdf

    14/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    15/53

    15

    iii)  Sorting of nos . in ascending order

    Algorithm: 

  • 8/20/2019 Lab Manual of ECE316.pdf

    16/53

    16

    Program iii)

    iv)  Sorting of nos. in descending order

    Algorithm:

  • 8/20/2019 Lab Manual of ECE316.pdf

    17/53

    17

    Program iv)

  • 8/20/2019 Lab Manual of ECE316.pdf

    18/53

    18

    Outline of the Procedure 

    (a) Switch on the Microprocessor kit and press reset.

    (b) Press „1‟ and then „A‟ for writing the code in assembly language.

  • 8/20/2019 Lab Manual of ECE316.pdf

    19/53

    19

    (c) 

    ) Select the starting RAM address for writing the code.

    (d) Start writing the above mentioned program(s) from the selected RAM

    address.

    (e) For executing the code, press „G‟ and write the memory location from

    which the code has been started.

    (f) Then press shift + $

    Cautions: 

    a. Before enter the program press RST key on 8085 kit.

     b. 

    Proper care must be taken while handling the microprocessor kit.

    Result: Mathematical operations using 8085 microprocessor.

  • 8/20/2019 Lab Manual of ECE316.pdf

    20/53

    20

    Worksheet of performance 

    Date of performance: Registration No.: 

    AIM:

    i) 

    Multiplication of two 8-bit nos.

    Sr. no. 1st location=data 2n location=data Result

    3rd location=data

    ii) 

    Division of two 8-bit nos.

    Sr. no. 1st location=data 2n location=data Result

    3rd location=data

    iii) 

    Sorting of nos. in ascending order

    Input address Value

    iv) 

    Sorting of nos. in descending order

    Input address Value

    Learning outcomes:

  • 8/20/2019 Lab Manual of ECE316.pdf

    21/53

    21

    To be filled by the faculty:

    S. No. Parameter Marks Obtained Max. Marks

    1 Understanding of the student about

    the procedure/apparatus

    20

    2 Observations and analysis

    including learning outcome

    20

    3 Completion of experiment ,

    Discipline and cleanliness

    10

    Signature of Faculty Total Marks

    Obtained

  • 8/20/2019 Lab Manual of ECE316.pdf

    22/53

    22

    Experiment -3 

    AIM: To perform the Code conversion program using 8085 

    i)  To perform the experiment for BCD to binary code conversion

    ii) 

    To perform the experiment for binary to BCD code conversion

    Requirements: 8085 kit

    i)  BCD to binary code conversion

    Algorithm:

    Program: i)

  • 8/20/2019 Lab Manual of ECE316.pdf

    23/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    24/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    25/53

    25

    Outline of the Procedure 

  • 8/20/2019 Lab Manual of ECE316.pdf

    26/53

    26

    (a) Switch on the Microprocessor kit and press reset.

    (b) Press „1‟ and then „A‟ for writing the code in assembly language.

    (c) ) Select the starting RAM address for writing the code.

    (d) 

    Start writing the above mentioned program(s) from the selected RAM

    address.

    (e) For executing the code, press „G‟ and write the memory location from

    which the code has been started.

    (f) Then press shift + $

    Cautions: 

    a. Before enter the program press RST key on 8085 kit.

     b. Proper care must be taken while handling the microprocessor kit.

    Result: Code conversion using 8085 microprocessor.

  • 8/20/2019 Lab Manual of ECE316.pdf

    27/53

    27

    Worksheet of student 

    Date of performance: Registration 

    No.: 

    Aim:

    i) 

    BCD to binary code conversion

    Input address= Value=

    Output address = Value=

    ii)  Binary to BCD code conversion

    Input address= Value=

    Output address= Value=

    Learning outcomes:

    To be filled by the faculty:

    S. No. Parameter Marks Obtained Max. Marks

    1 Understanding of the student aboutthe procedure/apparatus

    20

    2 Observations and analysis

    including learning outcome

    20

    3 Completion of experiment ,

    Discipline and cleanliness

    10

    Signature of Faculty Total Marks

    Obtained

  • 8/20/2019 Lab Manual of ECE316.pdf

    28/53

    28

    Experiment- 4 

    AIM: To perform the Interfacing and control of stepper motor using 8085 microprocessor .

    Requirement: Stepper motor , 8085 kit

    Algorithm: 

    Program: 

    Forward direction:

    Reverse direction:

  • 8/20/2019 Lab Manual of ECE316.pdf

    29/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    30/53

    30

    Worksheet of student 

    Date of performance: Registration no.: 

    AIM: 

    i)  Forward direction

    Input address Value

    ii)  Reverse direction

    Input address Value

    Learning outcomes: 

    To be filled by the faculty:S. No. Parameter Marks Obtained Max. Marks

    1 Understanding of the student about

    the procedure/apparatus

    20

    2 Observations and analysis

    including learning outcome

    20

    3 Completion of experiment ,

    Discipline and cleanliness

    10

    Signature of Faculty Total Marks

    Obtained

  • 8/20/2019 Lab Manual of ECE316.pdf

    31/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    32/53

    32

  • 8/20/2019 Lab Manual of ECE316.pdf

    33/53

    33

    Worksheet of student 

    Date of performance: Registration 

    No.:

    AIM: 

    Observation Table: Output of 7-segment display

    Input Result

    Learning outcomes:

    To be filled by the faculty:

    S. No. Parameter Marks Obtained Max. Marks

    1 Understanding of the student about

    the procedure/apparatus

    20

    2 Observations and analysis

    including learning outcome

    20

    3 Completion of experiment ,

    Discipline and cleanliness

    10

    Signature of Faculty Total Marks

    Obtained

  • 8/20/2019 Lab Manual of ECE316.pdf

    34/53

    34

    Experiment no. 6 

    AIM: To perform the Basic programs of 8051 

    i)  To perform the experiment to toggle all the bits of P1 after some delay.

    ii) 

    To perform the experiment to generate square wave of 50% duty cycle on bit 0 of port 1.

    iii) 

    To perform the experiment to add two 16 bit nos. 3CE7H and 3B8DH. Place the

    sum in R7 and R6 (lower byte).

    iv) 

    To perform the experiment for HEX to ASCII conversion.

    Requirements: Keil software

    Learning Objectives: Use of keil software to perform basic assembly programs

    Outline of the procedure: 

    Program i) 

    Program ii)

    Program iii)

  • 8/20/2019 Lab Manual of ECE316.pdf

    35/53

    35

    Program iv)

  • 8/20/2019 Lab Manual of ECE316.pdf

    36/53

    36

    Worksheet of student 

    Date of performance: Registration No.: 

    AIM: 

    Simulation for program i) 

    Simulation for program ii) 

    Simulation for program iii) 

    Simulation for program iv) 

    To be filled by the faculty:

    S. No. Parameter Marks Obtained Max. Marks

    1 Understanding of the student about

    the procedure/apparatus

    20

    2 Observations and analysis

    including learning outcome

    20

    3 Completion of experiment ,

    Discipline and cleanliness

    10

    Signature of Faculty Total Marks

    Obtained

  • 8/20/2019 Lab Manual of ECE316.pdf

    37/53

    37

    Experiment no. 7 

    AIM: To perform the GPIO of 8051 

    To perform the experiment to display a pattern on LED's connected at the port of 8051 using

    switches.

    Requirements: Keil software,Proteus software Switches,LED‟s, 8051,11.0592 MHz

    crystal,33pF(2),10µF,10K,push button, Bread board, connecting wires,5V power supply.

    Learning Objectives: Use of keil software to display a pattern on LED's connected at the portof 8051 using switches.

    Outline of the procedure:

    Circuit Diagram: 

  • 8/20/2019 Lab Manual of ECE316.pdf

    38/53

    38

    Program :

    org 0000h

    mov p1,#0ffh

     back:mov p2,#00hmov a,p1

    cje a,0ffh,back

    anl a,#03h

    cne a,01,k1

    mov p2,#0aah

    acall delay

    mov p2,#55h

    acall delay

    sjmp back

    k1:mov p2,#ffhacall delay

    mov p2,#00h

    acall delay

    sjmp back

    delay:mov r0.#08h

     b3:mov r1,#0ffh

     b2:mov r2,#0ffh

     b1:djnz r2,b1

    djnz r2,b2

    djnz r2,b3

    ret

  • 8/20/2019 Lab Manual of ECE316.pdf

    39/53

  • 8/20/2019 Lab Manual of ECE316.pdf

    40/53

    40

    Signature of Faculty Total Marks

    Obtained

  • 8/20/2019 Lab Manual of ECE316.pdf

    41/53

    40

    Experiment no. 8: 

    AIM: To perform the Interfacing of LCD with 8051 microcontroller. 

    Requirements: Keil software,Proteus software ,8051,11.0592 MHz

    crystal,33pF(2),10µF,10K,push button,1K,LCD,Bread board, connecting wires,5V powersupply.

    Circuit Diagram:

  • 8/20/2019 Lab Manual of ECE316.pdf

    42/53

    40

  • 8/20/2019 Lab Manual of ECE316.pdf

    43/53

    41

  • 8/20/2019 Lab Manual of ECE316.pdf

    44/53

    42

    Worksheet of student 

    Date of performance: Registration no.: 

    AIM: 

    Observation : (Show & paste the result using proteus design)

    Learning Outcome: 

    To be filled by the faculty:

    S. No. Parameter Marks Obtained Max. Marks1 Understanding of the student about

    the procedure/apparatus

    20

    2 Observations and analysis

    including learning outcome

    20

    3 Completion of experiment ,

    Discipline and cleanliness

    10

    Signature of Faculty Total Marks

    Obtained

  • 8/20/2019 Lab Manual of ECE316.pdf

    45/53

    43

    Experiment no. 9: 

    AIM: To perform the Interfacing of keyboard with microcontroller 8051. 

    Requirements: Keil software,proteus software,8051,11.0592 MHz ,10µF,10K,push

     button,1K,LCD,Bread board, connecting wires,5V power supply, 5piece of keys, 4kresistor,10k resistor, crystal,33pF(2).

    Circuit Diagram:

  • 8/20/2019 Lab Manual of ECE316.pdf

    46/53

    44

  • 8/20/2019 Lab Manual of ECE316.pdf

    47/53

    45

  • 8/20/2019 Lab Manual of ECE316.pdf

    48/53

    46

    Worksheet of student 

    Date of performance: Registration No.: 

    AIM: 

    Observation (show & paste the result of proteus design) 

    Learning outcomes: 

    To be filled by the faculty:

    S. No. Parameter Marks Obtained Max. Marks

    1 Understanding of the student aboutthe procedure/apparatus

    20

    2 Observations and analysis

    including learning outcome

    20

    3 Completion of experiment ,

    Discipline and cleanliness

    10

    Signature of Faculty Total Marks

    Obtained

  • 8/20/2019 Lab Manual of ECE316.pdf

    49/53

    47

    Experiment 10: 

    AIM: To perform the Interfacing of ADC with 8051 microcontroller. 

    Requirements: Keil software,proteus software,8051 ,11.0592MHz crystal, 33pf

    ,10µf,10K,push button,1K,Analog to digital convertor (ADC0804), breadboard, connectingwires, 5v power supply.

    Circuit Diagram: 

    Program: 

  • 8/20/2019 Lab Manual of ECE316.pdf

    50/53

    48

  • 8/20/2019 Lab Manual of ECE316.pdf

    51/53

    49

  • 8/20/2019 Lab Manual of ECE316.pdf

    52/53

    50

  • 8/20/2019 Lab Manual of ECE316.pdf

    53/53

    Worksheet of student 

    Date of performance: Registration No.: 

    AIM: 

    Observation (show & paste the result of proteus design) 

    Learning outcomes: 

    To be filled by the faculty:

    S. No. Parameter Marks Obtained Max. Marks

    1 Understanding of the student aboutthe procedure/apparatus

    20

    2 Observations and analysis

    including learning outcome

    20

    3 Completion of experiment ,

    Discipline and cleanliness

    10

    Signature of Faculty Total Marks

    Obtained