Exp No: 04 (8255 INTERFACING USING MODE 0)
AIM:
To initialize port A as the input port A and port B as input in mode 0 to input
the data at port A as set by input switches and the output of some data to glow the
LED automatically.
FACILITIES REQUIRED:
Sl.No. Facilities Required Quantity
1 8085 Microprocessor Kit 1
2 8255 Interface 1
3 DC Power Supply 5V 1
PROCEDURE:
1. Start the program execution. Initialize the data A as input.
2. Input the data at port A. Output the data at port B.
3. Terminate the program.
PROGRAM:
ADDRESS OPCODE LABEL MNEMONICS COMMENTS
4100 3E 90 MVI A,90 Initialize port A as I/P and Port B as
output port.
4102 D3 C6 OUT C6
4104 DB C0 IN CO Read port A
4106 D3 C2 OUT C2 Output the data at port B
4108 76 HLT Terminate the program.
OUTPUT:
INPUT OUTPUT
Port A Port B
11101001 11101001
RESULT:
Thus the interfacing 8255 using Mode 0 was executed and verified successfully.