Copy of CS2 CH1-Introduction to 8085 Microprocessor (1)
Copy of CS2 CH1-Introduction to 8085 Microprocessor (1)
ALU is arithmetic and logic unit, where arithmetical and logical operations
are carried out.
Registers are primarily used to store data temporarily during execution of
program.
Control unit provides timing and control signals to the whole system. It
also controls flow of data.
Difference between Microprocessor
and Microcomputer
Microprocessor Microcomputer
Functions of Microprocessor
Hardware Interrupts
Some pins on the 8085 allow, peripheral device to interrupt
the main program for I/O operations. These Types of Interrupts
in 8085, where CPU pins are used to receive interrupt requests,
are called hardware interrupts. There are 5 Hardware
Interrupts in 8085 microprocessor. They are – INTR, RST 7.5,
RST 6.5, RST 5.5, TRAP
Software Interrupts
Software Interrupts are those which are initiated by
microprocessor itself. These are inserted in between the
program which means these are mnemonics of microprocessor.
There are 8 software interrupts in 8085 microprocessor. They
are – RST 0, RST 1, RST 2, RST 3, RST 4, RST 5, RST 6, RST 7.
Interrupt System of 8085 Microprocessor
Priority of Interrupts –
When microprocessor receives multiple interrupt requests
simultaneously, it will execute the interrupt service request
(ISR) according to the priority of the interrupts.
• When INTR signal goes high, the following events can occur −
2. When the INTR signal is high, then the microprocessor completes its
current instruction and sends active low interrupt acknowledge
signal(INTA’)
T-State
The sub-division
of an operation, which
is performed in one clock
period is called T-state.
Pin Diagram of 8085 Microprcoessor
S0-S1(Pin No. 29 & 33) :
• S0 and S1 are status signals which provides
different status and functions depending on
their status.
Pin Diagram of 8085 Microprcoessor
IO/M’(Pin No. 34):
This distinguishes whether the address is for memory or I/O.
When this pin goes high, the address is for an I/O device. While the
pin goes low, the address is assigned for the memory.
In I/O mapped I/O same address may be used for I/O as well as for
memory location. IO/M’ signal is used to tell whether address on
address bus is for I/O or for memory.
Pin Diagram of 8085 Microprcoessor
• 8-Machine Cycles
Pin Diagram of 8085 Microprcoessor
RD’(Pin No.32)
This signal indicates that the selected I/O or
memory device is to be read and is ready for
accepting data available on the data bus.
WR’(Pin No.31)
This signal indicates that the data on the data
bus is to be written into a selected memory or
I/O location.
Pin Diagram of 8085 Microprcoessor
READY (Pin No. 35):
• It is an active-high, input-control signal pin used by the
microprocessor to check whether the peripheral-
devices is ready to transfer the data or not.
• This signal is also used to synchronize slower
peripheral-devices with the faster peripheral-devices.
• When READY Signal from READY pin is high, then the
microprocessor completes the operation & proceeds
for next operation.
• When READY Signal from READY pin is low, then the
microprocessor will wait until it goes high.
Pin Diagram of 8085 Microprcoessor
HOLD(Pin No 38):
• HOLD is an active-high, input signal used by the DMA (Direct Memory
Access) Controller to transfer the data.
• When a Peripheral Device wants to transfer the data, it requests DMA
controller.
• Here, in response with it , the DMA Controller ask for Buses to the 8085
Microprocessor by making it’s HOLD output High which is connected to
the Input of HOLD of Microprocessor.
HLDA(Pin No. 39)
• Whenever the Microprocessor receives that high-output signal from
HOLD’s input, then it sends this high-output signal to HLDA to hold the
acknowledgement that the HOLD-Request has been received by the
DMA Controller by indicating that it has turned the control over buses for
other master in the system.
• When data-transfer is completed, then it returns the control of buses
back to the 8085 Microprocessor by sending back a low HOLD Signal.
Pin Diagram of 8085 Microprcoessor
Vcc (Pin No. 40) & Vss(Pin No.20)
• VCC (Voltage Common Collector) is the higher voltage with
respect to GND (ground).
• VCC is the power input of a device. It may be positive or
negative with respect to GND.
• When the only positive power supply is used then VSS
(Voltage Source Supply) means ground or zero.
• The Intel 8085 Microprocessor needs a power supply of +5
V DC for its working.
• Pin 40 of Intel 8085 is the Vcc pin. It should be connected to
+5 V DC power supply.
• Pin 20 of 8085 is the Vss pin.
Functional Block Diagram of 8085
Instruction register and decoder
• Instruction register is an 8-bit register. When an
instruction is fetched from memory then it is stored in
the Instruction register. It always stores the first
byte(opcode) of the instruction.
Q.2 Explain multiplexed address/data bus in 8085 microprocessor and how address and
data is demultiplexed.
Q.3 What are I/O mapped I/O and memory mapped I/O schemes? Which one 8085 uses.