SlideShare a Scribd company logo
1 of 37
Computer Architecture
& Microprocessor
1
Computer Architecture and
MicroProcessor
Unit-2
Dr. V.Umadevi M.Sc(CS &IT). M.Tech (IT)., M.Phil., PhD., D.Litt.,
Director, Department of Computer Science, Jairams Arts and
Science College, Karur.
2
Session IISession II
 Microprocessor – an Introduction
 General Architecture of Microprocessor
 Memory
 I/O
 Architecture of 8085 Microprocessor
Computer Architecture
& Microprocessor
3
Microprocessor – An IntroductionMicroprocessor – An Introduction
Programmable Logical device
Functionality

manipulates data

Controls timing of various operations

communicates with peripherals
Applications

Automation & Control
Computer Architecture
& Microprocessor
4
Architecture & Operations of MPUArchitecture & Operations of MPU
Architecture
- Logical design of microprocessor
Types of Operations

Microprocessor initiated operations

Internal Data Operations

Peripheral initiated Operation
Computer Architecture
& Microprocessor
5
Microprocessor initiated operationsMicroprocessor initiated operations
Communications Operations

Memory Read

Memory Write

I/O Read

I/O Write
Steps involved

Location Identification

Transfer of data

Providing Timing or synchronization signals
Computer Architecture
& Microprocessor
6
Requirement
Address Bus

Unidirectional

Arbitrary number – (commonly used 16)

Capable of Addressing 2 n
Data Bus

Bidirectional

Decides the range of data being handled

Determines the word length and the register size
Computer Architecture
& Microprocessor
7
Control Bus

A number of Single lines

Provides timing signals
Communication Process
To Read an instruction

Location is identified by placing the address in Address Bus

A pulse for initiating a READ is sent

Data Bus brings the data to MPU
Computer Architecture
& Microprocessor
8
Internal Data Operations
Processing of Data and its Storage

Arithmetic & Logical Operation

Condition Testing

Order of Execution

Storing of Data
Requirement

Accumulator

Flag Register

General purpose Registers

Program Counter

Stack
Computer Architecture
& Microprocessor
9
(8085 Microprocessor)
Accumulator

Performs Arithmetic and logical Operations

8 bit Register
Flag Register

Used for Decision Making

5 Flags – Carry, Zero, Auxiliary Carry, Sign, Parity
Program Status Word
Computer Architecture
& Microprocessor
10
Registers

Stores Data during Execution

6 8-bit registers – B, C, D, E, H and L

Register Combination – BC, DE and HL
Program Counter (PC)

16 Bit Memory Pointer

Sequences the Execution
Stack Pointer (SP)

16 Bit Memory Pointer

Points to location in R/W Memory
Computer Architecture
& Microprocessor
11
Peripheral initiated Operation
Operations initiated by external devices
Reset

Program Counter is cleared
Interrupt

Normal Execution interrupted to execute Service Routine
Ready

Synchronizes MPU operations with Peripherals
Hold

Peripherals takes Control of Buses
Computer Architecture
& Microprocessor
12
MemoryMemory
Stores Binary Values
Types

Read Write Memory (R/W M)

Read Only Memory (ROM)
R/W Memory (Random Access Memory)

Volatile

processes data

Types:- Static & Dynamic
Computer Architecture
& Microprocessor
13
Static R/W Memory

Flip-flops

Stored as Voltage
Dynamic R/W Memory

MOS Transistor

Stored as charges

Faster

Refreshing Circuit
Computer Architecture
& Microprocessor
14
ROM Memory

Non Volatile

Used for subroutines

Cheap & Dense

Types: -
Masked ROM
PROM (Programmable Read Only Memory)
EPROM (Erasable Programmable Read Only Memory)
EEPROM (Electrically Erasable PROM)
Computer Architecture
& Microprocessor
15
Memory Organization
A memory requires:

Chips containing Registers

Chip Select line

R/W line

Address lines

I/O lines
Memory Map

