SlideShare a Scribd company logo
1 of 26
Microprocessor SystemMicroprocessor System
Engr. Shafiullah SoomroEngr. Shafiullah Soomro
ReviewReview
 Computer?Computer?
 Input=>Process=>Output, StorageInput=>Process=>Output, Storage
 Generations of ComputerGenerations of Computer
ReviewReview
Processing Devices
SESSION NO.2SESSION NO.2
Introduction to MicroprocessorIntroduction to Microprocessor
⇒Simplified CPU Organization
⇒Bus System
⇒Fetch Execute Cycle
What is Microprocessor?What is Microprocessor?
 A microprocessor incorporates most or all of theA microprocessor incorporates most or all of the
functions of a computer's central processing unitfunctions of a computer's central processing unit
(CPU) on a single integrated circuit (IC, or(CPU) on a single integrated circuit (IC, or
microchip)microchip)
 A silicon chip that contains a CPU. In the worldA silicon chip that contains a CPU. In the world
of personal computers, the termsof personal computers, the terms microprocessormicroprocessor
and CPU are used interchangeably. It is the heartand CPU are used interchangeably. It is the heart
of computerof computer
 A microprocessor, sometimes called aA microprocessor, sometimes called a logic chiplogic chip,,
is a computer processor on a microchip. Theis a computer processor on a microchip. The
microprocessor contains all, or most of, themicroprocessor contains all, or most of, the
central processing unit (CPU) functionscentral processing unit (CPU) functions
John von Neumann Model for Digital ComputerJohn von Neumann Model for Digital Computer
a design model for a stored-program digital computer that uses a central
processing unit (CPU) and a single separate storage structure ("memory")
to hold both instructions and data.
MicrocomputerMicrocomputer
 What is a microcomputer?What is a microcomputer?
 Ans. A microcomputer is a system which isAns. A microcomputer is a system which is
capable of processing a stream of inputcapable of processing a stream of input
informations and will generate a stream ofinformations and will generate a stream of
output informations taking the help of aoutput informations taking the help of a
program which is stored in the memory ofprogram which is stored in the memory of
the system.the system.
 Called “Micro” because of its small size andCalled “Micro” because of its small size and
low costlow cost
 Contains Five Element:Contains Five Element:
1. Input Unit1. Input Unit
2. Control Unit (in CPU)2. Control Unit (in CPU)
3. Arthmetic Unit (in CPU)3. Arthmetic Unit (in CPU)
4. Memory (RAM, ROM)4. Memory (RAM, ROM)
5. Output Unit5. Output Unit
Typical Microcomputer OperationTypical Microcomputer Operation
Fig from book page 5
Practical ApproachPractical Approach
Instruction?Instruction?
What is meant by instruction?
Ans: An instruction is a command which asks the microprocessor to
perform a specific task or job.
Practical Example:
Kill the enemy
Mathametical Example:
2 + 4 = ?
Operation / Operational Code (Op-Code)
Operand / Data
Program?Program?
 Series or Collection of InstructionsSeries or Collection of Instructions
Practical Example:
Program for making a Coffee???
Mathematical Example:
Let A = 10
Let B = 5
C = A + 2
D= C + B
Print D
Computer Programming LanguagesComputer Programming Languages
 Low Level / Machine LanguageLow Level / Machine Language
 Assembly LanguageAssembly Language
 High level LanguageHigh level Language
10110100
11011101
11110110
11001010
01011100
MOVE AX, 2
MOVE BX, 4
ADD AX,BX
STA AX, 10BH
Let A = 2
Let B = 4
A = A+B
Print A
Programming LanguagesProgramming Languages
What is machine language programming?
Ans. Programming a computer by utilizing hex or binary code is known
as machine language programming.
What is meant by assembly language programming?
Ans. Programming a microcomputer by writing mnemonics is known as
assembly language programming. Assembly is Machine dependent
language
What are meant by low level and high level languages?
Ans. Programming languages that are closer to natural languages, these
languages are machine independent, also called high level languages.
Examples are BASIC, FORTRAN, C, ALGOL, COBOL, etc.
What is mnemonic?What is mnemonic?
 It is very difficult to understand a program if it is written inIt is very difficult to understand a program if it is written in
