0% found this document useful (0 votes)
13 views

MPMC Lab Manual 2022 Students (1)

Uploaded by

21ee011
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

MPMC Lab Manual 2022 Students (1)

Uploaded by

21ee011
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

EE Department

A LABORATORY MANUAL OF
MICROPROCESSOR
AND
MICROCONTROLLER

B.H.Gardi College of Engineering & Technology


EE Department
B.H.Gardi College of Engineering &
Technology

CERTIFICATE
This is to certify that Mr. / Miss. __

Of_ SEM._ _branch _


Enrolment no. _ has satisfactorily completed
his/her term work in the subject
_ _ for the term ending in
_ 2022

Date: __ _

Subject In charge Head of Department


NAME OF STUDENT : _

YEAR : ROLL NO. :


ENROLLMENT NO. : _

INDEX
SR. PAGE
DATE PROGRAM STATEMENT GRADE SIGN
NO. NO.
1 Write an assembly language program in 8085
microprocessor to convert an 8 bit BCD number
into hexadecimal number.

2 Write 8085 Assembly language program to add two


16-bit number stored in memory location 8000H –
8001H and 8002H – 8003H.
3 Write an assembly language program for
calculating the factorial of a number using 8085
microprocessor.
4 Write an assembly language program to Move a
block of 16 data stored from 8050H to 805FH to a
target location from 8070F to 807FH using 8085.
5 Write an 8051 C program to create a frequency of
2500 Hz on pin P2.7. Use Timer 1, mode 2 to create
delay.
6 Write C language program to generate a square
wave of 2 KHz frequency on P1.1 pin by using timer
0 and mode 1. Assume XTAL frequency is 11.0592
MHz.
7 Write An 8051 C Program To Toggle Bits Of P1
Continuously With A 250 ms Delay.
8 Write 89C51 C program to transfer YES serially at
baud rate 9600 continuously Use 8 bit data and 1
stop bit. Assume crystal frequency 11.0592 MHz.
9 Write a Program in the 8051 to receive bytes of
data serially, and put them in P1. Set the baud rate
at 4800, 8-bit data, 1 stop bit
10 Write an 8085 Assembly language program to sort
numbers in ascending order where n number of
numbers are stored in consecutive memory
locations starting from 8041H and the value of n is
available in memory location 8040H (Using BUBBLE
sort).
11 Write an 8051 Assembly code to find average of all
numbers stored in array.
Microprocessor & Microcontroller (3160914) EE Department

Practical-1 DATE: / /

Aim: - Write an assembly language program in 8085 microprocessor to convert an 8 bit BCD number into
hexadecimal number.

Program:

5
Microprocessor & Microcontroller (3160914) EE Department

Output:-

6
Microprocessor & Microcontroller (3160914) EE Department

Practical-2 DATE: / /

Aim: - Write 8085 Assembly language program to add two 16-bit number stored in memory location
8000H – 8001H and 8002H – 8003H.

Program:

7
Microprocessor & Microcontroller (3160914) EE Department

Output:-

8
Microprocessor & Microcontroller (3160914) EE Department

Practical-3 DATE: / /

Aim: - Write an assembly language program for calculating the factorial of a number using 8085
microprocessor.

Program:

9
Microprocessor & Microcontroller (3160914) EE Department

Output:-

10
Microprocessor & Microcontroller (3160914) EE Department

Practical-4 DATE: / /

Aim: - Write an assembly language program to Move a block of 16 data stored from 8050H to 805FH to
a target location from 8070F to 807FH using 8085.

Program:

11
Microprocessor & Microcontroller (3160914) EE Department

Output:-

12
Microprocessor & Microcontroller (3160914) EE Department

Practical- 5 DATE: / /

Aim:- Write an 8051 C program to create a frequency of 2500 Hz on pin P2.7. Use Timer 1, mode 2 to
create delay.

Program:

13
Microprocessor & Microcontroller (3160914) EE Department

Output:-

14
Microprocessor & Microcontroller (3160914) EE Department

Practical-6 DATE: / /

Aim: - Write C language program to generate a square wave of 2 KHz frequency on P1.1 pin by using timer 0
and mode 1. Assume XTAL frequency is 11.0592 MHz.

Program:

15
Microprocessor & Microcontroller (3160914) EE Department

Output:-

16
Microprocessor & Microcontroller (3160914) EE Department

Practical-7 DATE: / /

Aim: - Write An 8051 C Program To Toggle Bits Of P1 Continuously With A 250 ms Delay.

Program:

17
Microprocessor & Microcontroller (3160914) EE Department

Output:-

18
Microprocessor & Microcontroller (3160914) EE Department

Practical-8 DATE: / /

Aim: - Write 89C51 C program to transfer YES serially at baud rate 9600 continuously Use 8 bit data and
1 stop bit. Assume crystal frequency 11.0592 MHz.

Program:

Output:

19
Microprocessor & Microcontroller (3160914) EE Department

Practical-09 DATE: / /

Aim: - Write a Program in the 8051 to receive bytes of data serially, and put them in P1. Set the baud rate at
4800, 8-bit data, 1 stop bit

Program:

Output:-

20
Microprocessor & Microcontroller (3160914) EE Department

Practical-10 DATE: / /

Aim: - Write a 8085 Assembly language program to sort numbers in ascending order where n number of
numbers are stored in consecutive memory locations starting from 8041H and the value of n is available
in memory location 8040H (Using BUBBLE sort).

Program:

21
Microprocessor & Microcontroller (3160914) EE Department

Output:-

22
Microprocessor & Microcontroller (3160914) EE Department

Practical-11 DATE: / /

Aim: - Write an 8051 Assembly code to find average of all numbers stored in array.

Program:

Output:-

23

You might also like