Assigning a unique address for each register
Computer Architecture
& Microprocessor
16
Control Logic
A
D
D
R
E
S
S
D
E
C
O
D
E
R
R/W
D7 D6 D5 D4 D3 D2 D1 D0
A2
A1
A0
110
110
101
100
011
010
001
000
Size of Memory

Number of Register

Number of I/O lines
CS
Computer Architecture
& Microprocessor
17
Input / Output

Communicates to the external world
Methods of Communication

Peripheral or Direct I/O

Memory-Mapped I/O
Computer Architecture
& Microprocessor
18

Peripheral or Direct I/O
IN/OUT Transfers data
8 Address Lines - 256 devices – Port Numbers
Uses Control Lines – IOW & IOR

Memory-Mapped I/O
16 Address Lines
Memory Map is shared
Uses Control Lines – MEMW & MEMR
Computer Architecture
& Microprocessor
19
Interfacing Devices
Tri-State Device

3 stages – logic 1, logic 0 and high impedance
Buffer

Logic circuit which amplifies the current
Latch

a D flip-flop

Types :-
D
G
Q
Q
Transparent Latch Positive Edge Triggered
D
CK
Q
Q
PR
CLR
Computer Architecture
& Microprocessor
20
Decoder

Displays an output based on the combination of input
Encoder

Outputs a code based on the input
2 to 4
Decoder
2 to 4
Encoder
Output
Output
Input
Input
Computer Architecture
& Microprocessor
21
8085 Microprocessor8085 Microprocessor
Features

8 bit

Has 40 pins

Multiplexed Address/ Data Bus
Computer Architecture
& Microprocessor
22
8085
PINOUT
X1
X2
RESET OUT
SOD
SID
TRAP
RST 7.5
RST 6.5
RST 5.5
INTR
INTA
AD0
AD1
AD2
AD3
AD4
AD5
AD6
AD7
Vcc
HOLD
HLDA
CLK(OUT)
RESET IN
READY
IO/M
S1
RD
WR
ALE
S0
A15
A14
A13
A12
A11
A10
A9
A8
1
2
3
4
5
6
7
8
9
10
11
12
14
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
Computer Architecture
& Microprocessor
23
+5V GND
Serial
I/O
Ports
Interrupts
&
Externally
Initiated
Signals
External Signal
Acknowledgement
RESET CLK OUT
OUT
X1 X2 Vcc Vss
ALE
S0
S1
IO/M
RD
WR
SID
SOD
TRAP
RST 7.5
RST 6.5
RST 5.5
INTR
READY
HOLD
RESET IN
INTA
HLDA
High-Order
Address Bus
Multiplexed
Address/Dat
a Bus
A15
A8
AD7
AD0
Control
And
Status Signals
8085 Signals
Computer Architecture
& Microprocessor
24
8085 Microprocessor Signal Groups
Address Bus

UniDirectional

8 Higher Order Address Bus
Multiplexed Address/Data Bus

BiDirectional

Bus Multiplexing

Latching of Low - order Address Bus – ALE
Computer Architecture
& Microprocessor
25
Control and Status Signal
ALE (Address Latch Enable)

Generated in the beginning of each operation

Latches low - order address from the multiplexed bus
RD (Read)

Active low Control Signal

Reads from Memory / IO
WR (Write)

Active low Control Signal

Writes to selected Memory / IO
Computer Architecture
& Microprocessor
26
IO/M
RD
8085
WR
A15
A8
ALE
AD7
AD0
EN
LATCH
A15
A8
A7
A0
D7
D0
Data Bus
MEMR
MEMW
IOR
IOW
Control
Signals
Computer Architecture
& Microprocessor
27
IO/M

High – IO Operation

Low – Memory Operation
S1 and S0

Status Signal – rarely used

Identifies various operations
S1 So Desc.
0 0 HALT
0 1 WRITE
1 0 READ
1 1 FETCH
Computer Architecture
& Microprocessor
28
Power Supply and Clock Frequency

+5V power supply (Vcc)

3 MHz clock (X1 & X2)

CLK – Used as System Clock for other devices
Interrupts and Externally Initiated Operations

Interrupts transfer the program control to specific memory
location
INTR (Interrupt Request)

