Sei sulla pagina 1di 4

(Autonomous)

Shamshabad-501218, Hyderabad

COMPUTER SCIENCE AND ENGINEERING


B.TECH V SEMESTER
2013 2014
Date: 8 July, 2013
Course Code
Course Title
Course Structure

:
:
:

Course Coordinator
Team of Instructors

:
:

A1427
MICROPROCESSORS AND INTERFACING LABORATORY
Lectures
Tutorials
Practicals
3
Prof. L V Narasimha Prasad, Professor and Head
Mr D Raman and Mr G S Prasada Reddy

Credits
2

1. LABORATORY OVERVIEW:
Microelectronics is increasingly pervading all aspects of industry, education and the home. A
leading example of microelectronic techniques is the microprocessor, and as its use increases
the need for knowledge and understanding will also grow. The microprocessor lab was designed
to give an overview over the programming of such a microprocessor system.
The students will write and debug assembly language programs using the Microsoft Macro
Assembler (MASM).
This Lab provides students with the opportunity to gain experience in microprocessor-based
system design, assembly language programming, and I/O interfacing to microprocessors.

2. OBJECTIVES:
The objectives of this laboratory are:
i. To understand the concepts of low level programming and its applications in engineering.
ii. To understand the processor control instruction set and to achieve the good Assembly
Language Programming skills.
iii. To understand the interfacing process of various I/O components to microprocessor.
iv. To get clear overview of the interaction for data transfer between CPU, memory and I/O
ports.

3. OUTCOMES:
Upon the completion of this course, the student will be able to:
i. Understand the interaction between CPU, memory and I/O ports.
ii. Program a microprocessor using instruction set of 8086.
iii. Master the assembly level programming using 8086 instruction set.
iv. Understand how different I/O devices can be interfaced to processor and will explore
several techniques of interfacing.
v. Understand the concepts of Assembly level language programming and its applications.

4. LIST OF EXPERIMENTS:
Week
1

Program Category
Addition and Subtraction

Multiplication and Division

Sum of Numbers

Complement of Numbers

Shift Operation

Rotate Instructions

List of Programs
a) Addition and Subtraction of two 8-bit operands
b) Addition and Subtraction of two 16-bit operands
c) Addition and Subtraction of two 8-bit operands
stored at memory locations 2100 & 2105.
d) Addition and Subtraction of two 16-bit operands
stored at memory locations 2100 & 2105.
e) Multibyte Addition of two numbers
f) Multibyte Subtraction of two numbers
a) Multiplication and Division of two 8-bit operands
b) Multiplication and Division of two 16-bit operands
c) Multiplication and Division of two 8-bit operands
stored at memory locations 2100 & 2105.
d) Multiplication and Division of two 16-bit operands
stored at memory locations 2100 & 2105.
a) Calculate the sum of series of Five 8-bit numbers
b) Calculate the sum of series of Five 16-bit numbers
c) Calculate the sum of n natural numbers
d) Calculate the sum of squares of n numbers
e) Calculate the sum of cubes of n numbers
f) Calculate the arithmetic mean of n numbers
a) Find the ones compliment of 8bit and 16 bit
number
b) Find the Twos compliment of 8bit and 16 bit
number
a) Perform shift left(1 bit) on 8 bit and 16 bit data
b) Perform shift left(2 bits) on 8 bit and 16 bit data
c) Write an Assembly Language Program to count the
number of ones and zeros of a given binary
operand using shift operations?
d) Write an Assembly Language Program to find
whether the given number is even or odd using shift
instructions?
a) Perform ROL on given operand
b) Perform ROR on given operand
2

Masking of bits

Code Conversion

Finding Bigger and Smaller


number

10

Searching and Sorting

11

String Manipulations

12

General Programs

13

Interfacing Experiments

a) Program to mask off least significant nibble bits of a


byte length number
b) Program to mask off most significant nibble bits of a
byte length number
a) Convert Unpacked BCD number to packed BCD
number
b) Convert Unpacked BCD number to Binary number
a) Finding Largest number of 2 given numbers
b) Finding Smallest number of 2 given numbers
c) Finding Largest number from given series of
numbers
d) Finding Smallest number from given series of
numbers
a) Sort the given byte length numbers in ascending
order and also in descending order using bubble
sort or insertion sort
b) Search for a given substring whether it is present in
main string or not
c) Use binary search for finding given key value on
given word length integers
a) Program to Compare of two given strings
b) Program for inserting a character into a string
c) Move block of data from one memory location to
another memory location
a) Find GCD and LCM for given two byte length
numbers
b) Find the factorial for the given number
c) Find square root of given number
d) Write ALP program for converting Celsius to
Fahrenheit and vice versa.
e) Write ALP for counting the number of odd and even
numbers in a given array?
f) Write ALP for converting uppercase letter to lower
case and vice versa?
g) Program for Authenticating password of length 3
bytes
h) Finding the conversion value by using the look up
table
a) Write an Assembly Language Program to interface
8255 to 8086 and observe the following:
i. Blink all LEDs connected to port B on/off with
2ms delay
ii. Blink LEDs alternatively connected to port A
with 10 ms time delay.
b) Write a series of processor instructions by using
Assembly Language Programming for interfacing 7
segment displays to 8086 and refresh the data 10ms
and 100ms.
c) Write an Assembly Language Program to interface
stepper motor to 8086 and observe the following:
3

d)

e)

f)
g)
h)

i. 5 rotations in clockwise direction


ii. 5 rotations in anticlockwise direction
iii. Continuous rotation in clockwise direction at
much faster speed
Write an Assembly Language Program to interface
A/D and D/A converters to 8086 and observe the
following:
i. Square wave
ii. Ramp signal
iii. Sinusoidal wave
Write an Assembly Language Program to interface
8251 with 8086 at an address 80H. Initialize it in
asynchronous transmit mode, with 7bit character
size, band factor 16, one start bit, one stop bit, even
parity enable. Further transmit a message HAPPY
NEW YEAR in ASCII coded form to a modem.
Write an Assembly Language Program to interface
A/D converters to 8086?
Write an Assembly Language Programming for
getting elevator display with 8086?
Write an Assembly Language Program to observe
traffic signals by interfacing controller to 8086.
Observe changes in signals like Red, straight, left,
right, pedestrian etc.

Potrebbero piacerti anche