call, timing and pipeliningsaqazi.com/eee342/fa19_mp_lecture01_20190903_introduction_to_… ·...
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/1.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/2.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/3.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/4.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/5.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/6.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/7.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/8.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/9.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/10.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/11.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/12.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/13.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/14.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/15.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/16.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042919/5f63ae6c01ee49252c630f5a/html5/thumbnails/17.jpg)
Lecture Summary
Numbering System
Logic Gates
Computer Architecture
C and Assembly Language
Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad
17