8085 Microprocessor
8085 Microprocessor
microprocessing interface
8085 microprocessor
The address bus pins range from A8 to A15 The address bus pins or data bus pins range from
and these pins do the data transfer only. AD0 to AD7, and these pins are called
. multiplexing lines that can do both addresses as
well as data transfer.
Cont...
RD WR
The RD is an energetic low signal and it is used for
controlling the microprocessor READ operation. It has the power to control the microprocessor’s write
When the RD pin goes small then the 8085 operations. When the WR pin goes small the data will
microprocessor understands the information from be written to the I/O device or memory.
the I/O device or memory.
.
Cont....
READY HOLD
HLDA
INTA
Itis the response signal of HOLD and is
used to specify whether this signal is INTA stands for interrupt acknowledgement.
obtained or not. This signal will go low Whenever an interrupt signal comes, then it should
after the implementation of HOLD demand. be recognized by INTA. It is an active-low signal tha
. is for zero it will process and for one it won’t.
Continued.
These are the restart maskable interrupts or TRAP is a non-maskable interrupt, and it
Vectored Interrupts which are used for the doesn’t allow or stop a program. TRAP has
insertion of an inner restart function repeatedly. maximum precedence between interrupts.
All these interrupts are maskable.
.
RESET IN
C. Memory Registers
.There are two 16-bit registers used to hold memory addresses. The size of these
registers is 16 bits because the memory addresses are 16 bits. They are :-
1. Maskable interrupts
Maskable Interrupts are those which can be disabled or ignored by the microprocessor.
These interrupts are either edge-triggered or level-triggered, so they can be disabled.
INTR, RST 7.5, RST 6.5, RST 5.5 are maskable interrupts in 8085 microprocessor.
2. Non-Maskable interrupts
Non-Maskable Interrupts are those which cannot be disabled or ignored by microprocessor.
TRAP is a non-maskable interrupt.
It consists of both level as well as edge triggering and is used in
critical power failure conditions.
8085 Pin Diagram
Timing Diagrams of 8085
1. Instruction cycle: this term is defined as the number of steps required by the cpu
to complete the entire process i.e Fetching and execution of one instruction. The
fetch and execute cycles are carried out in synchronization with the clock.
2. Machine cycle: It is the time required by the microprocessor to complete the
operation of accessing the memory devices or I/O devices. In machine cycle various
operations like opcode fetch, memory read, memory write, I/O read, I/O write are
performed.
3. T-state: Each clock cycle is called as T-states.
status signal and meaning
.
Opcode fetch Operation:
§ During T1 state, microprocessor uses IO/M’,
S0, S1 signals are used to instruct
microprocessor to fetch opcode.
§ Thus when IO/M(bar)=0, S0=S1= 1, it
indicates opcode fetch operation.
§ During this operation 8085 transmits 16-bit
address and also uses ALE signal for address
latching.
§ At T2 state microprocessor uses read signal
and make .data ready from that memory
location to read opcode from memory and at
the same time program counter increments
by 1 and points next instruction to be fetched.
Opcode fetch Operation:
§ In this state microprocessor also checks
READY input signal, if this pin is at low logic
level ie. '0' then microprocessor adds wait state
immediately between T2 and T3.
§ At T3, microprocessor reads opcode and store
it into instruction register to decode it further.
§ During T4 microprocessor performs internal
operation like decoding opcode and providing
necessary actions.
§ The opcode is decoded to know whether T5
.
or T6 states are required, if they are not
required then microprocessor performs next
operation.
Memory Write:
Operation:
§ It is used to send one byte into memory.
§ During T1, ALE is high and contains lower address
A0-A7 from AD0-AD7.
§ A8-A15 contains higher byte of address.
§ As it is memory operation, IO/M(bar) goes low.
§ During T2, ALE goes low, WR(bar) goes low and
Address is removed from AD0-AD7 and then data
appears on. AD0-AD7.
§ Data remains on AD0-AD7 till WR(bar) is low.
Memory Read: Operation:
§ It is used to fetch one byte from the memory.
§ It can be used to fetch operand or data from the
memory.
§ During T1, A8-A15 contains higher byte of address.
At the same time ALE is high. Therefore Lower byte
of address A0-A7 is selected from AD0-AD7.
§ Since it is memory read operation, IO/M(bar) goes
low.
§ During T2 ALE goes low, RD(bar) goes low. Address
is removed from AD0-AD7 and data D0-D7 appears
on AD0-AD7..
§ During T3, Data remains on AD0-AD7 till RD(bar) is
at low signal
IO Read: Operation:
§It is used to fetch one byte from an IO port.
§During T1, The Lower Byte of IO address is
duplicated into higher order address bus A8-
A15.
§ALE is high and AD0-AD7 contains address
of IO device.
§IO/M (bar) goes high as it is an IO operation.
§During T2, ALE goes low, RD (bar) goes low
and data appears on AD0-AD7 as input from
IO device..
§During T3 Data remains on AD0-AD7 till
RD(bar) is low.
IO Write:
Operation:
§It is used to write one byte into IO device.
§During T1, the lower byte of address is duplicated
into higher order address bus A8-A15.
§ALE is high and A0-A7 address is selected from
AD0-AD7.
§As it is an IO operation IO/M (bar) goes low.
§During T2, ALE goes low, WR (bar) goes low and
data appears on AD0-AD7 to write data into IO
device.
§During T3, Data remains on AD0-AD7 till WR(bar) is
low. .
Group Member:
Name ID
1. Segni Asrat.........................................................................9997/19
2.Bezawit Habte.....................................................................8164/19
3.Estifanos Alebel...................................................................0671/19
4. Birhanu Esubalew...............................................................9799/19
5.Eden Melese........................................................................5852/19
6.Jaber Kemal.........................................................................7355/19
.
DILLA UNIVERSITY
Thank you