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

Lecture #01, Microprocessor Lab

The document provides instructions for students taking the EEE-3104: Microprocessor and Interfacing Lab course. It outlines several key points: (1) students must always be on time and receive permission before changing groups, (2) unnecessary movement is restricted, (3) students must follow the provided lab schedule and procedures, (4) results must be verified by teachers before leaving, and (5) marks will be given continuously for attendance, reports, viva, and lab performance. It also provides information on assembly language programming concepts like program segments and the use of segment registers, as well as a probable list of experiments covering assembly language, peripherals interfacing, and MDA kit interfacing.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Lecture #01, Microprocessor Lab

The document provides instructions for students taking the EEE-3104: Microprocessor and Interfacing Lab course. It outlines several key points: (1) students must always be on time and receive permission before changing groups, (2) unnecessary movement is restricted, (3) students must follow the provided lab schedule and procedures, (4) results must be verified by teachers before leaving, and (5) marks will be given continuously for attendance, reports, viva, and lab performance. It also provides information on assembly language programming concepts like program segments and the use of segment registers, as well as a probable list of experiments covering assembly language, peripherals interfacing, and MDA kit interfacing.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

EEE-3104: Microprocessor and Interfacing Lab

Dept. of Electrical and Electronic Engineering


University of Dhaka

Prof. Sazzad M.S. Imran, PhD


sazzadmsi.webnode.com
&
Dr. Sakhawat Hussain
Instructions for Students
(1) Always be present in the lab in just time.
(2) Never switch/change your group without prior permission.
(3) Unnecessary movement of students is strictly restricted.
(4) Follow sazzadmsi.webnode.com for the lab schedule and important instruction.
(5) Follow proper procedure: algorithm/flowchart  coding  execution.
Result must be shown to the teacher for verification.
(6) Before leaving, students must switch OFF all switches and shut down desktop.
(7) Prepare lab report of completed experiment and submit it on immediate next class.
Comments must be written for statements of the program where deemed necessary.
(8) Never submit typed and printed report.
Only hand written report on A4 size papers will be accepted.
(9) No lab report will be accepted if you miss to submit it in due date/time.
(10) You will be continuously assessed by your teachers and obtained marks shall be final.
Instructions for Students
(11) Final marks distribution-
Attendance- 10,
Continuous Assessment- 90
Reports- 20
Viva- 30
Lab Performance- 40
(12) Contact course teacher if you are uncertain about your
presence in a particular lab class and
potential for receiving a failing grade.
(13) Avoid plagiarism or any other form of cheating in examinations, assignments or
laboratory reports.

Class code @google classroom: lc4pqa6


Probable List of Experiment
Part-1: Assembly Language Programming
01. Write and execute an assembly language program to sum N different numbers. All N
numbers should be read interactively from the keyboard.
01~15

Part-2: Peripherals and Interfacing Experiments


01. Write and execute an Assembly Language Program (ALP) to 8086 processor to call a
delay subroutine and display the character on the LED display.
01~06

Part-3: Interfacing using MDA Win-8086 Microprocessor Kits


01. Interfacing LED, and 7-segment Display using 8255A PPI (Programmable Peripheral
Interface).
01~07
Assembly Language Programming
ALP machine architecture, operating system and programming principles.

Program Segments:
80x86 organizes main memory as segments of 64Kb size.
It provides 4 segments- CS, DS, SS and ES to access these segments.

It organizes segments into 4 groups-


1) Code segment- pointed to by CS,
used to store program code.
2) Data segment- pointed to by DS,
used to store data and instructions.
3) Stack segment- pointed to by SS,
used to store data.
4) Extra segment- pointed to by ES,
used to store data.
Assembly Language Programming
Program Segments:
Assembler directives SEGMENT and ENDS are used to define a segment.
General Form-

SegmentName SEGMENT [WORD/PUBLIC]



; Storage definition, allocation,
; Program code, and alignment directives

SegmentName ENDS
Assembly Language Programming
Program Segments:
Correspondence between segment and segment register must be established using
ASSUME directives.
Examples-
a) _DATA SEGMENT ; _DATA is the name of the user defined segment

; do all segment stuff here

_DATA ENDS

b) _CODE SEGMENT ; _CODE is the name of the user defined segment


ASSUME CS:_CODE, DS:_DATA
; setup DS register
MOV AX, _DATA
MOV DS, AX

; do all segment stuff here

_CODE ENDS
Assembly Language Programming
Program Segments:
Physical end of program is indicated by directive END. Example-

_CODE SEGMENT
ASSUME CS:_CODE
START:

_CODE ENDS
END START
Assembly Language Programming
Program Segments:
Program termination must be done explicitly using program termination system call of OS.
Example-

_CODE SEGMENT
ASSUME CS:_CODE
START:
; Program code

; Program termination
MOV AH, 4CH ; program termination function
MOV AL, 00H ; return code
INT 21H ; call DOS service
_CODE ENDS
END START

You might also like