Top Banner
Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System and Interfacing Dr. Sohaib Ayyaz Qazi COMSATS University Islamabad 1
17

CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Jul 22, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Introduction to

Microprocessor

System and InterfacingLecture# 01

Microprocessor System and Interfacing

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

1

Page 2: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Lecture Objectives

Introduction to Course and Instructor

Basics of Microprocessors

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

2

Page 3: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Course Introduction

Course Title: Microprocessor System and Interfacing

Course Code: EEE342

Class: EEE-5

Text Book

The AVR Microcontroller and Embedded Systems using

Assembly and C

By Muhammad Ali Mazidi

Course Assessment

Quizzes (Announced) 15%

Assignments (A lot) 10%

Exams 75%

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

3

Page 4: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Instructor

Course Instructor: Dr. Sohaib Ayyaz Qazi

Lab Instructor: Ms. Asma Ramay

Contact me at

[email protected] (please be careful

with spellings)

Course Material / Announcements will be available at

http://saqazi.com/mpfall2019

Office 213, 2nd Floor, Faculty Block – I, CUI Islamabad

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

4

Page 5: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Rules (Most Important)

Quizzes will be announced.

Assignment must be submitted on time.

Don’t Expect that I won’t check them

No retake of Quizes, sessionals as well as

Final Exam.

Cheating is strongly discouraged and

strict Action will be taken against it.

No plagiarism (Copy gets a straight zero

for both)

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

5

Page 6: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Rules (Most Important)

No excuse will be treated once quiz,

assignment or sessional is announced

most popular excuses other course

burden, Project work, Final year Project

Supervisor meeting.

Class participation is encouraged and I

will give bonus marks for it.

3 Late/early leaving from class will be

marked as absent.

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

6

Page 7: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Course Learning Outcomes

Understand various Microprocessor / Microcontrollerfeatures, describe their operations and use relevantdevelopment tools

Perform basic tasks with Microprocessors / Microcontrollersand interface digital devices using C/Assembly language

Perform advanced tasks with Microprocessors /Microcontrollers and interface analog devices using C /Assembly language

Design Microprocessor / Microcontroller based systems tosolve engineering problems of various complexities.

Perform practical experiments on Microprocessor /Microcontroller based systems for various applications usingmodern tools.

Present and analyze data with effective report writing skills

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

7

Page 8: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

8 Hardware for the Course

Page 9: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Numbering and Coding System

Decimal

(2510, 1010, 34510, 103310)

Binary

(110012, 10102, 1010110012, 100000010012

,100000010012)

HexaDecimal

(19, A, 159, 409)

ASCII code

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

9

Page 10: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Home Task 1 – Number Conversion

Convert Decimal to Binary

Convert Binary to Decimal

Convert Binary to Hexadecimal

Convert Hexadecimal to Decimal

Convert Hexadecimal to Binary

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

10

Page 11: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Digital Primer

Binary Logic

Logic Gates

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

11

Page 12: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

What is Computer used for ?

Perform Calculation

On numbers

Everything can be converted to numbers

Follow Instruction (a Program)

Automatic (Self-Contained)

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

12

Page 13: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Organization of Computers

Central Processing Unit (CPU)

Memories (RAM / ROM)

I/O Devices

Memory and Address Busses

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

13

Page 14: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

CPU Architecture

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

14

Registers

Values to be processed

Address of values

Arithmetic Logic Unit

Program Counter

Point to address of Next

Instruction

Instruction Decoder

Decodes instruction fetched

Page 15: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

15

Sum of three numbers

In C language we perform this operation as:

void main ()

{

int A, B, C, temp;

int A = 33;

int B = 66;

int C = 18;

temp = temp + A;

temp = temp + B;

temp = temp + C;

}

void main ()

{

int A = 33, B = 66, C = 18;

A = A + B + C;

}

Raw Coding Optimized Coding

Working of CPU – Coding Example

Page 16: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Working of CPU – Instruction Set Example

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

16

Class Example

Add three numbers

4 registers A, B C and D

8-bit Data bus

16-bit Address buss

Page 17: CALL, Timing and pipeliningsaqazi.com/EEE342/FA19_MP_Lecture01_20190903_Introduction_to_… · Introduction to Microprocessor System and Interfacing Lecture# 01 Microprocessor System

Lecture Summary

Numbering System

Logic Gates

Computer Architecture

C and Assembly Language

Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad

17