MPMC Lab Manual 2022 Students (1)
MPMC Lab Manual 2022 Students (1)
A LABORATORY MANUAL OF
MICROPROCESSOR
AND
MICROCONTROLLER
CERTIFICATE
This is to certify that Mr. / Miss. __
Date: __ _
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.
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