Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
M.SAFA
AP/IT
The
Internally,
8085
is an 8-bit microprocessor.
It is capable of addressing 64KB of memory.
It requires a +5volts of power supply.
8085 operates on 3MHz -5MHz.
It has 16 address lines, out of which 8
address lines are multiplexed with data lines.
It is manufactured in NMOS technology
It is available in 40 pin dual in line (DIP)
package.
The 8-bit 8085 CPU (or MPU Micro Processing Unit) communicates with the other
units using a 16-bit address bus, an 8-bit data bus and a control bus.
System
Unidirectional
Identifying peripheral or memory location
Data
Bus :
Bidirectional
Transferring data
Control
Bus
Synchronization signals
Timing signals
Control signal
1.
2.
3.
4.
5.
6.
7.
ALU
Timing and Control Unit
General Purpose Registers
Program Status word
Program Counter
Stack Pointer
Instruction Register and Decoder
8. Interrupt Control
9.Serial I/O Control
10.Address Bus
11. Data Bus
10
The Registers are of 8-bit & 16-bit size used for different
purposes
11
SP Stack pointer:
The stack pointer is also a 16-bit register that is
used to point into memory.
The stack is array of memory location accessed
in a Last In First Out (LIFO) fashion.
The stack is an area of memory used to hold
data that will be retrieved soon.
12
13
14
15
16
17
A15- A10
Chip Selection
Circuit
8085
CS
A15-A8
ALE
AD7-AD0
WR
RD
Latch
A9- A0
1K Byte
Memory
Chip
A7- A0
D7 - D0
IO/M
RD
18
WR
19
20
40
1.
2.
3.
4.
5.
6.
21
22
23
24
ALE
25
The
S1
1
1
0
1
0
S0
1
0
1
0
1
Z
Z
Z
0
x
x
1
x
x
OPERATION
Opcode fetch
Memory read
Memory write
I/O read
I/O write
Interrupt
acknowledge
Halt
Hold
Reset
26
Reset
27
SID
28
Vcc:
29
Interrupt
30
EXAMPLE:Main
program
ISR
p is
interrupt
X
Y
RET
HLT
31
CLASSIFICATION OF
INTERRUPTS
Interrupts
Hardware
Maskable
Non-Maskable
TRAP
RST 7.5
RST 6.5
RST 5.5
INTR
Software
32
33
RST 7.5
Yes
Yes
TRAP
No
Yes
34
1.TRAP:-It
Edge
TRAP
How
35
RST7.5:-It
36
37
38
The
39
Equivalent to
RST0
CALL 0000H
RST1
CALL 0008H
RST2
CALL 0010H
RST3
CALL 0018H
RST4
CALL 0020H
RST5
CALL 0028H
RST6
CALL 0030H
RST7
CALL 0038H
40
EXAMPLE
:-
ISR
Main program
---
0008H
---
0009H
6107H
6108H
RST 1
6109H
.
.
.
2501H
--RET
2502H
41
42
43
44
45
46
47
48
49
50
The
instructions
that
direct the assembler to
do something.
GENERAL DIRECTIVES:
Assembler origin
ORG
Symbol Definition
EQU
Memory Reservation
DS
Data Definition
DB
DW
Assembler Termination
END
51
52
EQU
53
DW
54
Entering
55
Program:
MVI A, 04H
MVI B, 06H
MVI C, 00H
ADD B
JNC LP1
INR C
LP1: STA 4500H
MOV A, C
STA 4501H
HLT
Prepared by : M.Safa AP/IT
Program:
MVI A, 06H
MVI B, 04H
MVI C, 00H
SUB B
JNC LP1
INR C
LP1: STA 4500H
MOV A, C
STA 4501H
HLT
56
Problem 1: the instruction code 4FH = 0100 1111 is stored in the memory
location 2005H. Illustrate the data flow and list the sequence of events
Prepared by : M.Safa AP/IT
57
58
Illustrate
59
60
Step
61
Step
62
Step
63
4.step
64
Problem3:
65
4F Data bus
from memory
Instructi
on reg
A :82h
4F
82h
Temp
Reg
Instruction
decoder
Timing and
control
66
82H C
67