either binary or hex code. Thus the manufacturers have devised aeither binary or hex code. Thus the manufacturers have devised a
symbolic code for each instruction, called a mnemonic.symbolic code for each instruction, called a mnemonic.
 In assembly language a mnemonic is a code, usually from 1 to 5In assembly language a mnemonic is a code, usually from 1 to 5
letters, that represents an opcode, followed by one or moreletters, that represents an opcode, followed by one or more
numbers (the operands).numbers (the operands).
Examples of mnemonics are:Examples of mnemonics are:
INR A, ADD M, etc.INR A, ADD M, etc.
TranslatorsTranslators
 InterpreterInterpreter
Translate the program into Machine language code line by lineTranslate the program into Machine language code line by line
 CompilerCompiler
Translate the whole program at once into machine language codeTranslate the whole program at once into machine language code
 AssemblerAssembler
Special translator used for translating the Assembly languageSpecial translator used for translating the Assembly language
program into Machine Language codeprogram into Machine Language code
Bus SystemBus System
Note: You can also use fig:1-2 on page 3 (typical microcomputer organization) of book
Microprocessor Fundamentals by Roger Tokhiem, to understand bus system
Bus System DescriptionBus System Description
 A bus is a bunch of wires through which data or address or control signalsA bus is a bunch of wires through which data or address or control signals
flow.flow.
 The MPU communicates with memory and I/O using the system busThe MPU communicates with memory and I/O using the system bus
consisting of:consisting of:
 Address Bus:Address Bus: unidirectional and carries memory and I/O addressesunidirectional and carries memory and I/O addresses
(From where the Data will come or to where the Data would go?)(From where the Data will come or to where the Data would go?)
 Data Bus:Data Bus: bidirectional; transfers binary data and instructions betweenbidirectional; transfers binary data and instructions between
MPU and memory and I/O (Who will bring the data to and from?)MPU and memory and I/O (Who will bring the data to and from?)
 Control lines:Control lines: Read and Write timing signals asserted by MPU (WhatRead and Write timing signals asserted by MPU (What
to do with Data?)to do with Data?)
Inside CPU/MicroprocessorInside CPU/Microprocessor
Fig from Page 72
Simplified CPU Organization
Inside ALUInside ALU
Description ofDescription of Simplified CPU Organization
Accumulator: Its is the general purpose register(s) associated with the
ALU operations and sometimes I/O operations.
Temporary Register: It is also a general purpose register, use with
Accumulator to perform ALU operations
Program Counter: It holds the address of the next instruction to be
fetched from the memory.
Airthmetic Logic Unit: Performs all calculations of CPU using Adder &
Shifter and results are sent back to Accumulator and it also expresses
status or conditions (if occur) in result of operation through Status
Register.
Instruction Register: holds the instruction (op-code)
Instruction Decoder: it translates the instruction that is in Instruction
Register
Timming and Control Section: most complex section of CPU, It affects
and sequences all events within the CPU
Description ofDescription of Simplified CPU Organization
Primary Function of the CPU of a microcomputer:
1. Fetch, decode and execute program instructions in proper order
2. Transfer data to and from memory and to and from input/output
sections
3. Respond to external interrupts
4. Provide overall timming and control signals for entire system
Fetch Execute CycleFetch Execute Cycle
Computer Memory Addressing
Fetch Execute CycleFetch Execute Cycle
Fetch Execute CycleFetch Execute Cycle
Bit Size/Word SizeBit Size/Word Size of Microprocessorof Microprocessor
 It is the width of accumulator.It is the width of accumulator.
 Microprocessors are commonly classified as 4-Microprocessors are commonly classified as 4-
bit, 8-bit, 16-bit or 32-bit units.bit, 8-bit, 16-bit or 32-bit units.
 8080/8085, 6800, 6502 and Z80 are common 8-8080/8085, 6800, 6502 and Z80 are common 8-
bit microprocessorsbit microprocessors
 8086, 8088, 68000, 65816 and Z8000 are typical8086, 8088, 68000, 65816 and Z8000 are typical
16-bit microprocessors16-bit microprocessors
 80386, 68020, 32000 and Z-80000 are examples80386, 68020, 32000 and Z-80000 are examples