A general-purpose interrupt.
INTA (Interrupt Acknowledge)

Acknowledges an interrupt
Computer Architecture
& Microprocessor
29
RST 7.5 (Restart Interrupt)

Highest priority Vectored Interrupt
RST 6.5 (Restart Interrupt)

Vectored interrupt with a priority less than RST 7.5, but
more than RST 5.5 and INTR.
RST 5.5 (Restart Interrupt)

Vectored interrupt with the least priority among Restart
Interrupts but more priority than INTR signals.
TRAP (Input)

A non-maskable restart interrupt.

highest priority of any interrupt.

Externally initiated signals are instantiated by an external
device
Computer Architecture
& Microprocessor
30
HOLD

Indicates a peripheral’s request to use address and data
buses.
HLDA ( Hold Acknowledge)

Acknowledges the HOLD request.
READY

Delays microprocessor’s operation to work in pace with the
slow peripherals connected to it.
RESET IN

Sets program counter to zero

The buses are tri-stated and MPU is reset.
RESET OUT

Indicates MPU is being reset

Can be used to reset other devices.
Computer Architecture
& Microprocessor
31
Serial I/O Ports
SID (Input)

Serial input data Line

The data on SID is loaded into accumulator when a RIM
instruction is executed.
SOD (output)

Serial output data line.

The output SOD is set or reset as specified by the SIM
instruction.
Computer Architecture
& Microprocessor
32
Address Buffer
Accumulator
(8)
Temp
Reg. (8)
Arithmetic
Logic Unit
(ALU)
(8)
Instruction
Decoder
and
Machine
Cycle
Encoding
Flag (5)
Flip-flops
Instruction
Register (8)
W Temp. Reg. Z Temp. Reg.
B Reg.
D Reg.
H Reg.
Stack
Program Counter
C Reg.
E Reg.
L Reg.
Address Latch (16)
Data Address
Buffer (8)
Multiplexer
Timing and Control
CLK Reset
GEN Control Status DMA
Reg.Select
Serial I/O Control
SID
Interrupt Control
TRAP
RST 7.5
RST 6.5
RST 5.5
INTA
INTR
SOD
Ready
RD WR ALE S0 S1 IO/M HLDA RESET OUT
RESET INHOLD
A15 – A8
Address Bus AD7 – AD0
Address/Data Bus
X1
x2
R
e
g
i
s
t
e
r
A
r
r
a
y
Computer Architecture
& Microprocessor
33
RegistersRegisters
A (Accumulator)
8 Bits
Arithmetic Operations
Logical Operations
B
8 Bits
C
8 Bits
B & C combined to form 16 Bits
D
8 Bits
E
8 Bits
D & E combined to form 16 Bits
H
8 Bits
L
8 Bits
H & L combined to form 16 Bits
PC (Program
Counter)
16 Bits
Has the Program Pointer Address
SP (Stack Pointer)
16 Bits
Has the Memory Pointer Address
Computer Architecture
& Microprocessor
34
FlagsFlags
S Z AC P CY
D7 D6 D5 D4 D3 D2 D1 D0
S Sign Set – Positive
Reset – Negative
Z Zero Set – Zero
Reset – Non-Zero
AC Auxiliary
Carry
Set – Carry From D3 to D4
Reset – No Carry From D3 to D4
P Parity Set – Even
Reset – Odd
CY Carry Set – Carry Exists
Reset – No Carry exists
Computer Architecture
& Microprocessor
35
Bus Timings

Sequence of operations called instruction cycle executes an
instruction

Instruction Cycle is divided into few basic machine cycles

Machine cycles are in turn divided into System Clock
Period.
Example:

To fetch a data 10101010 from a location 2005H
Computer Architecture
& Microprocessor
36
T1 T2 T3
CLK
A15 – A8
AD7 –AD0
ALE
IO/M
RD
Low -Order
Memory Address
Memory
Contents
M
High –Order
Memory Address
Computer Architecture
& Microprocessor
37
ALU
Instruction
Decoder
Control
Logic
B
D
H
Stack
Program Counter
C
E
L
Address Bus
Data Bus
Memory

