Processor Architecture Interfacing | SE-2015 Course

Updated on 2019/05/21 07:43

A Microcontroller (or MCU for Microcontroller Unit) is a small computer on a single integrated circuit. In modern terminology, it is a system on a chip or SoC. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable input/output peripherals. Program memory in the form of Ferroelectric RAM, NOR flash or OTP ROM is also often included on chip, as well as a small amount of RAM. Microcontrollers are designed for embedded applications, in contrast to the microprocessors used in personal computers or other general purpose applications consisting of various discrete chips.This course takes you through the world of todays most important breed of 80386 Microprocessors,microcontrollers - 8051 based along with their development, features, real world interfacing and the embedded communication systems.

MA Crash course advertisement.png

Overview

Image

Processor Architecture & Interfacing

AbbreviationPAI
Course

SE - IT (2015)

Credits04

Examination Scheme

In Semester (Online)50 Marks
End Semester Examination(Theory)50 Marks
Processor Interfacing Laboratory50 Marks - PR
25 Marks -OR
LanguageEnglish
  

Prerequisite

Computer Organization & Architecture

Course Objectives

  • To study architecture and features of 80386 microprocessors and 8051 microcontroller
  • To learn design of minimum system using 8051 micro-controller

Course Outcomes

On completion of the course, student will be able to:

  • Learn architectural details of 80386 microprocessor
  • Understand memory management and multitasking of 80386 microprocessor
  • Understand architecture and memory organization of 8051 microcontroller
  • Explain timers and interrupts of 8051 microcontroller and its interfacing with I/O devices

Syllabus and Notes

Unit 1: INTRODUCTION TO ASSEMBLY LANGUAGE PROGRAMMING & 80386 PROCESSOR

Main Page: 

  • Introduction to assembly language programming, ALP tools- Assembler, Linker, Loader, Debugger, Emulator, Assembler directives,
  • Far and near procedure, Macros, DOS Internals, DOS Calls.
  • 80386 - Features and Architecture, Register Set, 80386 Real mode segmentation and Address translation, Addressing modes, Instruction set

Unit 2: 80386 MEMORY MANAGEMENT

Main Page: 

  • Pin Description of 80386, 16/32-bit data transfer mechanism, Pipelined & Non pipelined bus cycles.
  • Segmentation - support registers and Data structures, Descriptors, Memory management through segmentation, Logical to linear/physical address translation.
  • Privileged instructions, Protection in segmentation, Inter-privilege level transfer using Call gates and confirming code segment.

Unit 3: 80386 – PRIVILEGE PROTECTION, MULTITASKING & INTERRUPTS, EXCEPTIONS

Main Page: 

  • Paging - support registers and Data structures,
  • Descriptors, Linear to physical address translation, Page level protection.
  • Multitasking - Support registers and Data structures, Descriptors, Task switching.
  • Real and Protected mode Interrupt structure - IVT, IDT, Type of exceptions and Processing.

Unit 4: INTRODUCTION TO 8051 MICROCONTROLLER

Main Page:  Introduction to 8051 Microcontroller

Unit 5: PORTS, INTERRUPTS & TIMERS/COUNTERS OF 8051

Main Page: PORTS, Interrrupts & Timers/Counters of 8051

Unit 6: 8051 INTERFACING & APPLICATIONS

Main Page: 8051 Interfacing & Applications

Multiple Choice Questions

Online Phase-I ( 25 Marks)Unit-1INTRODUCTION TO ASSEMBLY LANGUAGE PROGRAMMING & 80386 PROCESSOR
Unit-280386 MEMORY MANAGEMENT
Online Phase-II (25 Marks)Unit-380386 – PRIVILEGE PROTECTION, MULTITASKING & INTERRUPTS, EXCEPTIONS
Unit-4Introduction to 8051 Microcontroller

Processor Interfacing LAB

Group A: Microprocessor Programming ()

  1. Write Assembly Language Program (ALP) to add array of N numbers stored in the memory.
  2. Write menu driven ALP to convert 4-digit Hex number into its equivalent BCD number and 5-digit BCD number into its equivalent HEX number. Make your program user friendly to accept the choice from user for
    • i. HEX to BCD
    • ii. BCD to HEX
    • iii. EXIT.
    • Display proper strings to prompt the user while accepting the input and displaying the result. Write near procedures to complete the task.
  3. Write ALP to perform following operation on string:
    • i. Find and display length
    • ii. Display reverse
    • iii. Check whether string is palindrome or not.
    • Display proper strings to prompt the user while accepting the input and displaying the result. Write near procedures to complete the task.
  4. Write menu driven ALP to perform string manipulations. The strings to be accepted from the user is to be stored in code segment Module_1 and write FAR PROCEDURES in code segment Module_2 to perform any two of the following string operations:
    • i. Concatenation of two strings.
    • ii. Comparison of two strings.
    • iii. Finding Number of occurrences of a sub-string in the given string
    • iv. Finding number of alphabets, digits, special characters, lower & upper case alphabets, words and number of lines from the text.
    • Note: Use PUBLIC and EXTERN directives. Create .OBJ files of both the modules and link them to create an .EXE file.
  5. Assignment on file operations Select any one of the following assignments
  • a. Write menu driven program in C using int86, int86x, intdos and intdosx functions for implementing following operations on file.
    • i. To delete a file
    • ii. To create a directory
    • iii. To copy a file
  • b. Write 8086 ALP to read command line arguments using Program Segment Prefix (PSP) and simulate “DOS COPY Command". Use file handle function for handling the files. Handle all the errors and display appropriate message if user does not enter proper command line argument.

Group B: Microcontroller Programming ()

Assignment 6 and 7. Select any two of the following assignments:

  • i. Write 8051 ALP to add n, 8 bits numbers found in internal ram location 40H onwards and store results in R6 and R7.
  • ii. Write 8051 ALP to multiply 16 bit number by 8 bit number and store the result in internal memory location.
  • iii. Write 8051 ALP for block transfer for internal / external memory.
  • iv. Write 8051 ALP for sorting byte array in ascending / descending order.

8. Select any one of the following assignments.

  • i. Timer programming: ISR based
  • Write ALP to generate 2 KHz square wave using Timer interrupt on any port pin.
  • ii. Serial port programming: ISR based
  • Connect two 8051 microcontrollers using serial ports. Send FFh and 00H alternatively to receiver. Output received byte to port1, see port1 pin waveform on CRO.

9 & 10. Select any two of the following assignments:
Write ALP to interface 8051 with:
i. DAC to generate square, triangular and trapezoidal waveforms.
ii. ADC to read and display equivalent digital output.
iii. Stepper motor to rotate motor with different step angles and speeds.
iv. Sensors (temperature, pressure) to read and display values of the physical parameters sensed.
v. LCD to display message.

Note: This list of assignments is indicative. Concerned faculty member may frame different assignments if required maintaining similar difficulty level.

Previous Years Questions

  • PAI (2015-Course) Question Papers
  • Model Answer Paper: May 2017 Exam 
  • PAI (2015-Pattern)
  • Exam Writing Tips 

Practical/ Oral Exam Questions

  • PAI Practical Exam Expected Oral Questions

Assignments

Assignment 1Assignment 2
Assignment 3Assignment 4
Assignment 5Assignment 6

Ask Queries

  • Blogs: SujitWagh
  • Forums: Embedded Processors

References

Tags:
Created by Vishal E on 2019/03/21 10:23
    
Happy WikiNoting!