Professional Documents
Culture Documents
Architecture
• 8-bit general purpose µp
• Capable of addressing 64 k of memory
• Has 40 pins
• Requires +5 v power supply
• Can operate with 3 MHz clock
• 8085 upward compatible
Pins
Power
Supply: +5 V
Frequency
Generator is
connected to
those pins
Input/Output/
Memory
Read
Write
Address latch
Multiplexed
Enable
Address Data
Bus
Address
Bus
• System Bus – wires connecting memory & I/O to
microprocessor
– Address Bus
• Unidirectional
• Identifying peripheral or memory location
– Data Bus
• Bidirectional
• Transferring data
– Control Bus
• Synchronization signals
• Timing signals
• Control signal
Architecture of Intel 8085 Microprocessor
Intel 8085 Microprocessor
• Microprocessor consists of:
– Control unit: control microprocessor operations.
– ALU: performs data processing function.
– Registers: provide storage internal to CPU.
– Interrupts
– Internal data bus
The ALU
• In addition to the arithmetic & logic circuits, the
ALU includes the accumulator, which is part of
every arithmetic & logic operation.
D7 D6 D5 D4 D3 D2 D1 D0
S Z X AC X P X CY
– Sign Flag
• Used for indicating the sign of the data in the accumulator
• The sign flag is set if negative (1 – negative)
• The sign flag is reset if positive (0 –positive)
Timing Diagram
Representation of Various Control signals generated during
Execution of an Instruction.
Following Buses and Control Signals must be shown in a
Timing Diagram:
•Higher Order Address Bus.
•Lower Address/Data bus
•ALE
•RD
•WR
•IO/M
Timing Diagram
Instruction:
A000h MOV A,B
Corresponding Coding:
A000h 78
Timing Diagram
Instruction:
A000h MOV A,B
Corresponding Coding:
A000h 78
OFC
8085 Memory
Timing Diagram
Instruction: T1 T2 T3 T4
A000h 78
ALE
RD
OFC WR
IO/M
8085 Memory
Op-code fetch Cycle
Timing Diagram
Instruction:
A000h MVI A,45h
Corresponding Coding:
A000h 3E
A001h 45
Timing Diagram
Instruction:
A000h MVI A,45h
Corresponding Coding:
OFC
A000h 3E
MEMR
A001h 45
8085 Memory
Timing Diagram
T1 T2 T3 T4 T5 T6 T7
A0h A0h
A15- A8 (Higher Order Address bus)
00h 3Eh 01h 45h
DA7-DA0 (Lower order address/data Bus)
Instruction:
A000h MVI A,45h
ALE
Corresponding Coding:
RD
A000h 3E
A001h 45
WR
IO/M
Instruction:
A000h LXI A,FO45h
Corresponding Coding: OFC
A000h 21 MEMR
MEMR
A001h 45
A002h F0 8085 Memory
Timing Diagram
T1 T2 T3 T4 T5 T6 T7 T8 T9 T10
ALE
RD
WR
IO/M
The Design of a Memory Chip
So, the previous diagram would now look like the
following: I 0 I I I1 2 3
WR Input Buffers
A D Memory Reg. 0
d e
A1 d c Memory Reg. 1
r o
e Memory Reg. 2
A0 d
s e Memory Reg. 3
s r
RD Output Buffers
O0 O1 O2 O3
14
The Design of a Memory Chip
Since we have tri-state buffers on both the inputs
and outputs of the flip flops, we can actually use
WR one set of pins only.
Input Buffers
The
A D chip Memory
d e
would Reg.now
0 look likeDthis:
0 D0
A1 d c Memory Reg. 1 D1 A1 D1
r o
e Memory Reg. 2 D2 D2
A0 d A0
s e Memory Reg. 3
s r D3 D3
RD Output Buffers
RD WR
15
The steps of writing into Memory
What happens when the programmer issues the
STA instruction?
The microprocessor would turn on the WR control
(WR = 0) and turn off the RD control (RD = 1).
The address is applied to the address decoder which
generates a single Enable signal to turn on only
one of the memory registers.
The data is then applied on the data lines and it is
stored into the enabled register.
16
Dimensions of Memory
Memory is usually measured by two numbers: its length
and its width (Length X Width).
The length is the total number of locations.
The width is the number of bits in each location.
18
Chip Select
Usually, each memory chip has a CS (Chip Select)
input. The chip will only work if an active signal is
applied on that input.
19