Unit 3 Part 1
Unit 3 Part 1
8085 MICROPROCESSOR
SEMESTER: 6th
OUTLINES
INTRUDUCTION OF 8085
ARCHITECTURE OF 8085
PIN FUNCTION OF 8085
ADDRESS, DATA AND CONTROL BUSES
INSTRUCTION CYCLE
MACHINE CYCLE
T-STATES
MEMORY INTERFACING
2
INTRUDUCTION OF 8085
8085 is an 8-bit microprocessor
The processor consists of 16-bit and 8-bit address and data lines and so
the capacity of the device is 216 which is 64KB of memory.
3
ARCHITECTURE OF 8085
The architecture of the 8085 microprocessor mainly includes :
Timing & control unit
Arithmetic and logic unit
Decoder
Instruction register
Interrupt control
Register array
Serial input/output control.
The most important part of the microprocessor is the central processing unit
4
ARCHITECTURE OF 8085
5
ARCHITECTURE OF 8085
Operations of the 8085 Microprocessor:
The main operation of ALU is arithmetic as well as logical which includes addition,
increment, subtraction, decrement, logical operations like AND, OR, Ex-OR,
complement, evaluation, left shift or right shift.
Both the temporary registers as well as accumulators are utilized for holding the
information throughout the operations then the outcome will be stored within the
accumulator.
The different flags are arranged or rearrange based on the outcome of the operation.
6
ARCHITECTURE OF 8085
Flag Registers :
The flag registers of microprocessor 8085 are
classified into five types namely sign, zero, auxiliary
carry, parity and carry. D7 D6 D5 D4 D3 D2 D1 D0
7
ARCHITECTURE OF 8085
Flag Registers :
In an arithmetic process, whenever a carry is
produced with the lesser nibble, then an auxiliary type
carry flag will be set.
D7 D6 D5 D4 D3 D2 D1 D0
After an ALU operation, when the outcome has an
even number then the parity flag will be set, or else it is S Z - AC - P - CY
reset.
When an arithmetic process outcome in a carry, then
carry flag will be set or else it will be reset. Between the
five types of flags, the AC type flag is employed on the
inside intended for BCD arithmetic as well as remaining
four flags are used with the developer to make sure the
conditions of the outcome of a process.
8
ARCHITECTURE OF 8085
Control and Timing Unit:
The control and timing unit coordinates with all the actions of the
microprocessor by the clock and gives the control signals which are
required for communication among the microprocessor as well as
peripherals.
9
ARCHITECTURE OF 8085
Register Array:
The general purpose programmable registers are classified into several types
apart from the accumulator such as B, C, D, E, H, & L.
These are utilized as 8-bit registers otherwise coupled to stock up the 16 bit of
data.
The permitted couples are BC, DE & HL, and the short term W & Z registers are
used in the processor
10
ARCHITECTURE OF 8085
Special Purpose Registers:
These registers are classified into four types namely program counter,
stack pointer, increment or decrement register, address buffer, or data
buffer.
Program Counter (PC): It is basically a special purpose register that is
used to store the memory location of the instruction to be performed. As it
is clear that in order to fetch an instruction from the memory the
microprocessor needs to know about its address.
11
ARCHITECTURE OF 8085
Special Purpose Registers:
Stack Pointer (SP): It is also a 16-bit register and is a part of memory. The
data is stored in the stack in serial format and stack pointer generally stores
the address of the last data element stored in the stack. Thus the stack is
based on LIFO.
12
ARCHITECTURE OF 8085
Address Bus and Data Bus:
The data bus is useful in carrying the related information that is to be
stock up. It is bi-directional
13
PIN FUNCTION OF 8085
An 8085 microprocessor is an IC with 40 pins and operates with +5V
power supply.
14
PIN FUNCTION OF 8085
15
PIN FUNCTION OF 8085
1. Power supply and clock signals
2. Data bus
3. Address bus
4. Serial I/O ports
5. Control and status signals
6. Interrupts and externally generated signals
7. Direct memory access
16
PIN FUNCTION OF 8085
Power supply and clock signals:
In 40 pin configuration, 4 pins are allotted to this particular category.
17
PIN FUNCTION OF 8085
Address bus:
contains 8 pins. The address bus has 16 lines i.e.; it can carry 16 bits at a time.
Out of 16, 8 are multiplexed with the data bus and the leftover 8 are
separately
Used to carry the address of data and instruction from the processor to the
memory location and is unidirectional in nature.
18
PIN FUNCTION OF 8085
Data bus:
contains 8 pins.
19
PIN FUNCTION OF 8085
Serial I/O ports:
It has basically 2 pins.
SID – SID denotes serial input data pin. With this pin, data is serially fed to
the processor directly through the input devices.
SOD – SOD denotes serial output data pin. Once the data is processed in
the microprocessor then this pin represents bit by bit results at the output
devices.
20
PIN FUNCTION OF 8085
Control and status signals:
6 pins of the pin configuration are used by control and status signals.
ALE – ALE is an acronym for Address Latch Enable. We know that 8 lower
order bits of the 16-bit address bus are multiplexed with the 8-bit data bus.
This pin gets enabled at the time when the address is present at the
multiplexed address and data bus. Otherwise, it gets disabled showing the
absence of an address on the bus.
21
PIN FUNCTION OF 8085
Control and status signals:
RD – A low signal in this pin shows the read operation either from I/O
devices or from the memory unit. Thereby indicating that the data bus is
now in a state or position to accept the data from the memory or I/O
devices.
WR – A low signal in this pin represents the write operation at the
memory or I/O devices. This indicates that the data present in the data bus
is to be written into the desired memory address or I/O device by the
processor.
22
PIN FUNCTION OF 8085
Control and status signals:
IO/M – Indicates the selection of a memory address or input-output
device. This shows whether the read/write operation is to be carried out at
the memory location or at the I/O device.
S0 and S1 – The pins S0 and S1 represent the status signal at pin number.
These signals show the type of recent operation of the microprocessor.
23
PIN FUNCTION OF 8085
Control and status signals:
24
PIN FUNCTION OF 8085
Interrupts and externally generated signals:
Interrupts are the signals that are generated to break the sequence
of an ongoing operation.
25
PIN FUNCTION OF 8085
Interrupts and externally generated signals:
5 types of interrupts are shown by 5 different pins from pin
Out of the 5 major interrupts 4 are the mask-able interrupts. These are
INTR, RST5.5, RST6.5, RST7.5 and are easily manageable interrupts.
26
PIN FUNCTION OF 8085
Interrupts and externally generated signals:
On receipt of an interrupt, the microprocessor acknowledges the
interrupt by the active low INTA (Interrupt Acknowledge) signal.
27
PIN FUNCTION OF 8085
Direct memory access:
When 2 or more devices are connected to a common bus, to prevent the
devices from interfering with each other, the tristate gates are used to
disconnect all devices except the one that is communicating at a given
instant.
The CPU controls the data transfer operation between memory and I/O
device. Direct Memory Access operation is used for large volume data
transfer between memory and an I/O device directly.
28
PIN FUNCTION OF 8085
Direct memory access:
HOLD: signal is generated by the DMA controller circuit. On receipt of this
signal, the microprocessor acknowledges the request by sending out HLDA signal
and leaves out the control of the buses. After the HLDA signal the DMA
controller starts the direct transfer of data.
READY (input): Memory and I/O devices will have slower response compared
to microprocessors.
Before completing the present job such a slow peripheral may not be able to
handle further data or control signal from CPU. The processor sets the READY
signal after completing the present job to access the data. The microprocessor
enters into WAIT state while the READY pin is disabled.
29