More Related Content

What's hot

Introduction to Computer Architecture
Introduction to Computer ArchitectureIntroduction to Computer Architecture
Introduction to Computer ArchitectureAnkush Srivastava
 
Computer organisation
Computer organisationComputer organisation
Computer organisationMohd Arif
 
Computer organization-and-architecture-questions-and-answers
Computer organization-and-architecture-questions-and-answersComputer organization-and-architecture-questions-and-answers
Computer organization-and-architecture-questions-and-answersappasami
 
Computer architecture
Computer architectureComputer architecture
Computer architectureBurhan Ahmed
 
Computer organization
Computer organizationComputer organization
Computer organizationishapadhy
 
Computer architecture
Computer architectureComputer architecture
Computer architectureZuhaib Zaroon
 
Von Neumann Architecture
Von Neumann Architecture   Von Neumann Architecture
Von Neumann Architecture Lor Ham
 
EC8791 consumer electronics-platform level performance analysis
EC8791 consumer electronics-platform level performance analysisEC8791 consumer electronics-platform level performance analysis
EC8791 consumer electronics-platform level performance analysisRajalakshmiSermadurai
 
Computer organiztion5
Computer organiztion5Computer organiztion5
Computer organiztion5Umang Gupta
 
CS4109 Computer System Architecture
CS4109 Computer System ArchitectureCS4109 Computer System Architecture
CS4109 Computer System Architecturektosri
 
Ch2 embedded processors-i
Ch2 embedded processors-iCh2 embedded processors-i
Ch2 embedded processors-iAnkit Shah
 
Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and ArchitectureSubhasis Dash
 
Chapter 01 - Introduction
Chapter 01 - IntroductionChapter 01 - Introduction
Chapter 01 - IntroductionCésar de Souza
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Shah Rukh Rayaz
 

What's hot (20)

Introduction to Computer Architecture
Introduction to Computer ArchitectureIntroduction to Computer Architecture
Introduction to Computer Architecture
 
Computer organisation
Computer organisationComputer organisation
Computer organisation
 
Computer organization-and-architecture-questions-and-answers
Computer organization-and-architecture-questions-and-answersComputer organization-and-architecture-questions-and-answers
Computer organization-and-architecture-questions-and-answers
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Computer organization
Computer organizationComputer organization
Computer organization
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Von Neumann Architecture
Von Neumann Architecture   Von Neumann Architecture
Von Neumann Architecture
 
EC8791 consumer electronics-platform level performance analysis
EC8791 consumer electronics-platform level performance analysisEC8791 consumer electronics-platform level performance analysis
EC8791 consumer electronics-platform level performance analysis
 
Computer Evolution
Computer EvolutionComputer Evolution
Computer Evolution
 
07 Input Output
07  Input  Output07  Input  Output
07 Input Output
 
Computer organiztion5
Computer organiztion5Computer organiztion5
Computer organiztion5
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Basic computer architecture
Basic computer architectureBasic computer architecture
Basic computer architecture
 
CS4109 Computer System Architecture
CS4109 Computer System ArchitectureCS4109 Computer System Architecture
CS4109 Computer System Architecture
 
Intro to cao &store program
Intro to cao &store programIntro to cao &store program
Intro to cao &store program
 
Ch2 embedded processors-i
Ch2 embedded processors-iCh2 embedded processors-i
Ch2 embedded processors-i
 
Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and Architecture
 
Chapter 01 - Introduction
Chapter 01 - IntroductionChapter 01 - Introduction
Chapter 01 - Introduction
 
CPU Architecture
CPU ArchitectureCPU Architecture
CPU Architecture
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1
 

Similar to computer architecture

PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailedAnkita Tiwari
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessorRamaPrabha24
 
PIC32MX Microcontroller Family
PIC32MX Microcontroller FamilyPIC32MX Microcontroller Family
PIC32MX Microcontroller FamilyPremier Farnell
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacingShamsul Huda
 
Module 5 embedded systems,8051
Module 5 embedded systems,8051Module 5 embedded systems,8051
Module 5 embedded systems,8051Deepak John
 
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.pptComputer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.pptRafiyaKouser2
 
