8085 Microprocessor
8085 Microprocessor
1
8085 Microprocessor Architecture
Accumulator
Arithmetic and logic Unit
General purpose register
Program counter
Stack pointer
Flags
Timing and Control unit
Interrupt control
Serial Input/output control
Address buffer and Address-Data buffer
Address bus and Data bus
2
Intel 8085 CPU Block Diagram
ALU
3
Special
Purpose
Registers
Registers
4
General purpose Registers
5
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
6
Special purpose Registers
Flag
S Z AC P CY
7
Example : ADD B
1 0 1 0 1 0 0 0
(A)A8H
1 1 1 0 1 1 0 1
(B)EDH
1 1 0 0 1 0 1 0 1
CY 95H (A)
S Z AC P CY
1 0 1 1 1
8
Program counter & Stack Pointer
PC acts as a pointer to the NEXT instruction to be
executed
AND
OR
NOT (Complement)
XOR
10
Instruction Register & Decoder
The processor first fetches the opcode of instruction
from memory & stores opcode in the instructions
registers , it is then sent to instruction decoder
11
Address buffer & Address/Data buffer
Address Buffer
8 bit unidirectional buffer
The address bits are always sent from the MPU to peripheral
devices, not reverse
Used to drive external High order address bus (A8-A15)
•Address Bus : The device and the location within the device
that is being accessed
Total 216 = 65,536 (64k) Memory Locations
Address Locations: 0000H– FFFFH
• Data Bus : The data value being communicated
Data Range: 00H – FFH
• Control Bus : Describes the action on the address & data
buses
13
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
INTA
14
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
15
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
16
Intel 8085 Pin
8085
Configuration
17
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
18
8085
19
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
GND
20
Data Bus & Address Bus
8085 μp consists of 16pins use as Address Bus & 8 pins use as
Data Bus
22
Low -order Address Bus(8 bits) & Data Bus(8 bits)
23
Control & Status Signals
ALE : Address Latch Enable
RD & WR : Read & Write Operation
IO/M : I/O Operation or Memory Operation
S0 & S1 : Machine Cycle Progress
READY : Peripheral is ready or not for Data
transfer
24
8085
25
ALE used to Demultiplex Address/Data bus
A8-A15
ALE
Latch
8085 AD7-AD0 A0- A7
D7- D0
26
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
0 0 0 Never Exists -
(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 - -
28
29
Interrupt & DMA Signals
30
8085
31
Serial I/O Control
SID (Serial Input Data)
used to Receive or accept Data serially bit by
bit from the external device
32
8085
33
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. Affects the contents of internal registers randomly
34