of 32-bit microprocessorof 32-bit microprocessor
End of Session no. 2End of Session no. 2

More Related Content

What's hot

introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessorsvishi1993
 
8085 micro processor- notes
8085 micro  processor- notes8085 micro  processor- notes
8085 micro processor- notesDr.YNM
 
Introduction to microprocessor notes
Introduction to microprocessor notesIntroduction to microprocessor notes
Introduction to microprocessor notesSARITHA REDDY
 
Motorola microprocessor
Motorola microprocessorMotorola microprocessor
Motorola microprocessorIffat Anjum
 
Origin of Microprocessor and Classification of Microprocessor
Origin of Microprocessor and  Classification of Microprocessor Origin of Microprocessor and  Classification of Microprocessor
Origin of Microprocessor and Classification of Microprocessor Vijay Kumar
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessorKashyap Shah
 
Microprocessor Introduction
Microprocessor IntroductionMicroprocessor Introduction
Microprocessor IntroductionNaveen Dubey
 
microprocessor
microprocessormicroprocessor
microprocessorillpa
 
Microprocessors and controllers
Microprocessors and controllersMicroprocessors and controllers
Microprocessors and controllersWendy Hemo
 
Evolution Of Microprocessor
Evolution Of MicroprocessorEvolution Of Microprocessor
Evolution Of Microprocessorguest3870d0
 
Introduction to Microprocessors
Introduction to MicroprocessorsIntroduction to Microprocessors
Introduction to Microprocessors76 Degree Creative
 
Introduction for microprocessor
Introduction for microprocessorIntroduction for microprocessor
Introduction for microprocessorTHANDAIAH PRABU
 
Microprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture NotesMicroprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture NotesFellowBuddy.com
 
Microprocessors evolution introduction to microprocessor
Microprocessors  evolution introduction to microprocessorMicroprocessors  evolution introduction to microprocessor
Microprocessors evolution introduction to microprocessorVijay Kumar
 
Introduction to Microprocessor
Introduction to MicroprocessorIntroduction to Microprocessor
Introduction to MicroprocessorArsalan Qureshi
 
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPTMICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPTLakshya Sharma
 

What's hot (20)

introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessors
 
8085 micro processor- notes
8085 micro  processor- notes8085 micro  processor- notes
8085 micro processor- notes
 
Introduction to microprocessor notes
Introduction to microprocessor notesIntroduction to microprocessor notes
Introduction to microprocessor notes
 
Motorola microprocessor
Motorola microprocessorMotorola microprocessor
Motorola microprocessor
 
Origin of Microprocessor and Classification of Microprocessor
Origin of Microprocessor and  Classification of Microprocessor Origin of Microprocessor and  Classification of Microprocessor
Origin of Microprocessor and Classification of Microprocessor
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
Microprocessor Introduction
Microprocessor IntroductionMicroprocessor Introduction
Microprocessor Introduction
 
microprocessor
microprocessormicroprocessor
microprocessor
 
Microprocessors and controllers
Microprocessors and controllersMicroprocessors and controllers
Microprocessors and controllers
 
Evolution Of Microprocessor
Evolution Of MicroprocessorEvolution Of Microprocessor
Evolution Of Microprocessor
 
Introduction to Microprocessors
Introduction to MicroprocessorsIntroduction to Microprocessors
Introduction to Microprocessors
 
Introduction for microprocessor
Introduction for microprocessorIntroduction for microprocessor
Introduction for microprocessor
 
Microprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture NotesMicroprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture Notes
 
Introduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorIntroduction to 8085 Microprocessor
Introduction to 8085 Microprocessor
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Microprocessors evolution introduction to microprocessor
Microprocessors  evolution introduction to microprocessorMicroprocessors  evolution introduction to microprocessor
Microprocessors evolution introduction to microprocessor
 
Introduction to Microprocessor
Introduction to MicroprocessorIntroduction to Microprocessor
Introduction to Microprocessor
 
Chapter 2: Microprocessors
Chapter 2: MicroprocessorsChapter 2: Microprocessors
Chapter 2: Microprocessors
 
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPTMICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
 

