Professional Documents
Culture Documents
School of Engineering
PROGRAMME – B.Tech Computer Science Engineering
IV Semester 2018-19
Course Handout
Dated: 02/01/2018
Course Code : CSE254
Course Name : Microprocessor and Microcontroller Laboratory
Credit Structure : 0-0-2-1
Instructor-in-charge : Sreedevi T.R
Instructors : Narasimha Murthy MS, Rama Krishna, Tapas Guha
2. Course Description :
This course introduces the assembly level language programming of 8086. The course introduces the core
concept of microprocessor and developes in students the assembly language programming skills along
with real time applications of microprocessor.It gives a practical training to students to perform interfacing
peripheral devices with 8086 microprocessor. This lab focusses mainly on software and few interfacing
programs with microprocessor
3. Syllabus :
Exp 1: Write an Assembly Language Program (ALP) to perform Arithmetic operations like
Addition, subtraction, Multiplication and Division on two numbers
Exp 2: Write an ALP to add two Binary Coded Decimal (BCD) numbers
Exp 3: Write an ALP to find the sum of N consecutive numbers
Exp 4: Write an ALP To move contents of array from one
memory location to another memory location.
Exp 5: Write an ALP to convert a BCD number to hexadecimal number.
Exp 6: Write an ALP to separate odd and even numbers from an Array
Exp 7: Write an ALP to sort N numbers in ascending/descending order
Exp 8: Write an ALP to print N Fibonacci numbers..
Exp 9: Write an ALP to to search a key element in a list of numbers
Exp 10: Write an ALP to read the current time from the system
and display on screen.
Exp 11: Write an ALP to chech whether a string is Palindrome or not.
Exp 12 : Design and develop an ALP to generate the Sine Wave using DAC interface (The
Output of the DAC is to be displayed on the CRO).
1
Exp 13: Design and develop anALP to generate a Half Rectified Sine waveform using the
DAC interface.
Exp 14: Design and develop an ALP to to drive a Stepper Motor interface and rotate the rotor
in specified direction (clockwise or anti-clockwise) by N steps
Exp 15: Design and develop an ALP to sense room temperature using 8255 Programmable
Peripherel Interface (PPI)
4. Text Book(s):
T1: Douglas V Hall SSSP Rao, “ Microprocessor and Interfacing”, 3rd editon, Mc Graw Hill , Higer
Education, 2012.
T2:Barry B Brey, “ The Intel Microprocessors”, 8th edition, Pearson , 2014.
5. Reference Book(s):
R1: Muhammad Ali Mazidi, Janice Gillispie Mazidi, Danny Causey, The x86 PC Assembly
Language Design and Interfacing, 5th Edition, Pearson, 2013.
R2:Muhammad Ali Mazidi,” Microprocessors and Microcontrollers”,First Impression,Pearson
Education
6. Session Plan :
Session Objective
Experiment Name Resources
No.
1 To understand the instruction Write an Assembly Language Program (ALP) to T1,T2,T3
sets of 8086 and write simple perform Arithmetic operations like Addition,
ALP for Arithmentic subtraction, Multiplication and Division on two
operations numbers
2 To learn addition of BCD Write an ALP to add two Binary Coded Decimal T1,T2,T3
numbers using registers (BCD) numbers
3 To understand the operations Write an ALP to find the sum of N consecutive T1,T2,T3
on registers numbers
4 To understand the working of Write an ALP To move contents of array from one T1,T2,T3
arrays and the operations on it memory location to another memory location.
2
10 To explore DOS interrupts to Write an ALP to read the current time and Date from
fetch system time. the system and display it in the standard format on the
scre a. . T1,T2,T3
11 To understand the usage string Write an ALP to chech whether a string is Palindrome
instructions in 8086 or not.
programming T1,T2,T3
12 To explore interfacing Write an ALP to generate the Sine Wave using DAC
concepts using 8255 and 8086 interface (The output of the DAC is to be displayed on
the CRO. T1,T2,T3
14 To learn the concept of rotate Write an ALP to to drive a Stepper Motor interface
instructions and interfacing and rotate the motor in specified direction (clockwise
stepper motor to 8086 through or counter-clockwise) by N steps T1,T2.T3
8255
15 To explore interfacing Write an ALP to implement a temperature sensor
concepts using 8255 and 8086 using 8255
T1,T2.T3