100% found this document useful (1 vote)
280 views

Lab Manual of ECE316 PDF

This document contains the laboratory manual for the course ECE-316 Microprocessor and Microcontroller Applications. It includes 10 experiments related to programming 8085 and 8051 microprocessors. The experiments cover basic programs, mathematical operations, code conversions, interfacing with stepper motor and ADC, GPIO programming of 8051, and interfacing 8051 with LCD and keyboard. Each experiment contains the aim, requirements, algorithm, program code, procedure, observations table and learning outcomes. The manual provides guidance to students to perform the listed experiments and learn about microprocessor and microcontroller applications.

Uploaded by

Ranjith Kasu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
280 views

Lab Manual of ECE316 PDF

This document contains the laboratory manual for the course ECE-316 Microprocessor and Microcontroller Applications. It includes 10 experiments related to programming 8085 and 8051 microprocessors. The experiments cover basic programs, mathematical operations, code conversions, interfacing with stepper motor and ADC, GPIO programming of 8051, and interfacing 8051 with LCD and keyboard. Each experiment contains the aim, requirements, algorithm, program code, procedure, observations table and learning outcomes. The manual provides guidance to students to perform the listed experiments and learn about microprocessor and microcontroller applications.

Uploaded by

Ranjith Kasu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

LABORATORY MANUAL ECE -316

Microprocessor & Microcontroller Applications

Name of the Student:..


Registration Number/Roll No.
Section and Group..
School of Electronics Engineering

Table of Contents
Sr. No.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

Name of Experiment
Basic 8085 programs using kit
8085 Programs on Kit
Code conversion using 8085
8085 and Stepper Motor
Analog to Digital Conversion using 8085
8051 Basic Program
GPIO of 8051
LCD and 8051
Keyboard and 8051
ADC and 8051

Page No.
3
12
22
28
31
34
37
40
43
47

Experiment-1
AIM: To perform the basic 8085 programs using kit
i)
ii)
iii)
iv)

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


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

Requirements: 8085 kit


i)

Addition of two 8-bit nos.

Algorithm:

Program: i)

ii)

Subtraction of two 8-bit nos.

Algorithm:

Program ii)

iii)

Addition of two 16-bit nos.

Algorithm :

Program iii)

iv)

Subtraction of two 16- bit nos.

Algorithm:

Program iv)

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

Worksheet of the student


Date of Performance

Registration No.

AIM:
Observation Table:
i)

Addition of two 8-bit nos.


1st location = data

Sr. no.

2nd location= data

Result
3rd location= data

Without
carry
With
carry
ii)

Subtraction of two 8-bit nos.


1st location=data

Sr. no.

2nd location=data

Result
3rd location=data

2nd location=data

Result
3rd location=data

2nd location= data

Result
3rd location=data

Without carry
With carry
iii)

Addition of two 16- bit nos.


1st location= data

Sr. no.
Without carry
With carry
iv)

Subtraction of two 16-bit nos.

Sr. no.

1st location=data

Without carry
With carry
Learning Outcomes (what I have learnt):

10

To be filled by the faculty:


S. No. Parameter
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness
Signature of Faculty

Marks Obtained

Max. Marks
20
20
10

Total Marks
Obtained

11

Experiment 2:
AIM: To perform the 8085 programs on kit
i)
ii)
iii)
iv)

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


To perform the experiment for division of two 8-bit nos.
To perform the experiment to sort given n nos. in ascending order.
To perform the experiment to sort given n nos. in descending order.

Requirements: 8085 kit


i)

Multiply two 8-bit nos.

Algorithm:

Program
i)

12

ii)

Division of two 8-bit nos.

Algorithm:

13

Program: ii)

14

iii)
Sorting of nos . in ascending order
Algorithm:

15

Program iii)

iv)

Sorting of nos. in descending order

Algorithm:
16

Program iv)

17

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.
18

(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.

19

Worksheet of performance
Date of performance:

Registration No.:

AIM:
i)

Multiplication of two 8-bit nos.


1st location=data

Sr. no.

ii)

1st location=data

2nd location=data

Result
3rd location=data

Sorting of nos. in ascending order

Input address

iv)

Result
3rd location=data

Division of two 8-bit nos.

Sr. no.

iii)

2nd location=data

Value

Sorting of nos. in descending order

Input address

Value

Learning outcomes:

20

