0% found this document useful (0 votes)
23 views2 pages

Interfacing of 8255 With 8085

The document outlines an experiment to interface the 8255 programmable peripheral interface with the 8085 microprocessor. It includes the objective, apparatus used, detailed procedure, program code for both interfacing and delay, results, and precautions. The experiment successfully demonstrated the control of LEDs through the specified program sequence.

Uploaded by

gngnporwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Interfacing of 8255 With 8085

The document outlines an experiment to interface the 8255 programmable peripheral interface with the 8085 microprocessor. It includes the objective, apparatus used, detailed procedure, program code for both interfacing and delay, results, and precautions. The experiment successfully demonstrated the control of LEDs through the specified program sequence.

Uploaded by

gngnporwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PSIT-Pranveer Singh Institute of Technology

Kanpur-Delhi National Highway (NH-2), Bhauti, Kanpur-209305 (U.P.), India

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

Program code for delay:

Memory Machine Label Mnemonics Operand Comments


Address Codes
5200 06 FF MVI B,FF Moves the value FF in
register B.
5202 0E FF LOOP2 MVI C,FF Moves the value FF in
register C.
5204 0D LOOP1 DCR C Decrement in C.
5205 C2 04 52 JNZ LOOP1 If zero flag is not set, Jump
to label LOOP1.
5208 05 DCR B Decrement in B.
5209 C2 02 52 JNZ LOOP2 If zero flag is not set, Jump
to label LOOP2.
520C C9 RET Transfers program control
to the return address
located at the top of the
stack.

Result:
The status of LEDs of the mentioned port (port A) is as per the
sequence provided in the program i.e. 6B (01101011).

Conclusion: We have successfully interfaced the 8255 programmable


peripheral interface with 8085 microprocessor.

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.

DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING

You might also like