Interfacing of 8255 With 8085
Interfacing of 8255 With 8085
EXPERIMENT NO. 8
Objective: Write a program to interface 8255 programmable peripheral
interface with 8085 microprocessor.
Apparatus used: 8085 Microprocessor kit, 8255 programmable
peripheral interface, Keyboard & Power supply, Sim8085 simulator.
Procedure: The following steps are required to implement the program:
1. Write the program for delay from memory address 5200H.
2. Write the program of interfacing from memory address 5000H.
3. Execute the program and observe the status of LEDs.
Program code:
Memory Machine Label Mnemonics Operand Comments
Address Codes
Moves the value 80 in
Accumulator i.e. PPI
5000 3E 80 MVI A,80
works in I/O mode and all
ports in M0 output mode.
Accumulator content will
5002 D3 F3 OUT F3 be sent to port address
F3 (Control register).
Moves the value 6B in
5004 3E 6B LOOP MVI A,6B Accumulator
(sequence for LEDs).
Accumulator content
5006 D3 F0 OUT F0 will be sent to port
address F0 (Port A).
Transfer program control
5008 CD 00 52 CALL 5200H to memory address
5200H. Moves the value
500B 3E 00 MVI 00 00 in Accumulator.
Accumulator content will
500D D3 F0 OUT F0 be sent to port address
F0 (Port A).
Transfer program control
500F CD 00 52 CALL 5200H to memory address 5200H.
5012 C3 04 50 JMP LOOP Jump to label LOOP.
DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING
PSIT-Pranveer Singh Institute of Technology
Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India
Result:
The status of LEDs of the mentioned port (port A) is as per the
sequence provided in the program i.e. 6B (01101011).
Precautions:
1. Do not press any wrong key of the keyboard.
2. Feed the correct program.
3. Switch off the power supply after completing the experiment.
4. Do not touch any IC of the kit.