Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction to 8085
It
www.eazynotes.co
m
12-Dec-11
Introduction to 8085
It
has three
advanced versions:
8085 AH
8085 AH2
8085 AH1
These
advanced
versions are
designed using
HMOS technology.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
Introduction to 8085
The
advanced
versions consume
20% less power
supply.
The
clock frequencies
of 8085 are:
Gursharan
Singh Maninder
8085
8085
8085
8085
A3 MHz
AH
3 MHz
AH2 5 MHz
AH1 6 MHz
www.eazynotes.co
m
12-Dec-11
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
X 1 & X2
Pin 1 and Pin 2 (Input)
These
8085
can generate
clock signals
internally.
To
generate clock
signals internally,
8085 requires external
inputs from X1 and X2.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
RESET
IN:
www.eazynotes.co
m
12-Dec-11
Resetting
the
microprocessor
means:
Clearing the PC and IR.
Disabling all interrupts
(except TRAP).
Disabling the SOD pin.
All the buses (data,
address, control) are
tri-stated.
Gives HIGH output to
RESET OUT pin.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
RESET
OUT:
www.eazynotes.co
m
12-Dec-11
(Serial Input
Data):
www.eazynotes.co
m
12-Dec-11
10
(Serial Output
Data):
www.eazynotes.co
m
12-Dec-11
11
Interrupt Pins
Interrupt:
www.eazynotes.co
m
12-Dec-11
12
completes execution of
current instruction of the program.
PC
PC
After
It
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
13
7.5
RST
6.5
RST
5.5
INTR
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
14
Classification of Interrupts
Maskable
Vectored
and Non-Maskable
and Non-Vectored
Edge
Priority
Gursharan
Singh Maninder
Based Interrupts
www.eazynotes.co
m
12-Dec-11
15
Maskable Interrupts
Maskable
Enabling
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
16
Maskable Interrupts
List
of Maskable Interrupts:
RST 7.5
RST 6.5
RST 5.5
INTR
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
17
Non-Maskable Interrupts
The
These
TRAP
Gursharan
Singh Maninder
is a non-maskable interrupt.
www.eazynotes.co
m
12-Dec-11
18
Vectored Interrupts
The
Each
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
19
Vectored Interrupts
List
of vectored interrupts:
RST 7.5
RST 6.5
RST 5.5
TRAP
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
20
Vectored Interrupts
The
Vectored Address
RST 7.5
RST 6.5
RST 5.5
TRAP
Absolute
address is calculated by
multiplying the RST value with
0008 H.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
21
Non-Vectored Interrupts
The
The
INTR
Gursharan
Singh Maninder
is a non-vectored interrupt.
www.eazynotes.co
m
12-Dec-11
22
RST
It
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
23
RST
6.5
RST 5.5
INTR
TRAP
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
24
there exists a
simultaneous request at two or
more pins then the pin with
higher priority is selected by the
microprocessor.
Priority
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
25
of interrupts:
Interrupt
Gursharan
Singh Maninder
Priority
TRAP
RST 7.5
RST 6.5
RST 5.5
INTR
www.eazynotes.co
m
12-Dec-11
26
TRAP
Pin 6 (Input)
It
is a non-maskable
interrupt.
It
It
cannot be disabled.
It
It
And
TRAP
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
27
RST 7.5
Pin 7 (Input)
It
is a maskable
interrupt.
It
It
is positive edge
triggered only.
The
internal flip-flop is
triggered by the rising
edge.
The
flip-flop remains
high until it is cleared
by RESET IN.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
28
RST 6.5
Pin 8 (Input)
It
is a maskable
interrupt.
It has the third highest
priority.
It is level triggered only.
The pin has to be held
high for a specific
period of time.
RST 6.5 can be enabled
by EI instruction.
It can be disabled by DI
instruction.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
29
RST 5.5
Pin 9 (Input)
It
is a maskable
interrupt.
It has the fourth
highest priority.
It is also level
triggered.
The pin has to be
held high for a
specific period of
time.
This interrupt is very
similar to RST 6.5.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
30
INTR
Pin 10 (Input)
It
is a maskable
interrupt.
It has the lowest
priority.
It is also level triggered.
It is a general purpose
interrupt.
By general purpose we
mean that it can be
used to vector
microprocessor to any
specific subroutine
having any address.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
31
INTA
Pin 11 (Output)
It
It
is an out going
signal.
It
is an active low
signal.
Low
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
32
Bus:
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
33
Bus:
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
34
AD0 AD7
Pin 19-12 (Bidirectional)
These
During
In
The
separation of lower
order address and data is
done by address latch.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
35
A8 A15
Pin 21-28 (Unidirectional)
These
The
address is sent
from microprocessor to
memory.
These
8 pins are
switched to high
impedance state
during HOLD and
RESET mode.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
36
ALE
Pin 30 (Output)
It
It
If
ALE = 1 then
ALE = 0 then
www.eazynotes.co
m
12-Dec-11
37
S0 and S1
Pin 29 (Output) and Pin 33 (Output)
S0
They
S1
Halt
Write
Read
Opcode Fetch
Gursharan
Singh Maninder
Operation
www.eazynotes.co
m
12-Dec-11
38
IO/M
Pin 34 (Output)
This
If
IO/M = 1 then
IO/M = 0 then
Memory operation is
being performed.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
39
IO/M
Pin 34 (Output)
The
If
S0 = 0 and S1 = 1 then
IO/M = 0 then
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
40
IO/M
S0
S1
Opcode Fetch
Memory Read
Memory Write
I/O Read
I/O Write
Interrupt Ack.
High Impedance
Halt
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
41
RD
Pin 32 (Output)
RD
It
It
is a control signal
used for Read operation
either from memory or
from Input device.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
42
WR
Pin 31 (Output)
WR
It
It
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
43
READY
Pin 35 (Input)
This
pin is used to
synchronize slower
peripheral devices
with fast
microprocessor.
The
microprocessor
remains in wait state
until the input at this
pin goes high.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
44
HOLD
Pin 38 (Input)
HOLD
pin is used to
request the
microprocessor for DMA
transfer.
This
request is sent by
DMA controller.
Intel
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
45
HLDA
Pin 39 (Output)
HLDA
The
microprocessor uses
this pin to acknowledge
the receipt of HOLD
signal.
When
This
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
46
HLDA
Pin 39 (Output)
The
control of these
buses goes to DMA
Controller.
Control
remains at
DMA Controller until
HOLD is held high.
When
HOLD goes
low, HLDA also goes
low and the
microprocessor takes
control of the buses.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
47
power supply
is connected to
VCC.
Ground
signal is
connected to VSS.
Gursharan
Singh Maninder
www.eazynotes.co
m
12-Dec-11
48