You are on page 1of 9

Submitted By :

Roll No. : 1803071


Name : Prashant Raj Mishra
Section : EL1 Experiment No-5

 Aim: Basic interfacing programming using 8255 PPI


(a) Addition of two port data

(b) To initialize port A as an Input port in mode-0 and to input the data set by SPDT switches
through port A and store the data at RAM location 4500H.

(c) To initialize port A as input port and port B as output port in mode-0, to input the data at port A
as set by the SPDT switches and to output the same data to port B to glow the LEDs accordingly

 Theory:

1. 8255 PPI Block Diagram

Fig. 1.1. Block diagram of 8255


2. INTEL 8051 PIN Configuration

Fig. 1.2. Pin configuration of 8255


3. Control Register Configuration:
Write the following programs in assembly language and execute in 8051
simulator.

(a) Addition of two port data

Program Code:
Remarks
(b) To initialize port A as an Input port in mode-0 and to input the data
set by SPDT switches through port A and store the data at RAM location
4500H.

Program Code
Remarks
(c) To initialize port A as input port and port B as output port in mode-0, to input the
data at port A as set by the SPDT switches and to output the same data to port B to glow
the LEDs accordingly.

Program Code
Remarks

Submitted By :
Roll No. : 1803071
Name : Prashant Raj Mishra
Section : EL1

You might also like