Similar to Microprocessor systems (4)

UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdfSaralaT3
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csaAnjaan Gajendra
 
Memory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycleMemory & the fetch decode-execute cycle
Memory & the fetch decode-execute cyclechantellemallia
 
Basic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptxBasic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptxhasanbashar400
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessorankitnav1
 
An introduction to digital signal processors 1
An introduction to digital signal processors 1An introduction to digital signal processors 1
An introduction to digital signal processors 1Hossam Hassan
 
System Programming- Unit I
System Programming- Unit ISystem Programming- Unit I
System Programming- Unit ISaranya1702
 
SP Solutions -Adi.pdf
SP Solutions -Adi.pdfSP Solutions -Adi.pdf
SP Solutions -Adi.pdfAdiseshaK
 
SP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfSP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfAdiseshaK
 
U proc ovw
U proc ovwU proc ovw
U proc ovwBrit4
 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsEkeedaPvtLtd
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Designmekind
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and DesignKamal Acharya
 
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptxFANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptxPannaBushratul
 
ITBIS105 6
ITBIS105 6ITBIS105 6
ITBIS105 6Suad 00
 

Similar to Microprocessor systems (4) (20)

UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdf
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
 
Memory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycleMemory & the fetch decode-execute cycle
Memory & the fetch decode-execute cycle
 
Basic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptxBasic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptx
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
 
An introduction to digital signal processors 1
An introduction to digital signal processors 1An introduction to digital signal processors 1
An introduction to digital signal processors 1
 
System Programming- Unit I
System Programming- Unit ISystem Programming- Unit I
System Programming- Unit I
 
SP Solutions -Adi.pdf
SP Solutions -Adi.pdfSP Solutions -Adi.pdf
SP Solutions -Adi.pdf
 
SP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfSP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdf
 
SP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfSP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdf
 
U proc ovw
U proc ovwU proc ovw
U proc ovw
 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessors
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Processor Basics
Processor BasicsProcessor Basics
Processor Basics
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
 
Unit2fit
Unit2fitUnit2fit
Unit2fit
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Chapter1a
Chapter1aChapter1a
Chapter1a
 
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptxFANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
 
ITBIS105 6
ITBIS105 6ITBIS105 6
ITBIS105 6
 

More from Quaid-e-Awam University of Engineering Science and Technology Nawabshah Sindh Pakistan

More from Quaid-e-Awam University of Engineering Science and Technology Nawabshah Sindh Pakistan (20)

Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lecture 0 for Civil Engineering
Lecture 0 for Civil EngineeringLecture 0 for Civil Engineering
Lecture 0 for Civil Engineering
 
Intro ch 09_a
Intro ch 09_aIntro ch 09_a
Intro ch 09_a
 
Intro ch 07_a
Intro ch 07_aIntro ch 07_a
Intro ch 07_a
 
Intro ch 06_b
Intro ch 06_bIntro ch 06_b
Intro ch 06_b
 
Intro ch 05_b
Intro ch 05_bIntro ch 05_b
Intro ch 05_b
 
Intro ch 05_a
Intro ch 05_aIntro ch 05_a
Intro ch 05_a
 
Intro ch 04_b
Intro ch 04_bIntro ch 04_b
Intro ch 04_b
 
Intro ch 04_a
Intro ch 04_aIntro ch 04_a
Intro ch 04_a
 
Intro ch 04_b
Intro ch 04_bIntro ch 04_b
Intro ch 04_b
 
Intro ch 03_a
Intro ch 03_aIntro ch 03_a
Intro ch 03_a
 
Intro ch 03_b
Intro ch 03_bIntro ch 03_b
Intro ch 03_b
 
Lecture 2 generations
Lecture 2  generationsLecture 2  generations
Lecture 2 generations
 
Intro ch 01_a
Intro ch 01_aIntro ch 01_a
Intro ch 01_a
 
M6800
M6800M6800
M6800
 
Microprocessor systems 8085
Microprocessor systems 8085Microprocessor systems 8085
Microprocessor systems 8085
 

Recently uploaded

Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 

Recently uploaded (20)

Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 

