SlideShare a Scribd company logo
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

PPTX
Computer Organisation & Architecture (chapter 1)
PPTX
Computer architecture and organization
PPTX
Computer Organization: Introduction to Microprocessor and Microcontroller
PPT
Computer Organization and Architecture.
PPTX
Computer Architecture – An Introduction
PPTX
Computer architecture
PPTX
Computer Architecture and organization
PDF
Computer Organization
Computer Organisation & Architecture (chapter 1)
Computer architecture and organization
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization and Architecture.
Computer Architecture – An Introduction
Computer architecture
Computer Architecture and organization
Computer Organization

What's hot (20)

PPT
Introduction to Computer Architecture
PPT
Computer organisation
PDF
Computer organization-and-architecture-questions-and-answers
PPTX
Computer architecture
PPTX
Computer organization
PDF
Computer architecture
PPTX
Von Neumann Architecture
PPTX
EC8791 consumer electronics-platform level performance analysis
PPTX
Computer Evolution
PPT
07 Input Output
PDF
Computer organiztion5
PPT
Computer architecture
PPTX
Basic computer architecture
PDF
CS4109 Computer System Architecture
PPT
Intro to cao &store program
PDF
Ch2 embedded processors-i
PPT
Computer Organisation and Architecture
PPT
Chapter 01 - Introduction
PDF
CPU Architecture
PPTX
Computer organization & architecture chapter-1
Introduction to Computer Architecture
Computer organisation
Computer organization-and-architecture-questions-and-answers
Computer architecture
Computer organization
Computer architecture
Von Neumann Architecture
EC8791 consumer electronics-platform level performance analysis
Computer Evolution
07 Input Output
Computer organiztion5
Computer architecture
Basic computer architecture
CS4109 Computer System Architecture
Intro to cao &store program
Ch2 embedded processors-i
Computer Organisation and Architecture
Chapter 01 - Introduction
CPU Architecture
Computer organization & architecture chapter-1
Ad

Similar to computer architecture (20)

PPT
PIC Introduction and explained in detailed
PPTX
Introduction to microprocessor
PPT
PIC32MX Microcontroller Family
PPT
architecture memory interfacing
PDF
Organisasi dan Arsitektur Komputer MO-06
PDF
Module 5 embedded systems,8051
PPTX
Microprogrammed of organisation and architecture of computer.pptx
PPTX
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
PPT
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
PPT
Introduction to-microprocessor
PPT
Introduction to-microprocessor
PPTX
Microcontoller and Embedded System
PPTX
overview-Microprocessor of 8085 processor
PPT
Chapter 7 of Computer system and architecture
PDF
FPGA Verilog Processor Design
PPTX
PLC ARCHITECTURE AND HARDWARE COMPONENTS
PPT
8051 Presentation
PPT
Chp1 68000 microprocessor copy
PDF
1-AVR Introduction to Atmega32 good .pdf
PDF
Introduction to 8085svv
PIC Introduction and explained in detailed
Introduction to microprocessor
PIC32MX Microcontroller Family
architecture memory interfacing
Organisasi dan Arsitektur Komputer MO-06
Module 5 embedded systems,8051
Microprogrammed of organisation and architecture of computer.pptx
COA 2.1 Microprogrammed control systems of btech 2nd year students.pptx
Computer_Architecture_3rd_Edition_by_Moris_Mano_Ch_07.ppt
Introduction to-microprocessor
Introduction to-microprocessor
Microcontoller and Embedded System
overview-Microprocessor of 8085 processor
Chapter 7 of Computer system and architecture
FPGA Verilog Processor Design
PLC ARCHITECTURE AND HARDWARE COMPONENTS
8051 Presentation
Chp1 68000 microprocessor copy
1-AVR Introduction to Atmega32 good .pdf
Introduction to 8085svv
Ad

More from Dr.Umadevi V (12)

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

Recently uploaded (20)

PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Lesson notes of climatology university.
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Lesson notes of climatology university.
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Abdominal Access Techniques with Prof. Dr. R K Mishra
O5-L3 Freight Transport Ops (International) V1.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
TR - Agricultural Crops Production NC III.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
O7-L3 Supply Chain Operations - ICLT Program
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Microbial diseases, their pathogenesis and prophylaxis
Module 4: Burden of Disease Tutorial Slides S2 2025
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Insiders guide to clinical Medicine.pdf
Pharma ospi slides which help in ospi learning
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx

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