call, timing and pipeliningsaqazi.com/eee342/fa19_mp_lecture01_20190903_introduction_to_… ·...
TRANSCRIPT
Introduction to
Microprocessor
System and InterfacingLecture# 01
Microprocessor System and Interfacing
Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad
1
Lecture Objectives
Introduction to Course and Instructor
Basics of Microprocessors
Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad
2
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
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
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
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
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
Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad
8 Hardware for the Course
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
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
Digital Primer
Binary Logic
Logic Gates
Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad
11
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
Organization of Computers
Central Processing Unit (CPU)
Memories (RAM / ROM)
I/O Devices
Memory and Address Busses
Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad
13
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
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
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
Lecture Summary
Numbering System
Logic Gates
Computer Architecture
C and Assembly Language
Dr. Sohaib Ayyaz QaziCOMSATS University Islamabad
17