Unit-2 8085 Microprocessor - Technical
Unit-2 8085 Microprocessor - Technical
simultaneously.
2. It operates on a single + 5V power supply connected at Vcc power supply ground
is connected to Vss
3. It operates on clock cycle with 50 % duty cycle.
4. It has on chip clock generator. This intermal clock generator requires tuned circuit
like LC, RC or crystal. The internal clock generator divides oscillator frequency by
2 and generates clock signal, which can be used for synchronizing external devices.
5. It can operate with a 3 MHz clock frequency. The 8085A-2 version can operate at
the maximum frequency of 5 MHz.
6. It has 16 address lines, hence it can access (26) 64 kbytes of memory.
7. It provides 8-bit I/O addresses to access (2° ) 256 I/O ports.
8. In 8085, the lower 8-bit address bus (Ao -A7) and data bus (Do-D) are
multiplexed to reduce number of external pins. But due to this, external hardware
(latch) is required to separate address lines and data lines.
9. It supports 74 instructions with the following addressing modes
a) Immediate b) Register c)Direct d) Indirect e) Implied.
10. The Arithmetic Logic Unit (ALU) of 8085 performs
a) 8-bit binary addition with or without carry.
b) 16-bit binary addition. c) 2 digit BCD addition.
d) 8-bit binary subtraction with or without borrow.
e) 8-bit logical AND, OR, EX-OR, complement (NOT), and bit shift operations.
11. It has 8-bit accumulator, flag register, instruction register, six 8-bit general purpose
registers (B, C, D, E, H and L) and two 16-bit registers (SP and PC). Getting the
operand from the general purpose registers is more faster than from memory.
Hence skilled programmers always prefer general purpose registers to store
program variables than memory.
12. It provides five hardware interrupts TRAP, RST 7.5, RST 6.5, RST 5.5 and INTR.
13. It has serial I/O control which allows serial communication.
14. It provides control
signals (IO/M, RD, WR) to control the bus cycles and hence
external bus controller is not required.
15. The external hardware (another
microprocessor or equivalent master) can detect
which machine cycle
microprocessor is executing using status signals
signals
(IO/M, So, S1). This feature is very useful when more than one are processors
using common system resources (memory and I/O devices).
16. It has a mechanism by which it is possible to increase its interrupt handling
capacity
17. The 8085 has an ability
share system bus with direct memory access controller.
to
This feature allows to transfer large amount of data from I/O device to
memory or
from memory to I/O device with high speeds.
18. It can be used to implement three chip microcomputer with supporting I/O
devices like IC 8155 and IC 8355.
Review Questions
Address/Data buffer
wwwwwwinwwu.www.ww.wwwww..uimwi nwwwwwwwwwww.wwwwrwwww.wwwwwwwwwww.wwww.wwwwwwwwwwwww.wwwwwwwwwwwwwwww****************wwwwwwwww.
TRAP
INTA RST 6.5
J
Temporary Instruction W Reg Z Reg
Accumulator Flag register register
register BReg C Reg
D Reg E Reg
H RegL Reg
Stack pointer
Arithmetic Instruction
Logic decoder Program
Unit counter
and
(ALU) machine
Incrementer
cycle Decrementer
encoder
+ 5 VV address latch
POWER
SUPPLY GND
b) Flag Register (Program status word) It is an 8-bit register, in which five of the
bits carry significant information in the form of flags : S (Sign flag), Z (Zero flag), AC
(Auxiliary Carry flag), P (Parity flag), and CY (Carry flag), as shown in Fig. 2.2.3.
Dz D D5 D4 Da D2 D Do
AC wowwwww.
X CY
wwwwwiiwwww.o
This is an 8-bit unidirectional tristate buffer. It is used to drive external high order
address bus (Ais-Ag).
I n order to execute program, the starting address of the program is loaded into
RD control signal.
contents of addressed
Upon receiving the address and RD signal memory puts the
of an instruction.
location on the data bus which is an opcode
memory in the program
PC is incremented to point the next memory location
Meanwhile,
sequence.
RD signal is deactivated and opcode is loaded into the instruction register via
internal bus of microprocessor.
The instruction decoding unit decodes the instruction and provides informationto
the timing and control unit to generate necessary signals for instruction execution.
Review Questions
1. Why are the program counter and the stack pointer 16-bit registers ?
GTU : Summer-03,.04, 15, Marks 2, CE
2. Write a short note on : Flags in 8085 GTU : Summer-03, Marks 8, CE
3. Show the of auxiliary carry flag with example.
use GTU : Summer-04, Marks 2
4. Give the functions of instruction register and instruction decoder
8) Reset signals
lower half (A A7) of the 16-bit address bus. During first part of the machineDuring cycle
T). lower 8 bits of memory address or 1/0 address appear on the bus. During
remaining part of the machine cycle (T2 and T3) these lines are used as a bi-directional
data bus.
B) A to As (Output) The upper half of the 16-bit address appears on the address lines
Ag to A 15. These lines are exclusively used for the most significant 8 bits of the 16-bit
address lines.
A) SID (Serial I/P Data) (Input): This input signal is used to accept serial data bit
by bit from the external device.
B) SOD (Serial O/P Data) (Output) : This is an output signal which enables the
transmission of serial data bit by bit to the external device.
B) HLDA (Output): This active high signal is used to acknowledge HOLD request.
Review Questions
1. Write about the pin configuration of 8085 processor and explain them in detail.
2. Explain the signals used in DMA operation in 8085.
3. Drw thepin diagram of 8085 microprocessor.
4 Drau the pin diagram of 8085 microprocessor and list the classification of siguals.
5. Explain the functions ofthe follorwing pins: i) ALE )READY ii) WR iv) HOLD and HLDA
6. Explain the functions of the following pins of 8085: i 10/M ii) So and S
7. Discuss the function of following pins: i) READY ii) RESET ii) HOLD iv) INTR
8. Draw and explain the pinout diagram of the 8085 microprocessor.
GTU : Summer-06, Marks 8, IT
9. Explain the need of X and X, pins of the 8085
microprocessor?
GTU: Summer-03, Marks 2, CE
10. Why does ALE
11. What is
go high in start of every Machine cycle? GTU Summer-04, Marks 2, CE
importance of READY signal? GTU: Summer-04, Marks 2, CE
12. Explain the functions of SID and SOD pins. GTU: Summer-04, Marks 4, CE
13. Describe the meaning of following 8085 pins.
READY, HOLD and HLDA, ALE, INTA GTU: Summer-05, Marks CE 6,
Crystal
CT 20 pF
the
Example 2.4.1 Specify crystal frequency required for an
8085 system to operate at
1.1 MHz.
Solution: 2.2 MHz.
ADo
8 bit PO
latch
AD7 M
CLK OE
ALE
IO/M IO/M
WR D - MEMW
WR
MEMW
1M-
RD
OR IO/M
RD
-TOR
D MEMR
D- -MEMW
D IOR
D IOW
Fig. 2.4.6
1
0
********* ** ede
*********wwwwwww..wwwwwwwwwwwwwwvwww.
1
wwww.wwwwwwwww.1w.wwwwww.wwvwwwwwowwwwwwwwwwovwwwwwwwwwwwwwwwww.wwwwwwww.wwww.wwwww.**ww*wwwwwww*wwwvwww
Table 2.4.1
Same truth table can be implemented using 3 : 8 decoder as shown in Fig. 2.4.7.
+5V
G Voc
Y MEMR
3:8 Y MEMW
WR Decoder
RD Y4
IO/M (74LS138))
IOR
Y IOW
Y7
To increase the driving capacity of data bus, bi-directional buffer is used. Fig. 2.49
shows the logic diagram of the bi-directional buffer 74LS245, also called an octal bus
transceivers. It consists of sixteen non-inverting buffers, eight for each direction, with
74LS245 10
20
Vcc GND
2 A B 18 Function table
3 A2 B217 Directionn
4 B3 16 Enable control Operation
G DIR
5 A B 15 B Data to A Bus
6 As Bs 14 H A Data to B Bus
H X Isolation
7 Ag Bs 13
H High level,L = Low level,X=Irrelevant
8 A B7 12
Bs 11
DIR
19
Direction Enable
control
tri-state output. The direction of data flow is controlled by the pin DIR. When DIR is
high, data flows from the A bus to the B bus; when it is low, data flows from B to A.
The active low enable signal and the DIR signal are ANDed to activate the bus lines.
Each buffer in this device can sink 24 mA and source 15 mA of current.
edatamucroprocessor, performing read operation. When RD signal is high, DIR is high and
flows from microprocessor to memory or 1/0 device performing write operation.
9+5 V
20
A16 17 [Vcc A15
15 5
A14
131174LS244 Octal A13 High-
Bus order
A12 Address
3. 12 A1
Driver14 A4o bus
16 Ag
18
10
9+5 V 9+5 V
40 135 AD7 20
VcC READY 18| Vcc 19
2 MHz
28 16As
15 Low
crystal 74LS373
12 A4
20 pF
As21 order
dress
bus
19
ADT
4SOD A
5SID
33 s
ADo12 11
OC GND
10
Ao
30
8085 A
NC29 S ALE
OM34 +5 V
37
CLK OUT RD2
38
100 K HLDA
WR 31 11-D7
11
INTA
74LS245
12-De
13 Ds
1 uF
6 RESETIN
Bl-directlonal 14 D Data
TRAP 15
1K Bus D3 bus
WR
14-MEMR
GND
AD
GTU: Summer-03,06, Marks 5, IT, Winter-12, May-13
Explain how address/data lines ADO-AD7 are de-multiplexed. Draw logic diagram to generate
control signals MEMW, MEMR, IOW and 1OR from 10/M, WR and RD.
GTU: Summer-14, Marks 7
D r a w schematic to generate readfurite control signals for memory and input/output of 8085
microprocessor. GTU: Winter-14, Marks 4
W h a t multplexing ? How it is done in microprocessor 8085 for address and data bus ? Explain
with neat diagram.
GTU: Winter-15, 19, Marks 7
With the help of diagram shorw how de-multiplexing of addressdata lines ADO-AD7 can be
achieved ? Also explain the generation of control signals MEMW, MEMR, IOR and 1OW.
achieved by connecting a external latch to AD% - AD, lines and enabling the latch when
ALE signal is active.
Q.9 How perfomance of a microprocessor ls measured Interms of MIPS ?
Ans. The performance of a
microprocessor is measured interms of MIPS
(Million
Instructions per Second). It is given as,
MIPS rate = 1
Average time required for the execution of instruction x 10°
Q.11 If a 5 MHz crystal is connected wlth 8085; what ls the value of system clock
frequency and one T-state ?
320x10
3.125
9
3.125 MHz.
3.125 MHz.
a.13 What are the important control signals in 8085 microprocessor ?
Ans.: The important control signals in 8085 microprocessor are ALE, IO/M, RD
and WR
Q.14 What is tri-state logic ?
Ans. Logic outputs have two normal states, LOW and HIGH, corresponding to logic
values 0 and 1. However, some outputs have a third electrical state that is not logic
state at all, called the high-impedance or floating state. In this state the output behaves as
if it isn't even connected to the circuit, except for a small leakage current that may flow
into or out of the output pin. The circuit having such three states is called tri-state logic.
a15 What is the function of the Ready signal of 8085 ?
Ans.: It is used by the microprocessor to sense whether a peripheral is ready or not for
data transfer. If not, the processor waits. It is thus used to synchronize slower
peripherals to the microprocessor.
Q.16 List the five Interrupt pins avallable In 8085.
Ans. The five interrupt pins available in 8085 are: TRAP, RST 7.5, RST 6.5, RST 5.5,
and INTR
of 8085
Q.17 8pecify the size of data, address, memory word and memory capacity
microprocessor.
Ans. Size of data bus = 8-bits Size of address bus = 16-bits
Size of memory word = 8-bits Memory capacity = 64 kbytes
Q.18 List the specilal purpose registers of 8085.
Ans. The special purpose registers of 8085 are:
1. A (Accumulator) 2. Flag register ****************************************************************************************
Q.20 What are the content of PC and INTE flag after reset ?
Ans.: After reset, PC is loaded with 0000H and INTE flag is cleared.
O00