Beruflich Dokumente
Kultur Dokumente
Contents
n Pin diagram of 8085 n 8085 Operations n Architecture of 8085 n 8085 Communication with Memory
n A 40-pin IC n Six groups of signals n Address Bus n Data Bus n Control and Status pins n Power Supply & frequency signals n Externally initiated Signals n Serial I/O ports
1 1 1 1 1 1 1 1 1 1 2
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
X1 X2 R ST-O T SO D S ID TR AP R S T 7 .5 R S T 6 .5 R S T 5 .5 IN T R IN T A AD 0 AD 1 AD 2 AD 3 AD 4 AD 5 AD 6 AD 7 VSS
4 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2
0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1
8085
5 4 6 9 8 7 10 39 35 36 11 38 3 37
ALE W R R D IO /M S0 S1
3 3 3 3 2 3
0 1 2 4 9 3
Address Bus
40 20
Data Bus
1 2
1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2
2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8
8085 Operations
n Microprocessor Initiated Operations n Internal Operations n Peripheral/Externally Initiated Operations
Internal Operations
n Store 8-bit data n Perform Arithmetic and Logic Operations n Test for conditions n Sequence the execution of instructions n Store/Retrieve data from stack during
execution
Architecture of 8085
n Power Supply a +5V DC power supply n Maximum clock frequency of 3MHz n 8-bit general purpose microprocessor n 16-bit Address Bus
n
Architecture of 8085
Registers Program Status word Program Counter Stack Pointer Instruction Register and Decoder
n n
n General Purpose Registers n 8-bit registers (B,C,D,E,H,L) n 16-bit register pairs (BC, DE, HL,PSW) n
Instruction fetched from memory is stored in Instruction register (8-bit register) n Decoder decodes the instruction and directs the Timing & Control Unit accordingly
n
INTR general purpose interrupt RST 5.5 Restart Interrupts RST 6.5 RST 7.5 TRAP non-maskable interrupt
A15 A14 A13 A12 A11 A10 A9 A8 AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0
Data Bus
nData Bus nUsed to transfer instructions and data n8085 has a 8-bit data bus
3 2
Timing Diagram
address lines, (AD0 to AD7) & (A8 to A15) n 8085 performs data transfer using its data lines, AD0 to AD7 n Lower order address bus & Data bus are multiplexed on same lines i.e. AD0 to AD7. n Demultiplexing refers to separating Address & Data signals for read/write operations
n
A8-A15
20H
AD0-AD7 8085
05H
Memory
4FH 2005H
must be applied to the memory chip for the whole duration of the memory read/write operation. n Lower-order address needs to be saved before microprocessor uses it for data transfer
8085
Data
Memory Interface
Data
Memory Chip
Control
Control
8085
Memory Chip
Memory Interface
8085
Program Memory
CS RD
Memory Interface
1 1 1 1 1
2 5 6 9
O O O O O O O O
0 1 2 3 4 5 6 7
74LS373
2 2 2 2
5 4 1 3 2 26 27 1 20 22
A8 A9 A1 A1 A1 A1 A1 A1 C E
0 1 2 3 4 5
34 32
O E /V P P
27C 512A
Memory Mapping
n 8085 has 16-bit Address Bus n The complete address space is thus given by
the range of addresses 0000H FFFFH n The range of addresses allocated to a memory device is known as its memory map
A15 is connected
36 1 2 5 6 9 8 7 1 1 2 3 3 3 3 0 1 9 3 9 5 8 4 37 3
1 1 1 1 1 1 1 1 3 2 2 2 2 2 2 2
2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 U 5A 3 74LS32
3 4 7 8 13 14 17 18 11
U 2 D D D D D D D D G 0 1 2 3 4 5 6 7 Q 0 Q 1 Q 2 Q 3 Q 4 Q 5 Q 6 Q 7 O C
2 5 6 9 1 1 1 1 1
2 5 6 9
10 9 8 7 6 5 4 3
U 4 A A A A A A A A 0 1 2 3 4 5 6 7 O O O O O O O O 0 1 2 3 4 5 6 7 1 1 1 1 1 1 1 1 1 2 3 5 6 7 8 9
74LS373
2 2 2 2
5 4 1 3 2 26 27 20 22 1
A A A A A A A
8 9 1 1 1 1 1
0 1 2 3 4
21 8 32 4 32
= 0000H to = 7FFFH
A11 to A0
1. 111
8085
System Bus
Memory Interface
Memory Devices
Memory-mapped I/O
n 8085 uses its 16-bit address bus to identify a
memory location n Memory address space: 0000H to FFFFH n 8085 needs to identify I/O devices also n I/O devices can be interfaced using addresses from memory space n 8085 treats such an I/O device as a memory location n This is called Memory-mapped I/O
Peripheral-mapped I/O
n 8085 has a separate 8-bit addressing scheme
for I/O devices n I/O address space: 00H to FFH n This is called Peripheral-mapped I/O or I/O-mapped I/O
n OUT Instruction n Outputs the contents of accumulator to an output device n It is a 2-byte instruction n Format: OUT 8-bit port address n Example: OUT 02H
address 01H) and display it on ASCII display connected to output port (port address 02H) IN 01H ;reads data value 03H (example)into ;accumulator, A = 03H MVI B, 30H;loads register B with 30H ADD B ;A = 33H, ASCII code for 3 OUT 02H ;display 3 on ASCII display
were one of the memory locations n Memory related instructions are used n For e.g. LDA, STA n LDA 8000H
n
Loads A with data read from input device with 16-bit address 8000H
n STA 8001H n Stores (Outputs) contents of A to output device with 16-bit address 8001H
address 8000H) and display it on ASCII display connected to output port (port address 8001H) LDA 8000H;reads data value 03H (example)into ;accumulator, A = 03H MVI B, 30H;loads register B with 30H ADD B ;A = 33H, ASCII code for 3 STA 8001H;display 3 on ASCII display