Microprocessor systems (4)

  • 1. Microprocessor SystemMicroprocessor System Engr. Shafiullah SoomroEngr. Shafiullah Soomro
  • 2. ReviewReview  Computer?Computer?  Input=>Process=>Output, StorageInput=>Process=>Output, Storage  Generations of ComputerGenerations of Computer
  • 4. SESSION NO.2SESSION NO.2 Introduction to MicroprocessorIntroduction to Microprocessor ⇒Simplified CPU Organization ⇒Bus System ⇒Fetch Execute Cycle
  • 5. What is Microprocessor?What is Microprocessor?  A microprocessor incorporates most or all of theA microprocessor incorporates most or all of the functions of a computer's central processing unitfunctions of a computer's central processing unit (CPU) on a single integrated circuit (IC, or(CPU) on a single integrated circuit (IC, or microchip)microchip)  A silicon chip that contains a CPU. In the worldA silicon chip that contains a CPU. In the world of personal computers, the termsof personal computers, the terms microprocessormicroprocessor and CPU are used interchangeably. It is the heartand CPU are used interchangeably. It is the heart of computerof computer  A microprocessor, sometimes called aA microprocessor, sometimes called a logic chiplogic chip,, is a computer processor on a microchip. Theis a computer processor on a microchip. The microprocessor contains all, or most of, themicroprocessor contains all, or most of, the central processing unit (CPU) functionscentral processing unit (CPU) functions
  • 6. John von Neumann Model for Digital ComputerJohn von Neumann Model for Digital Computer a design model for a stored-program digital computer that uses a central processing unit (CPU) and a single separate storage structure ("memory") to hold both instructions and data.
  • 7. MicrocomputerMicrocomputer  What is a microcomputer?What is a microcomputer?  Ans. A microcomputer is a system which isAns. A microcomputer is a system which is capable of processing a stream of inputcapable of processing a stream of input informations and will generate a stream ofinformations and will generate a stream of output informations taking the help of aoutput informations taking the help of a program which is stored in the memory ofprogram which is stored in the memory of the system.the system.  Called “Micro” because of its small size andCalled “Micro” because of its small size and low costlow cost  Contains Five Element:Contains Five Element: 1. Input Unit1. Input Unit 2. Control Unit (in CPU)2. Control Unit (in CPU) 3. Arthmetic Unit (in CPU)3. Arthmetic Unit (in CPU) 4. Memory (RAM, ROM)4. Memory (RAM, ROM) 5. Output Unit5. Output Unit
  • 8. Typical Microcomputer OperationTypical Microcomputer Operation Fig from book page 5
  • 10. Instruction?Instruction? What is meant by instruction? Ans: An instruction is a command which asks the microprocessor to perform a specific task or job. Practical Example: Kill the enemy Mathametical Example: 2 + 4 = ? Operation / Operational Code (Op-Code) Operand / Data
  • 11. Program?Program?  Series or Collection of InstructionsSeries or Collection of Instructions Practical Example: Program for making a Coffee??? Mathematical Example: Let A = 10 Let B = 5 C = A + 2 D= C + B Print D
  • 12. Computer Programming LanguagesComputer Programming Languages  Low Level / Machine LanguageLow Level / Machine Language  Assembly LanguageAssembly Language  High level LanguageHigh level Language 10110100 11011101 11110110 11001010 01011100 MOVE AX, 2 MOVE BX, 4 ADD AX,BX STA AX, 10BH Let A = 2 Let B = 4 A = A+B Print A
  • 13. Programming LanguagesProgramming Languages What is machine language programming? Ans. Programming a computer by utilizing hex or binary code is known as machine language programming. What is meant by assembly language programming? Ans. Programming a microcomputer by writing mnemonics is known as assembly language programming. Assembly is Machine dependent language What are meant by low level and high level languages? Ans. Programming languages that are closer to natural languages, these languages are machine independent, also called high level languages. Examples are BASIC, FORTRAN, C, ALGOL, COBOL, etc.
  • 14. What is mnemonic?What is mnemonic?  It is very difficult to understand a program if it is written inIt is very difficult to understand a program if it is written in either binary or hex code. Thus the manufacturers have devised aeither binary or hex code. Thus the manufacturers have devised a symbolic code for each instruction, called a mnemonic.symbolic code for each instruction, called a mnemonic.  In assembly language a mnemonic is a code, usually from 1 to 5In assembly language a mnemonic is a code, usually from 1 to 5 letters, that represents an opcode, followed by one or moreletters, that represents an opcode, followed by one or more numbers (the operands).numbers (the operands). Examples of mnemonics are:Examples of mnemonics are: INR A, ADD M, etc.INR A, ADD M, etc.
  • 15. TranslatorsTranslators  InterpreterInterpreter Translate the program into Machine language code line by lineTranslate the program into Machine language code line by line  CompilerCompiler Translate the whole program at once into machine language codeTranslate the whole program at once into machine language code  AssemblerAssembler Special translator used for translating the Assembly languageSpecial translator used for translating the Assembly language program into Machine Language codeprogram into Machine Language code
  • 16. Bus SystemBus System Note: You can also use fig:1-2 on page 3 (typical microcomputer organization) of book Microprocessor Fundamentals by Roger Tokhiem, to understand bus system
  • 17. Bus System DescriptionBus System Description  A bus is a bunch of wires through which data or address or control signalsA bus is a bunch of wires through which data or address or control signals flow.flow.  The MPU communicates with memory and I/O using the system busThe MPU communicates with memory and I/O using the system bus consisting of:consisting of:  Address Bus:Address Bus: unidirectional and carries memory and I/O addressesunidirectional and carries memory and I/O addresses (From where the Data will come or to where the Data would go?)(From where the Data will come or to where the Data would go?)  Data Bus:Data Bus: bidirectional; transfers binary data and instructions betweenbidirectional; transfers binary data and instructions between MPU and memory and I/O (Who will bring the data to and from?)MPU and memory and I/O (Who will bring the data to and from?)  Control lines:Control lines: Read and Write timing signals asserted by MPU (WhatRead and Write timing signals asserted by MPU (What to do with Data?)to do with Data?)
  • 18. Inside CPU/MicroprocessorInside CPU/Microprocessor Fig from Page 72 Simplified CPU Organization
  • 20. Description ofDescription of Simplified CPU Organization Accumulator: Its is the general purpose register(s) associated with the ALU operations and sometimes I/O operations. Temporary Register: It is also a general purpose register, use with Accumulator to perform ALU operations Program Counter: It holds the address of the next instruction to be fetched from the memory. Airthmetic Logic Unit: Performs all calculations of CPU using Adder & Shifter and results are sent back to Accumulator and it also expresses status or conditions (if occur) in result of operation through Status Register. Instruction Register: holds the instruction (op-code) Instruction Decoder: it translates the instruction that is in Instruction Register Timming and Control Section: most complex section of CPU, It affects and sequences all events within the CPU
  • 21. Description ofDescription of Simplified CPU Organization Primary Function of the CPU of a microcomputer: 1. Fetch, decode and execute program instructions in proper order 2. Transfer data to and from memory and to and from input/output sections 3. Respond to external interrupts 4. Provide overall timming and control signals for entire system
  • 22. Fetch Execute CycleFetch Execute Cycle Computer Memory Addressing
  • 23. Fetch Execute CycleFetch Execute Cycle
  • 24. Fetch Execute CycleFetch Execute Cycle
  • 25. Bit Size/Word SizeBit Size/Word Size of Microprocessorof Microprocessor  It is the width of accumulator.It is the width of accumulator.  Microprocessors are commonly classified as 4-Microprocessors are commonly classified as 4- bit, 8-bit, 16-bit or 32-bit units.bit, 8-bit, 16-bit or 32-bit units.  8080/8085, 6800, 6502 and Z80 are common 8-8080/8085, 6800, 6502 and Z80 are common 8- bit microprocessorsbit microprocessors  8086, 8088, 68000, 65816 and Z8000 are typical8086, 8088, 68000, 65816 and Z8000 are typical 16-bit microprocessors16-bit microprocessors  80386, 68020, 32000 and Z-80000 are examples80386, 68020, 32000 and Z-80000 are examples of 32-bit microprocessorof 32-bit microprocessor
  • 26. End of Session no. 2End of Session no. 2