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

Micro - Lab File (1to8)

Uploaded by

23bcp471
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Micro - Lab File (1to8)

Uploaded by

23bcp471
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 32

B.

Tech Computer Engineering


Semester – III

Microprocessor Programming & Interfacing Lab

20CP202P

ACY: 2023-24

Name:DARSHIL MENDAPARA
Roll No:23BCP228

Submitted to

Department of Computer Engineering


School of Technology
Pandit Deendayal Energy University
Gandhinagar, Gujarat, India

November 2024
SCHOOL OF TECHNOLOGY
PANDIT DEENDAYAL ENERGY UNIVERSITY
GANDHINAGAR, GUJARAT, INDIA

CERTIFICATE

This is to certify that Mr. DARSHIL MENDAPARA Enrolment no. 23BCP228


of 3rd Semester degree course in Computer Engineering has satisfactorily prepared
and presented his / her Term Work in Microprocessor Programming &
Interfacing Lab (20CP202P) within four walls of the laboratory of this Institute
during
2023 to 2024.

Date of Submission:

MAHESH SIR
(Faculty In-Charge)

SCHOOL OF TECHNOLOGY
PANDIT DEENDAYAL ENERGY UNIVERSITY
GANDHINAGAR, GUJARAT, INDIA
INDEX

Sr.
Name of Experiment Page No. Date Sign Remark
No.
Study of 8086 Microprocessor
01 architecture, and basis of
programming
Study of simulation tool and
02 familiarization to instructions of
8086
Write an assembly language
03 programs for addition, and
subtraction of 8, 16, 32-bit data
Write an assembly language
04 programs for multiplication and
division of 8, 16, 32-bit data
Write an assembly language
programs for logical operations
05
(NOT, AND, OR, XOR, NAND,
NOR and XNOR)
Write an assembly language
06 programs to find 1’s and 2’s
complement of 8/16-bit data
Write an assembly language
07 program to swap data from two
memory locations
Write an assembly language
08 programs for finding out largest
data from n-memory locations
Write an assembly language
09 programs to add and subtract two 8-
bit BCD numbers
Write an assembly language
10 program to arrange data in
ascending order
Introduction to 8051
11 microcontroller and implementation
of basic LED blinking control
Implementation of motor control
12
using 8051 microcontrollers

Tentative 10 experiments will be covered from the above list

Guidelines to students

1. Theory of first two experiments should be handwritten


2. Practical-3 onwards students can prepare in typed and printed.
3. From experiment third onwards, attach the screenshot of written code and the results in the
experiment.
4. Maintain the journal in a suitable file folder
5. Taking input values for experiments
a. While working with 8-bit data
8-bit  First data: Your birth date
8-bit  Second Data: Last two digit of your role number
Example: suppose your role number is 23BCP281 and your birthdate is 27 September
Data 1  (81)16
Data 2  (27)16
b. While working with 16-bit data
16-bit  First data: Your birth date followed by birth month
8-bit  Second Data: Last two digit of your role number and your batch
Example: suppose your role number is 23BCP281 and your birthdate is 27 September
Data 1  (2381)16
Data 2  (2709)16
c. While performing operation for understanding of flags you can consider random data of
your choice
6. Bring your file every week during lab session

Sample Writeup for Practical

PRACTICAL NO. – 3
AIM: Write an assembly language programs for addition, and subtraction of 8, 16, 32-bit
data
A) Addition using 8 bit data.
CODE:-

OUTPUT :-
B) Addition using 16 bit data.
CODE:-
OUTPUT:-
C) Subtraction using 8 bit data.
CODE:-
OUTPUT:-
D) Subtraction using 16 bit data.
CODE:-
OUTPUT:-
PRACTICAL NO. – 4
AIM: Write an assembly language programs for multiplication and division of 8, 16, 32-
bit data

A) Multiplication using 8 bit data.


CODE:-

OUTPUT:-
B) Multiplication using 16 bit data.
CODE:-
OUTPUT:-
D) Division using 8 bit data.
CODE:-
OUTPUT:-
E) Division using 16 bit data.
CODE:-
OUTPUT:-
PRACTICAL NO: 5
AIM:
Write an assembly language programs for logical operations (NOT, AND, OR, XOR,
NAND, NOR and XNOR).

A. NOT
CODE:

OUTPUT:
B. AND
CODE:

OUTPUT:
C. OR
CODE:

OUTPUT:
D. XOR
CODE:

OUTPUT:
E. NAND
CODE:

OUTPUT:
F. NOR
CODE:

OUTPUT:
G. XNOR
CODE:

OUTPUT:

Conclusion:
In summary, logic gates are fundamental to the operation and design of digital systems,
enabling the creation of efficient, reliable, and powerful electronic devices.
PRACTICAL NO: 6
AIM:
Write an assembly language programs to find 1’s and 2’s complement of 8/16-bit data.

1. 1’s Complement
CODE:

OUTPUT:
2. 2’s Complement
CODE:

OUTPUT:

Conclusion:
2's complement is widely used in computer systems for representing signed integers due to
its advantages in arithmetic operations and its unambiguous representation of zero.
PRACTICAL NO: 7
AIM:
Write an assembly language program to swap data from two memory locations.

I. 8-bit Data
CODE:

OUTPUT:

II. 16-bit Data


CODE:

OUTPUT:

Conclusion:
Data swapping in the 8086 microprocessor involves a systematic approach using registers
and assembly instructions to transfer data between memory locations. The process is
facilitated by the efficient use of addressing modes and the flexibility of the instruction set.
PRACTICAL NO: 8
AIM:
Write an assembly language programs for finding out largest data from n-memory
locations.

CODE:

OUTPUT:

Conclusion:

From this program, I learnt about the loop and different jump functions like JNS, JNZ,
JNC, JC, JS, JZ and LOOP.

You might also like