Microprocessor Microcontroller laboratory Dept of CSE, GCEM Page 6 Semester- 4 Execution of Instructions in 8086: The microprocessor sends OUT a
Previous PDF | Next PDF |
[PDF] MRCET MICROPROCESSORS AND MICROCONTROLLERS LAB
ECE, MRCET 17 EXPERIMENT NO 3 SORTING AN ARRAY FOR 8086 AIM: Write and execute an ALP to 8086 processor to sort the given 16-bit numbers in
[PDF] MICROPROCESSORS AND MICROCONTROLLERS LAB - MRCET
MPMC Lab Manual Course Objectives: • To develop and execute variety of assembly language programs of Intel 8086 including arithmetic and logical, sorting,
[PDF] Microprocessor Lab Manual - Technical Symposium
EC6513- MICROPROCESSOR AND MICROCONTROLLER LABORATORY SYLLABUS LIST OF EXPERIMENTS 8086 Programs using kits and MASM 1
[PDF] Microprocessor and Microcontrollers Lab - Geethanjali Group of
NAME OF THE EXPERIMENT PAGE No CYCLE -I 0 Study of TASM/MASM 14 1 Introduction to 8086 microprocessor 19
[PDF] DEPARTMENT OF COMPUTER SCIENCE - Gopalan Colleges
Microprocessor Microcontroller laboratory Dept of CSE, GCEM Page 6 Semester- 4 Execution of Instructions in 8086: The microprocessor sends OUT a
[PDF] MICROPROCESSOR & MICROCONTROLLER LABORATORY
MICROPROCESSOR LAB 10CSL48 Page 3 SOFTWARE PROGRAMS: PART A 1 Design and develop an assembly language program to search a
[PDF] Lab Manual - IARE
MICROPROCESSORS MICROCONTROLLERS LABORATORY Programs for 16 bit arithmetic operations for 8086 (using Various Addressing Modes) 34
[PDF] MICROPROCESSOR AND MICROCONTROLLER LAB
Programs for 16 bit Arithmetic Operations 8086(Using Various Addressing AIM: To multiply two signed numbers (8-bit data) using 8086 microprocessors
[PDF] Download Mpmc-Lab Hand Book 20-06-2014 - Auroras
MICROPROCESSOR AND MICROCONTROLLERS LAB The following Programs/experiments are to be written for assembler and execute the same with 8086
[PDF] microprocessor architecture pdf
[PDF] microprocessor assembly language programming notes
[PDF] microprocessor book pdf
[PDF] microprocessor book pdf for engineering
[PDF] microprocessor by u.s. shah pdf
[PDF] microprocessor lab
[PDF] microprocessor lab manual r=h:edu
[PDF] microprocessor lab manual sppu
[PDF] microprocessor lab manual vtu 4th sem ece with algorithm
[PDF] microprocessor pdf notes
[PDF] microprocessor ppt
[PDF] microprocessor practical lab
APPROVED BY AICTE NEW DELHI, AFFILIATED TO VTU BELGAUM
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
MICROPROCESSOR AND MICROCONTROLLER
LABORATORY
LAB MANUAL - 15CSL48
As per Choice Based Credit System (CBCS) scheme
Effective from the academic year 2016 -2017
Prepared by: Reviewed by: Approved by:Smruthi Nair N.S.Saradha Devi Dr. A.A. Powly Thomas
Assistant Professor Head of the Department Principal
Dept. of CSE Dept. of CSE GCEM GCEM GCEM181/1, 182/1, Hoodi Village, Sonnenahalli, K.R. Puram,, Bengaluru,
Karnataka 560048
1. Know the location of the fire extinguisher and the first aid box and how to use them in case of
an emergency.2. Read and understand how to carry out an activity thoroughly before coming to the laboratory.
3. Report fires or accidents to your lecturer/laboratory technician immediately.
4. Report any broken plugs or exposed electrical wires to your lecturer/laboratory technician
immediately.1. Do not eat or drink in the laboratory.
2. Avoid stepping on electrical wires or any other computer cables.
3. Do not open the system unit casing or monitor casing particularly when the power is turned on.
Some internal components hold electric voltages of up to 230 volts, which can be fatal.4. Do not insert metal objects such as clips, pins and needles into the computer casings. They may
cause fire.5. Do not remove anything from the computer laboratory without permission.
6. Do not touch, connect or disconnect any plug or cable without your lecturer/laboratory
7. Do not misbehave in the computer laboratory.
MICROPROCESSOR AND MICROCONTROLLER LABORATORY
[As per Choice Based Credit System (CBCS) scheme] (Effective from the academic year 2016 -2017)SEMESTER ± IV
Subject Code 15CSL48 IA Marks 20
Number of Lecture Hours/Week 01 I + 02 P Exam Marks 80Total Number of Lecture Hours 40 Exam Hours 03
CREDITS ± 02
Course objectives: This course will enable students to To provide practical exposure to the students on microprocessors, design and coding knowledge on 80x86 family/ARM. To give the knowledge and practical exposure on connectivity and execute of interfacing devices with 8086/ARM kit like LED displays,Keyboards, DAC/ADC, and various other devices.
Description
Demonstration and Explanation hardware components and Faculty in-charge should explain 8086architecture, pin diagram in one slot. The second slot, the Faculty in-charge should explain instruction
set types/category etc. Students have to prepare a write-up on the same and include it in the Lab record
and to be evaluated. Laboratory Session-1: Write-up on Microprocessors, 8086 Functional block diagram, Pin diagram anddescription. The same information is also taught in theory class; this helps the students to understand
better. Laboratory Session-2: Write-up on Instruction group, Timing diagrams, etc. The same information is also taught in theory class; this helps the students to understand better. Note: These TWO Laboratory sessions are used to fill the gap between theory classes and practical sessions. Both sessions are evaluated as lab experiments for 20 marks.Experiments
Develop and execute the following programs using 8086 Assembly Language. Any suitable assembler like MASM/TASM/8086 kit or any equivalent software may be used.Program should have suitable comments.
The board layout and the circuit diagram of the interface are to be provided to the student during the examination. Software Required: Open source ARM Development platform, KEIL IDE and Proteus for simulationSOFTWARE PROGRAMS: PART A
16-bit numbers. Adopt Binary search algorithm in your program for searching.
ascending order. Adopt Bubble Sort algorithm to sort given elements.3. Develop an assembly language program to reverse a given string and verify whether it is a
palindrome or not. Display the appropriate message.4. Develop an assembly language program to compute nCr using recursive procedure. Assume
5. Design and develop an assembly language program to read the current time and Date from the
system and display it in the standard format on the screen.6. To write and simulate ARM assembly language programs for data transfer, arithmetic and
logical operations (Demonstrate with the help of a suitable program).7. To write and simulate C Programs for ARM microprocessor using KEIL (Demonstrate with
the help of a suitable program) microcontrollers, Hitex Ltd.,1st edition, 2005HARDWARE PROGRAMS: PART B
8. a. Design and develop an assembly program to demonstrate BCD Up-Down Counter (00-99)
on the Logic Controller Interface. b. Design and develop an assembly program to read the status of two 8-bit inputs (X & Y) from theLogic Controller Interface and display X*Y.
9. Design and develop an assembly program to display messages ³),5(´ and ³+(/3´
alternately with flickering effects on a 7-segment display interface for a suitable period of time. Ensure a flashing rate that makes it easy to read both the messages (Examiner does not specify these delay values nor is it necessary for the student to compute these values).10. Design and develop an assembly program to drive a Stepper Motor interface and rotate the
motor in specified direction (clockwise or counter-clockwise) by N steps (Direction and N are specified by the examiner). Introduce suitable delay between successive steps. (Any arbitrary value for the delay may be assumed by the student).11. Design and develop an assembly language program to
a. Generate the Sine Wave using DAC interface (The output of the DAC is to be displayed on the CRO). b. Generate a Half Rectified Sine waveform using the DAC interface. (The output of the DAC is to be displayed on the CRO).12. To interface LCD with ARM processor-- ARM7TDMI/LPC2148. Write and execute
programs in C language for displaying text messages and numbers on LCD13. To interface Stepper motor with ARM processor-- ARM7TDMI/LPC2148. Write a program
to rotate stepper motorStudy Experiments:
1. Interfacing of temperature sensor with ARM freedom board (or any other ARM
microprocessor board) and display temperature on LCD2. To design ARM cortex based automatic number plate recognition system
3. To design ARM based power saving system
Course Outcomes: After studying this course, students will be able to Learn 80x86 instruction sets and gins the knowledge of how assembly language works.
Design and implement programs written in 80x86 assembly language Know functioning of hardware devices and interfacing them to x86 family Choose processors for various kinds of applications.Graduate Attributes
Engineering Knowledge
Problem Analysis
Modern Tool Usage
Conduct Investigations of Complex Problems
Design/Development of Solutions
Conduction of Practical Examination:
All laboratory experiments (all 7 + 6 nos) are to be included for practical examination. Students are allowed to pick one experiment from each of the lot. Strictly follow the instructions as printed on the cover page of answer script for breakup of marks PART ±A: Procedure + Conduction + Viva: 10 + 25 +05 (40) PART ±B: Procedure + Conduction + Viva: 10 + 25 +05 (40) Change of experiment is allowed only once and marks allotted to the procedure part to be made zero.Microprocessor & Microcontroller laboratory
Dept. of CSE, GCEM Page 1 Semester- 4
TABLE OF CONTENTS
SL.NO TITLE PAGE
NOSOFTWARE PROGRAMS:PART A
1A Binary Search 11-12
2A Bubble Sort 13-14
3A Palindrome 15-16
4A Compute nCr using recursive procedure 17-18
5A Current Time and Date of System 19-20
6A ARM assembly language programs 21-22
7A C Programs for ARM microprocessor using KEIL 23
HARDWARE PROGRAMS:PART B
7B BCD Up-Down Counter (00-99) on the Logic Controller
Interface. 24-26
8B X&Y from the Logic Controller Interface and display X*Y. 27-28
9B 7-segment display 29-33
10B Stepper Motor 34-36
11A Sine Wave using DAC interface 37-39
11B Half Rectified Sine wave form using the DAC interface 40-42
12B Interface LCD with ARM processor 43-45
13B To interface Stepper motor with ARM processor 46-47
STUDY EXPERIMENTS
Microprocessor & Microcontroller laboratory
Dept. of CSE, GCEM Page 2 Semester- 4
Microprocessor & Microcontroller laboratory
Dept. of CSE, GCEM Page 3 Semester- 4
Introduction to 8086 and Microsoft assembler
8086 Internal Block diagram 8086 is a 16-bit processor having 16-bit data bus and 20-bit address bus. The block diagram of 8086is
as shown. (Refer figures 1A & 1B). This can be subdivided into two parts; the Bus Interface Unit (BIU)
and Execution Unit (EU).Bus Interface Unit: The BIU consists of segment registers, an adder to generate 20 bit address and instruction prefetch
queue. It is responsible for all the external bus operations like opcode fetch, mem read, mem write, I/O
read/write etc. Once this address is sent OUT of BIU, the instruction and data bytes are fetched from
memory and they fill a 6-byte First in First out (FIFO) queue.Execution Unit: The execution unit consists of: General purpose (scratch pad) registers AX, BX, CX and DX; Pointer
registers SP (Stack Pointer) and BP (Base Pointer); index registers source index (SI) & destination index
(DI) registers; the Flag register, the ALU to perform operations and a control unit with associated internal bus. The 16-bit scratch pad registers can be split into two 8-bit registers. AXAL, AH ; BX
BL, BH; CX
CL, CH; DX
DL, DH. Figure 1A
Microprocessor & Microcontroller laboratory
Dept. of CSE, GCEM Page 4 Semester- 4
Figure 1B
Note: All registers are of size 16-bits.
Different registers and their operations are listed below:Register Uses/Operations
AX As accumulator in Word multiply & Word divide operations, Word I/O operations AL As accumulator in Byte Multiply, Byte Divide, Byte I/O, translate,Decimal Arithmetic
AH Byte Multiply, Byte Divide
BX As Base register to hold the address of memory
CX String Operations, as counter in Loops
CL As counter in Variable Shift and Rotate operationsDX Word Multiply, word Divide, Indirect I/O
Microprocessor & Microcontroller laboratory
Dept. of CSE, GCEM Page 5 Semester- 4
8086/8088 MP MEMORY
IP00000016
Instruction Pointer
CSCode Segment Register
DSCode Segment (64Kb)
Data Segment Register
SSStack Segment Register
ESData Segment (64Kb)
Extra Segment Register
AX AH AL BXStack Segment (64Kb)
BE BL CX CE CL DXExtra Segment (64Kb)
DH DL SPStack Pointer Register
FFFFF16
BPBreak Pointer Register
SISource Index Register
DIDestination Index Register
SRStatus Register
Microprocessor & Microcontroller laboratory
Dept. of CSE, GCEM Page 6 Semester- 4
Execution of Instructions in 8086: The microprocessor sends OUT a 20-bit physical address to the memory and fetches the first
instruction of a program from the memory. Subsequent addresses are sent OUT and the queue is filled up to 6 bytes. The instructions are decoded and further data (if necessary) are fetched from memory.After the execution of the instruction, the results may go back to memory or to the output peripheral
devices as the case may be.