Post on 21-Apr-2015
Sinhgad College of Engineering
Department of Information Technology
Processor Interfacing
Laboratory Teaching Scheme Examination scheme
Practical: 4 hrs/week Term Work: 25 Marks Oral: 50 Marks
Academic Year : 2011-12Semester - II
• Overview & Objective
• List of Assignments
• Schedule
• Tools Required
Processor Interfacing Laboratory
• Lab Manual template
Overview
Introduction of microprocessors & microcontrollers was a turning point in the era of electronic product design.
Ability of programs to have decision making capabilities which is not possible with conventional discrete logic was a major breakthrough in designing intelligent products.
Today 16 bit, 32 bit processors & microcontrollers dominate industrial scene & consumer applications.
8086 processor, 80386 processor, 8051 microcontroller & other programmable peripherals from Intel are the ideal vehicles to make the students understand microprocessor architecture, programming & integrated systems.
Objectives
Understanding microprocessor architecture , assembly language programming, microprocessor based system design, Microcontroller architecture & Embedded system design.
Understanding all concepts in theory by practically trying out programming and experiments.
Developing analytical skills and problem solving abilities of the students.
List of Assignments
This laboratory is organized into 14 assignments, divided into 4 groups.
• Group A : ALP based on 8086 microprocessor
• Group B : Interfacing with 8086 and 8051
• Group C : File processing / DOS commands
• Group D : programming 8051 microcontroller & 80386 microprocessor
Group A ALP based on 8086 microprocessor
Sr. No. Name of assignment
1 Array addition of n ,8 bit, 16 bit numbers.
2 Conversion of HEX to BCD and vice-versa.
3 String operations - length ,reverse , Palindrome with NEAR procedure.
4 String operations – concatenation, comparison, no. of occurrences with FAR procedure.
Group B Interfacing with 8086 and 8051
Sr. No. Name of assignment
5 Conversion of Analog signal (0V- 5 V) into equivalent digital signal using 8086 and ADC 0809.
6 Generation of waveforms using 8086 and DAC 0808.
7 Rotation of stepper motor with different speed and different step angles using 8051 .
Group C File processing / DOS commands
Sr. No. Name of assignment
8 ‘C’ Program To delete a file, create a directory , read and display disk information (using int86, int86x, intdos, intdosx functions ).
9 Inline ALP to read Boot Sector and Display contents of Boot Sector .
10 8086 ALP to simulate DOS COPY command. (using FILE Handle functions and command line arguments.)
Sr. No. Name of assignment
11. A Array addition of 8 bit, 16 bit numbers.
11. B Multiplication of 16 bit number by 8 bit number.
12 Block transfer for internal / external memory.
13 Timer programming. ( ISR based )
14 80386 ALP to switch from real mode to protected mode and back to real mode.
Group D Programming 8051 microcontroller
Sr. No. Title No. of Hrs. Week
Group A : ALP based 8086 Microprocessor
Introduction to 8086 kit & TASM 4 Week 11 Assembly language program (ALP) to add array of N numbers
stored in the memory. 2 Week 2
2 ALP to convert 4-digit Hex number into its equivalent BCD number and 5-digit BCD number into its equivalent HEX number. 4
Week 2, 3
3 ALP to perform string manipulation to calculate string length, reverse a string and palindrome operation. Use near procedure. 2 Week 3
4 ALP to perform string operations like Concatenation, Compare , Number of occurrences of a sub-string in the given string, Find number of words, characters, number of lines and number of capital letters from the given text in the data segment. Use far procedure.
4Week 4
Repeat turn for Group A assignments2 Week 5
Group B: Interfacing with 8086/8051
5 8086 ALP to convert an analog signal in the range of 0V to 5V to its corresponding digital signal using either successive approximation ADC or dual slope ADC.
2 Week 5
6 8086 ALP to interface DAC and generate various waveforms on oscilloscope. 2
Week 67 ALP to interface 8051 with stepper motor. 2
Repeat turn for Group B assignments 2Week 7
Mid term Mock & Partial Submission 2
Schedule
Schedule Cont… Group C: File Processing / Dos Commands
8 8086 ALP to read command line arguments using PSP and implement DOS COPY Command.
2
Week 89
Write following programs in C using int86, int86x, intdos, intdosx functions:To delete a file, To create a directory and Read and display disk information such as Drive, tracks, sectors etc.
2
10 ALP to read Boot Sector and Display contents of Boot Sector. (use Inline C Code)
2
Week 9
Repeat turn for Group C assignments 2
Group D: Assignments based on programming 8051 microcontroller
Introduction to Keil µvision and demonstration of 8051kit. 2Week
1011 a ALP to add n, 8 bits numbers found in internal ram location
40H onwards and store results in R6 and R7.
2
11 b ALP to multiply 16 bit number by 8 bit number and store the result and internal memory location.
2Week
1112 ALP for block transfer for internal / external memory. 2
13 ALP to generate square wave using Timer interrupt on any port pin. ( ISR based)
2Week
1214 ALP to switch from real mode to protected mode and back to
real mode. Display an appropriate message in each mode2
Week 13Repeat turn for Group D assignments 4
Final Mock & submission4 Week
14
Tools Required
GROUP No. Of Assg.
Requirements (SW/HW)
A 4 Dyna 8086 kit, TASMB 3 Dyna 8086 kit, ADC 0809
card, DAC 0808 card, 8051 kit, stepper motor , CRO
C 3 TASM, TCD 4 8051 kit, Keil µvision ,Flash
magic
• Aim
• Objective
• Theory Points
• Test Cases (Required I/P,Expected O/P)
• Related Additions
Lab Manual Template
Lab Manual
• Title :• Aim :• Objective :• Theory : 1. Assembler Directives 2. DOS functions 3. New instructions used with explanation
. Main Program Algorithm :
• Conclusions:
• Macro’s : 1. Name 2. Purpose 3. I/P & O/P
• FAQ’s :
Software Assignment Format
. I/P :
. O/P:
• Procedures: 1. Name 2. Purpose 3. I/P & O/P 4.Algorithm for Procedures
• Calculations if any:
• Platform Used: OS , S/W Tools
• Programs with comments printouts along with I/P, O/P :
• References :
Lab Manual
• Aim :• Objective :
• Theory : 1. Interfacing Diagram 2. Control Word Registers 3. Related Theory
. Algorithm :
• Conclusions:
• FAQ’s :
Hardware Assignment Format
. I/P :
. O/P:
• Observations & Waveforms :• Calculations :
• Program with comments:
• References :