Unit - I Topic
Unit - I Topic
1
Processor System Architecture
The typical processor system consists of:
CPU (central processing unit)
ALU (arithmetic-logic unit)
Control Logic
Registers, etc…
Memory
Input / Output interfaces
Interconnections between these units:
Address Bus
Data Bus
Control Bus
2
8085 Microprocessor Architecture
3
The 8085 Bus Structure
The 8-bit 8085 CPU (or MPU – Micro Processing Unit)
communicates with the other units using a 16-bit address
bus, an 8-bit data bus and a control bus.
4
The 8085 Bus Structure
Address Bus
Consists of 16 address lines: A0 – A15
5
The 8085 Bus Structure
Data Bus
Consists of 8 data lines: D0 – D7
Control Bus
Consists of various lines carrying the control
signals such as read / write enable, flag bits.
6
The 8085: CPU Internal Structure
7
The 8085: CPU Internal Structure
8
The 8085: Registers
9
The 8085: CPU Internal Structure
Registers
Six general purpose 8-bit registers: B, C, D, E, H, L
They can also be combined as register pairs to
perform 16-bit operations: BC, DE, HL
12
Example: Memory Read Operation
13
Cycles and States
– T- State: One subdivision of an operation. A T-
state lasts for one clock period.
• An instruction’s execution length is usually
measured in a number of T-states. (clock
cycles).
– Machine Cycle: The time required to complete one
operation of accessing memory, I/O, or
acknowledging an external request.
• This cycle may consist of 3 to 6 T-states.
– Instruction Cycle: The time required to complete
the execution of an instruction.
• In the 8085, an instruction cycle may consist of 1
to 6 machine cycles.
14
• The 8085 executes several types of instructions
with each requiring a different number of
operations of different types. However, the
operations can be grouped into a small set.
• The three main types are:
• Memory Read and Write.
• I/O Read and Write.
• Request Acknowledge.
16
Example: Instruction Fetch Operation
17
Example: Instruction Fetch Operation
18
Timing Diagram
Opcode Fetch Cycle
T1 T2 T3 T4
CLX
A15
20H High-Order Memory Address Unspecified
A8
Low-Order
AD7
05H 4FH Opcode
AD0
Memory Address
ALE
RD
19
Demultiplexing the Bus AD0-AD7
20
Schematic of Latching Low Order
Address Bus
A15 A15
8085
Microprocessor
A8
A8
ALE
Enable
AD7 G
D Q A7
AD0 74LS373
A0
D7
D0
21
Schematic to generate Control Signals
74LS32
IO/M
MEMR
RD
8085
WR MEMW
IOR
74LS04
IOW
22
Timing for Execution of the
Instruction MVI A,32H
M1 Opcode Fetch M2 Memory Read
T1 T2 T3 T4 T1 T2 T3
CLX
A15
20H High-Order Memory Address Unspecified 20H High- Order Memory Address
A8
AD7
00H 3EH Opcode 01H 32H Data
AD0
Low-Order Memory Address Memory Address
ALE
IO/M
Status IO/M = 0, S0 = 1, S1 = 1 Opcode Fetch IO/M = 0, S1 = 1, S0 = 0 Status
S1, S0
RD
23