To be filled by the faculty:


S. No. Parameter
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness
Signature of Faculty

Marks Obtained

Max. Marks
20
20
10

Total Marks
Obtained

21

Experiment -3
AIM: To perform the Code conversion program using 8085
i)
ii)

To perform the experiment for BCD to binary code conversion


To perform the experiment for binary to BCD code conversion

Requirements: 8085 kit


i)

BCD to binary code conversion

Algorithm:

Program: i)

22

ii)

Binary to BCD code conversion

Algorithm:

23

Program ii)

24

Outline of the Procedure


25

(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.

26

Worksheet of student
Date of performance:
No.:

Registration

Aim:
i)

BCD to binary code conversion

Input address=
Output address =
ii)

Value=
Value=

Binary to BCD code conversion

Input address=
Output address=

Value=
Value=

Learning outcomes:

To be filled by the faculty:


S. No. Parameter
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness
Signature of Faculty

Marks Obtained

Max. Marks
20
20
10

Total Marks
Obtained

27

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:

28

Result: Thus, an assembly language program to control the stepper motor was written
using 8085 kit.

29

Worksheet of student
Date of performance:

Registration no.:

AIM:

i)

ii)

Forward direction
Input address

Value

Reverse direction
Input address

Value

Learning outcomes:

To be filled by the faculty:


S. No. Parameter
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness
Signature of Faculty

Marks Obtained

Max. Marks
20
20
10

Total Marks
Obtained

30

Experiment no. 5
AIM: To perform an assembly language program to convert analog to digital signal
and to display it in 7-segment LED display.
Requirements: 8085 kit, 7-segment LED, wires, bread board.
Circuit:

Program:

31

32

Worksheet of student
Date of performance:
No.:

Registration

AIM:

Observation Table: Output of 7-segment display


Input

Result

Learning outcomes:

To be filled by the faculty:


S. No. Parameter
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness
Signature of Faculty

Marks Obtained

Max. Marks
20
20
10

Total Marks
Obtained

33

Experiment no. 6
AIM: To perform the Basic programs of 8051
i)
ii)
iii)
iv)

To perform the experiment to toggle all the bits of P1 after some delay.
To perform the experiment to generate square wave of 50% duty cycle on bit 0 of
port 1.
To perform the experiment to add two 16 bit nos. 3CE7H and 3B8DH. Place the
sum in R7 and R6 (lower byte).
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)
34

Program iv)

35

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
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness
Signature of Faculty

Marks Obtained

Max. Marks
20
20
10

Total Marks
Obtained

36

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,LEDs, 8051,11.0592 MHz
crystal,33pF(2),10F,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 port
of 8051 using switches.
Outline of the procedure:

Circuit Diagram:

37

Program :
org 0000h
mov p1,#0ffh
back:mov p2,#00h
mov 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,#ffh
acall 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

38

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
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness

Marks Obtained

Max. Marks
20
20
10

39

Signature of Faculty

Total Marks
Obtained

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),10F,10K,push button,1K,LCD,Bread board, connecting wires,5V power
supply.
Circuit Diagram:

40

40

41

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
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness
Signature of Faculty

Marks Obtained

Max. Marks
20
20
10

Total Marks
Obtained

42

Experiment no. 9:
AIM: To perform the Interfacing of keyboard with microcontroller 8051.
Requirements: Keil software,proteus software,8051,11.0592 MHz ,10F,10K,push
button,1K,LCD,Bread board, connecting wires,5V power supply, 5piece of keys, 4k
resistor,10k resistor, crystal,33pF(2).
Circuit Diagram:

43

44

45

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
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness
Signature of Faculty

Marks Obtained

Max. Marks
20
20
10

Total Marks
Obtained

46

Experiment 10:
AIM: To perform the Interfacing of ADC with 8051 microcontroller.
Requirements: Keil software,proteus software,8051 ,11.0592MHz crystal, 33pf
,10f,10K,push button,1K,Analog to digital convertor (ADC0804), breadboard, connecting
wires, 5v power supply.
Circuit Diagram:

Program:

47

48

49

50

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
1
Understanding of the student about
the procedure/apparatus
2
Observations and analysis
including learning outcome
3
Completion of experiment ,
Discipline and cleanliness
Signature of Faculty

Marks Obtained

Max. Marks
20
20
10

Total Marks
Obtained

50

You might also like