Professional Documents
Culture Documents
Mechatronics:: Advanced Microprocessor and Microcontroller
Mechatronics:: Advanced Microprocessor and Microcontroller
Prepared by:
Dr. Ahmed Hassan M. Hassan
Associate Professor
dr.ahmed@mashreq.edu.sd
www.mashreq.edu.sd
Main Contents
Architecture
Internal Register Organization and Pin Configuration
Instruction Set of 8085
addressing modes
instruction machine cycles with states and timing
diagram.
8085 assembly language programming
Examples
Control Signal
and Status signal
ALE: (Address latch enable)
- It’s active high signal
- It’s used to De-multiplex AD0-AD7 lines
If ALE = 1 AD0-AD7 = A0 – A7
If ALE = 0 AD0-AD7 = D0 – D7
.
S1 and S0 : (Status signals)
IO/M S0 S1
Opcode Fetch 0 1 1
Mem. Read 0 1 0
Mem. Write 0 0 1
IO Read 1 1 0
IO Write 1 0 1
Interrupt ACK 1 1 1
HALT Z 0 0
HOLD Z X X
RESET Z x x
Z High impedance
X Don’t care
Generation of control signal
using NAND Gate
8085
microprocessor
Generation of control signal
using Decoder
O1
O2
I1 I2 I3
I1 O3 0 0 0 O1 x
8085 3X8 O4 0 0 1 O2 MERD
O6 0 1 1 O4 x
I3 O7 1 0 0 O5 x
O8
1 0 1 O6 IOR
1 1 0 O7 IOW
1 1 1 O8 x
Generation of control signal
using De-Multiplexer
AD0 – AD7 is time multiples address data lines
To interface 8085 with memory , input and output device is compulsory to
de-Multiples address and Data
Clock
Lower Order
(AD7 – AD0) Memory Address
Opcode D0 – D7
(ALE)
MEMORY READ MACHINE CYCLE OF 8085
A000h 78
ALE
RD
OFC WR
I I O/M
8085 Memory
Op-code fetch Cycle
Examples (2):
Instruction:
A000h MVI A,45h
Corresponding Coding:
A000h 3E
A001h 45
OFC
MEMR
8085 Memory
T5 T6 T7
T1 T2 T4
A0h A0h
A15- A8 (Higher Order Address bus)
00h 3Eh 01h 45h
DA7-DA0 ( Lower er address/data Bus)
Instruction: ord
ALE
A000h MVI A,45h
Corresponding Coding:
RD
A000h 3E
A001h 45
WR
I I O/M
Instruction:
A000h LXI A,FO45h
OFC
A000h 21 MEMR
A001h 45 Memory
8085
A002h F0
Home Work (2)
Instruction:
A000h MOV A,M OFC
A000h 7E
8085 Memory
Home Work (3)
Instruction:
A000h MOV M,A OFC
A000h 77
8085 Memory