8085 Microprocessor Architecture
8085 Microprocessor Architecture
ARCHITECTURE
1
2
8085 MICROPROCESSOR
ARCHITECTURE
Accumulator
Arithmetic and logic Unit
General purpose register
Program counter
Stack pointer
Temporary register
Flags
Instruction register and Decoder
Timing and Control unit
Interrupt control
Serial Input/output control
Address buffer and Address-Data 3
buffer
Address bus and Data bus
Incrementer/Decrementer Address
INTEL 8085 CPU BLOCK
DIAGRAM
AL
U
4
Registers
The 8085 has 6 general purpose registers to
store 8-bit data during program execution.
These 6 registers are identified as B, C, D, E,
H and L.
They can be combined as register pairs BC,
DE and HL to perform some 16-bit operations.
These registers are programmable. It can use
to load or transfer data from the registers by 5
using instructions.
Accumulator
E, H, L
Data Pointer or
They can also be combined as register pairs
Memory Pointer to
(M)
perform
8
TEMPORARY
REGISTERS
TEMPORARY DATA REGISTER
THE ALU HAS TWO INPUTS. ONE IS ACCUMULATOR &
OTHER FROM TEMP DATA REGISTER
First B is
EX : ADD B ( A A+B ) transferred
to Temp
W & Z (16) then add
with A
EX : CALL, XCHG ( HL DE)
NOTE
First DE
transferred to 9
The programmer WZ then
Can not access this exchange with
temp Registers HL
SPECIAL PURPOSE
REGISTERS
1.Accumulator (A)
Single 8-bit register that is part of the
ALU
Used in
Arithmetic/logic operations
Load
store
As well as I/O operation
2. Instruction Registers
10
SPECIAL PURPOSE
REGISTERS
3.FLAG
S Z AC P CY
13
PROGRAM COUNTER &
STACK POINTER
PC ACTS AS A POINTER TO THE NEXT INSTRUCTION DEPENDS ON
UPON NATURE OF INSTRUCTION ( 1 OR 2 OR 3 BYTES)
14
ALU (ARITHMETIC & LOGIC
UNIT)
To perform arithmetic operations like
Addition & Subtraction
AND
OR
NOT (Complement)
15
Instruction Register & Decoder
18
INCREMENTER/
DECREMENTER ADDRESS
LATCH
THIS 16 BIT REGISTER IS USED TO
INCREMENT OR
DECREMENT THE CONTENTS OF THE
PC OR SP AS A
PART OF EXECUTION INSTRUCTIONS
RELATED TO THEM 19
INTERRUPT CONTROL
When the Microprocessor receives an interrupt
signal, it suspends the currently executing program
and jumps to ( Special Routine or Sub program) an
Interrupt Service Routine (ISR) to respond to the
incoming interrupt
Five Interrupt inputs & one
Acknowledge signal
20
INTA
SERIAL I/O CONTROL
IT PROVIDES TWO LINES SOD & SID FOR
SERIAL COMMUNICATION
1.SOD (SERIAL OUTPUT DATA)
USED TO SEND DATA SERIALLY
2.SID (SERIAL INPUT DATA)
USED TO RECEIVE DATA SERIALLY
21
TIMING & CONTROL
/CIRCUITRY
TIMING AND CONTROL UNIT IS A VERY
IMPORTANT UNIT AS IT SYNCHRONIZES THE
REGISTERS AND FLOW OF DATA THROUGH
VARIOUS REGISTERS AND OTHER UNITS
ON
23
CLASSIFICATIONS OF
PINS
8085 has 40 PIN IC
1. POWER SUPPLY & FREQUENCY Signals
2. DATA Bus & ADDRESS Bus
3. CONTROL & STATUS Signals
4. INTERRUPT Signals
5. SERIAL I/O Signals
6. DMA Signals
7. RESET Signals
24
808
5
25
POWER SUPPLY &
FREQUENCY SIGNALS
• VCC : +5 Power Supply
• Vss : Ground Reference
• X1 and X2 : Determine the Clock
Frequency
• CLOCK OUT : Half the crystal or
Oscillator Frequency (Used
as a system clock for other
devices) +5 V 8085
X1 CLK 3
6
OUT MHz
MHz
X2 26
GND
DATA BUS & ADDRESS BUS
8085 μp consists of 16pins use as Address Bus & 8 pins use
as
Data Bus
28
Low -order Address Bus(8 bits) & Data Bus(8
bits)
29
CONTROL & STATUS
SIGNALS
ALE : ADDRESS LATCH ENABLE
RD & WR : READ & WRITE OPERATION
IO/M : I/O OPERATION OR MEMORY OPERATION
S0 & S 1 : MACHINE CYCLE PROGRESS
READY : PERIPHERAL IS READY OR NOT FOR
DATA
TRANSFER
30
808
5
31
ALE USED TO DEMULTIPLEX
ADDRESS/DATA BUS
ALE –Active high output used to latch
the
lower 8 address bits A0 – A7
A8-A15
ALE
D7- D0
32
CONTROL & STATUS
SIGNALS
RD (Active low) To indicate that the I/O or memory
selected is to be read and data are available on the bus
IOWR
RD
8085
MEMWR
WR
IOWR
RD WR IO/M Operation
Never Exists
0 0 0 (RD,WR do not go low
-
0 0 1 simultaneously) -
0 1 0 Memory Read MEMR
0 1 1 I/O Device Read IOR
1 0 0 Memory Write MEMW
1 0 1 I/O Device Write IOW
1 1 0 - -
1 1 1 - - 34
35
INTERRUPT & DMA SIGNALS
36
808
5
37
SERIAL I/O CONTROL
SID (SERIAL INPUT DATA)
USED TO RECEIVE OR ACCEPT DATA SERIALLY BIT BY
BIT FROM THE EXTERNAL DEVICE
38
808
5
39
RESET SIGNALS
RESET IN an active low input signal
1.Set Program Counter to Zero PC=0000H(μp will reset)
2.Reset interrupt & HLDA Flip-flops
3.Tri states the address, data &control bus
4. Affects the contents of internal registers randomly
40