Microprogrammed of organisation and architecture of computer.pptx
Microprogrammed of organisation and architecture of computer.pptxMicroprogrammed of organisation and architecture of computer.pptx
Microprogrammed of organisation and architecture of computer.pptxSahithBeats
 
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptxCOA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptxSahithBeats
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessorankitnav1
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessorankitnav1
 
Microcontoller and Embedded System
Microcontoller and Embedded SystemMicrocontoller and Embedded System
Microcontoller and Embedded SystemKaran Thakkar
 
FPGA Verilog Processor Design
FPGA Verilog Processor DesignFPGA Verilog Processor Design
FPGA Verilog Processor DesignArchana Udaranga
 
PLC ARCHITECTURE AND HARDWARE COMPONENTS
PLC ARCHITECTURE AND HARDWARE COMPONENTSPLC ARCHITECTURE AND HARDWARE COMPONENTS
PLC ARCHITECTURE AND HARDWARE COMPONENTSAkshay Dhole
 
Chp1 68000 microprocessor copy
Chp1 68000 microprocessor   copyChp1 68000 microprocessor   copy
Chp1 68000 microprocessor copymkazree
 
A microprocessor is the main component of a microcomputer system and is also ...
A microprocessor is the main component of a microcomputer system and is also ...A microprocessor is the main component of a microcomputer system and is also ...
A microprocessor is the main component of a microcomputer system and is also ...jeronimored
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Neelam Kapoor
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copymkazree
 

Similar to computer architecture (20)

PIC Introduction and explained in detailed
PIC Introduction and explained in detailedPIC Introduction and explained in detailed
PIC Introduction and explained in detailed
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
PIC32MX Microcontroller Family
PIC32MX Microcontroller FamilyPIC32MX Microcontroller Family
PIC32MX Microcontroller Family
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacing
 
Module 5 embedded systems,8051
Module 5 embedded systems,8051Module 5 embedded systems,8051
Module 5 embedded systems,8051
 
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.pptComputer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
 
Microprogrammed of organisation and architecture of computer.pptx
Microprogrammed of organisation and architecture of computer.pptxMicroprogrammed of organisation and architecture of computer.pptx
Microprogrammed of organisation and architecture of computer.pptx
 
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptxCOA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
 
Microcontoller and Embedded System
Microcontoller and Embedded SystemMicrocontoller and Embedded System
Microcontoller and Embedded System
 
FPGA Verilog Processor Design
FPGA Verilog Processor DesignFPGA Verilog Processor Design
FPGA Verilog Processor Design
 
PLC ARCHITECTURE AND HARDWARE COMPONENTS
PLC ARCHITECTURE AND HARDWARE COMPONENTSPLC ARCHITECTURE AND HARDWARE COMPONENTS
PLC ARCHITECTURE AND HARDWARE COMPONENTS
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
Chp1 68000 microprocessor copy
Chp1 68000 microprocessor   copyChp1 68000 microprocessor   copy
Chp1 68000 microprocessor copy
 
Introduction to 8085svv
Introduction to 8085svvIntroduction to 8085svv
Introduction to 8085svv
 
A microprocessor is the main component of a microcomputer system and is also ...
A microprocessor is the main component of a microcomputer system and is also ...A microprocessor is the main component of a microcomputer system and is also ...
A microprocessor is the main component of a microcomputer system and is also ...
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copy
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 

More from Dr.Umadevi V

computer architecture 4
computer architecture 4 computer architecture 4
computer architecture 4 Dr.Umadevi V
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3Dr.Umadevi V
 
computer architecture
computer architecture computer architecture
computer architecture Dr.Umadevi V
 
Multiple access techniques for wireless communication
Multiple access techniques for wireless communicationMultiple access techniques for wireless communication
Multiple access techniques for wireless communicationDr.Umadevi V
 

More from Dr.Umadevi V (12)

Data Structures 8
Data Structures 8Data Structures 8
Data Structures 8
 
Data Structures 7
Data Structures 7Data Structures 7
Data Structures 7
 
Data Structures 6
Data Structures 6Data Structures 6
Data Structures 6
 
Data Structures 5
Data Structures 5Data Structures 5
Data Structures 5
 
Data Structures 4
Data Structures 4Data Structures 4
Data Structures 4
 
Data Structures 3
Data Structures 3Data Structures 3
Data Structures 3
 
Data Structures 2
Data Structures 2Data Structures 2
Data Structures 2
 
Data Structures
Data StructuresData Structures
Data Structures
 
computer architecture 4
computer architecture 4 computer architecture 4
computer architecture 4
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3
 
computer architecture
computer architecture computer architecture
computer architecture
 
Multiple access techniques for wireless communication
Multiple access techniques for wireless communicationMultiple access techniques for wireless communication
Multiple access techniques for wireless communication
 

Recently uploaded

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 

Recently uploaded (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 

computer architecture

  • 1. Computer Architecture & Microprocessor 1 Computer Architecture and MicroProcessor Unit-2 Dr. V.Umadevi M.Sc(CS &IT). M.Tech (IT)., M.Phil., PhD., D.Litt., Director, Department of Computer Science, Jairams Arts and Science College, Karur.
  • 2. 2 Session IISession II  Microprocessor – an Introduction  General Architecture of Microprocessor  Memory  I/O  Architecture of 8085 Microprocessor
  • 3. Computer Architecture & Microprocessor 3 Microprocessor – An IntroductionMicroprocessor – An Introduction Programmable Logical device Functionality  manipulates data  Controls timing of various operations  communicates with peripherals Applications  Automation & Control
  • 4. Computer Architecture & Microprocessor 4 Architecture & Operations of MPUArchitecture & Operations of MPU Architecture - Logical design of microprocessor Types of Operations  Microprocessor initiated operations  Internal Data Operations  Peripheral initiated Operation
  • 5. Computer Architecture & Microprocessor 5 Microprocessor initiated operationsMicroprocessor initiated operations Communications Operations  Memory Read  Memory Write  I/O Read  I/O Write Steps involved  Location Identification  Transfer of data  Providing Timing or synchronization signals
  • 6. Computer Architecture & Microprocessor 6 Requirement Address Bus  Unidirectional  Arbitrary number – (commonly used 16)  Capable of Addressing 2 n Data Bus  Bidirectional  Decides the range of data being handled  Determines the word length and the register size
  • 7. Computer Architecture & Microprocessor 7 Control Bus  A number of Single lines  Provides timing signals Communication Process To Read an instruction  Location is identified by placing the address in Address Bus  A pulse for initiating a READ is sent  Data Bus brings the data to MPU
  • 8. Computer Architecture & Microprocessor 8 Internal Data Operations Processing of Data and its Storage  Arithmetic & Logical Operation  Condition Testing  Order of Execution  Storing of Data Requirement  Accumulator  Flag Register  General purpose Registers  Program Counter  Stack
  • 9. Computer Architecture & Microprocessor 9 (8085 Microprocessor) Accumulator  Performs Arithmetic and logical Operations  8 bit Register Flag Register  Used for Decision Making  5 Flags – Carry, Zero, Auxiliary Carry, Sign, Parity Program Status Word
  • 10. Computer Architecture & Microprocessor 10 Registers  Stores Data during Execution  6 8-bit registers – B, C, D, E, H and L  Register Combination – BC, DE and HL Program Counter (PC)  16 Bit Memory Pointer  Sequences the Execution Stack Pointer (SP)  16 Bit Memory Pointer  Points to location in R/W Memory
  • 11. Computer Architecture & Microprocessor 11 Peripheral initiated Operation Operations initiated by external devices Reset  Program Counter is cleared Interrupt  Normal Execution interrupted to execute Service Routine Ready  Synchronizes MPU operations with Peripherals Hold  Peripherals takes Control of Buses
  • 12. Computer Architecture & Microprocessor 12 MemoryMemory Stores Binary Values Types  Read Write Memory (R/W M)  Read Only Memory (ROM) R/W Memory (Random Access Memory)  Volatile  processes data  Types:- Static & Dynamic
  • 13. Computer Architecture & Microprocessor 13 Static R/W Memory  Flip-flops  Stored as Voltage Dynamic R/W Memory  MOS Transistor  Stored as charges  Faster  Refreshing Circuit
  • 14. Computer Architecture & Microprocessor 14 ROM Memory  Non Volatile  Used for subroutines  Cheap & Dense  Types: - Masked ROM PROM (Programmable Read Only Memory) EPROM (Erasable Programmable Read Only Memory) EEPROM (Electrically Erasable PROM)
  • 15. Computer Architecture & Microprocessor 15 Memory Organization A memory requires:  Chips containing Registers  Chip Select line  R/W line  Address lines  I/O lines Memory Map  Assigning a unique address for each register
  • 16. Computer Architecture & Microprocessor 16 Control Logic A D D R E S S D E C O D E R R/W D7 D6 D5 D4 D3 D2 D1 D0 A2 A1 A0 110 110 101 100 011 010 001 000 Size of Memory  Number of Register  Number of I/O lines CS
  • 17. Computer Architecture & Microprocessor 17 Input / Output  Communicates to the external world Methods of Communication  Peripheral or Direct I/O  Memory-Mapped I/O
  • 18. Computer Architecture & Microprocessor 18  Peripheral or Direct I/O IN/OUT Transfers data 8 Address Lines - 256 devices – Port Numbers Uses Control Lines – IOW & IOR  Memory-Mapped I/O 16 Address Lines Memory Map is shared Uses Control Lines – MEMW & MEMR
  • 19. Computer Architecture & Microprocessor 19 Interfacing Devices Tri-State Device  3 stages – logic 1, logic 0 and high impedance Buffer  Logic circuit which amplifies the current Latch  a D flip-flop  Types :- D G Q Q Transparent Latch Positive Edge Triggered D CK Q Q PR CLR
  • 20. Computer Architecture & Microprocessor 20 Decoder  Displays an output based on the combination of input Encoder  Outputs a code based on the input 2 to 4 Decoder 2 to 4 Encoder Output Output Input Input
  • 21. Computer Architecture & Microprocessor 21 8085 Microprocessor8085 Microprocessor Features  8 bit  Has 40 pins  Multiplexed Address/ Data Bus
  • 22. Computer Architecture & Microprocessor 22 8085 PINOUT X1 X2 RESET OUT SOD SID TRAP RST 7.5 RST 6.5 RST 5.5 INTR INTA AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 Vcc HOLD HLDA CLK(OUT) RESET IN READY IO/M S1 RD WR ALE S0 A15 A14 A13 A12 A11 A10 A9 A8 1 2 3 4 5 6 7 8 9 10 11 12 14 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21
  • 23. Computer Architecture & Microprocessor 23 +5V GND Serial I/O Ports Interrupts & Externally Initiated Signals External Signal Acknowledgement RESET CLK OUT OUT X1 X2 Vcc Vss ALE S0 S1 IO/M RD WR SID SOD TRAP RST 7.5 RST 6.5 RST 5.5 INTR READY HOLD RESET IN INTA HLDA High-Order Address Bus Multiplexed Address/Dat a Bus A15 A8 AD7 AD0 Control And Status Signals 8085 Signals
  • 24. Computer Architecture & Microprocessor 24 8085 Microprocessor Signal Groups Address Bus  UniDirectional  8 Higher Order Address Bus Multiplexed Address/Data Bus  BiDirectional  Bus Multiplexing  Latching of Low - order Address Bus – ALE
  • 25. Computer Architecture & Microprocessor 25 Control and Status Signal ALE (Address Latch Enable)  Generated in the beginning of each operation  Latches low - order address from the multiplexed bus RD (Read)  Active low Control Signal  Reads from Memory / IO WR (Write)  Active low Control Signal  Writes to selected Memory / IO
  • 27. Computer Architecture & Microprocessor 27 IO/M  High – IO Operation  Low – Memory Operation S1 and S0  Status Signal – rarely used  Identifies various operations S1 So Desc. 0 0 HALT 0 1 WRITE 1 0 READ 1 1 FETCH
  • 28. Computer Architecture & Microprocessor 28 Power Supply and Clock Frequency  +5V power supply (Vcc)  3 MHz clock (X1 & X2)  CLK – Used as System Clock for other devices Interrupts and Externally Initiated Operations  Interrupts transfer the program control to specific memory location INTR (Interrupt Request)  A general-purpose interrupt. INTA (Interrupt Acknowledge)  Acknowledges an interrupt
  • 29. Computer Architecture & Microprocessor 29 RST 7.5 (Restart Interrupt)  Highest priority Vectored Interrupt RST 6.5 (Restart Interrupt)  Vectored interrupt with a priority less than RST 7.5, but more than RST 5.5 and INTR. RST 5.5 (Restart Interrupt)  Vectored interrupt with the least priority among Restart Interrupts but more priority than INTR signals. TRAP (Input)  A non-maskable restart interrupt.  highest priority of any interrupt.  Externally initiated signals are instantiated by an external device
  • 30. Computer Architecture & Microprocessor 30 HOLD  Indicates a peripheral’s request to use address and data buses. HLDA ( Hold Acknowledge)  Acknowledges the HOLD request. READY  Delays microprocessor’s operation to work in pace with the slow peripherals connected to it. RESET IN  Sets program counter to zero  The buses are tri-stated and MPU is reset. RESET OUT  Indicates MPU is being reset  Can be used to reset other devices.
  • 31. Computer Architecture & Microprocessor 31 Serial I/O Ports SID (Input)  Serial input data Line  The data on SID is loaded into accumulator when a RIM instruction is executed. SOD (output)  Serial output data line.  The output SOD is set or reset as specified by the SIM instruction.
  • 32. Computer Architecture & Microprocessor 32 Address Buffer Accumulator (8) Temp Reg. (8) Arithmetic Logic Unit (ALU) (8) Instruction Decoder and Machine Cycle Encoding Flag (5) Flip-flops Instruction Register (8) W Temp. Reg. Z Temp. Reg. B Reg. D Reg. H Reg. Stack Program Counter C Reg. E Reg. L Reg. Address Latch (16) Data Address Buffer (8) Multiplexer Timing and Control CLK Reset GEN Control Status DMA Reg.Select Serial I/O Control SID Interrupt Control TRAP RST 7.5 RST 6.5 RST 5.5 INTA INTR SOD Ready RD WR ALE S0 S1 IO/M HLDA RESET OUT RESET INHOLD A15 – A8 Address Bus AD7 – AD0 Address/Data Bus X1 x2 R e g i s t e r A r r a y
  • 33. Computer Architecture & Microprocessor 33 RegistersRegisters A (Accumulator) 8 Bits Arithmetic Operations Logical Operations B 8 Bits C 8 Bits B & C combined to form 16 Bits D 8 Bits E 8 Bits D & E combined to form 16 Bits H 8 Bits L 8 Bits H & L combined to form 16 Bits PC (Program Counter) 16 Bits Has the Program Pointer Address SP (Stack Pointer) 16 Bits Has the Memory Pointer Address
  • 34. Computer Architecture & Microprocessor 34 FlagsFlags S Z AC P CY D7 D6 D5 D4 D3 D2 D1 D0 S Sign Set – Positive Reset – Negative Z Zero Set – Zero Reset – Non-Zero AC Auxiliary Carry Set – Carry From D3 to D4 Reset – No Carry From D3 to D4 P Parity Set – Even Reset – Odd CY Carry Set – Carry Exists Reset – No Carry exists
  • 35. Computer Architecture & Microprocessor 35 Bus Timings  Sequence of operations called instruction cycle executes an instruction  Instruction Cycle is divided into few basic machine cycles  Machine cycles are in turn divided into System Clock Period. Example:  To fetch a data 10101010 from a location 2005H
  • 36. Computer Architecture & Microprocessor 36 T1 T2 T3 CLK A15 – A8 AD7 –AD0 ALE IO/M RD Low -Order Memory Address Memory Contents M High –Order Memory Address