Statement:Write a program to initialize 8255 in the configuration given below
Home
8085 Forum
8085 Free Projects
8085 Free Programs
8085 Tutorials
8085 details
Interfacing Techniques
Electronic Tutorials
Electronic Projects
Assembler/ IDE
Datasheets
Guest Book
About Me
Sample 1:

       Write a program to initialize 8255 in the configuration given below:
               1. Port A: Simple input
               2. Port B: Simple output
               3. Port CL: Output
               4. Port Cu: Input
       Assume address of the control word register of 8255 as 83H.

Solution:





Sample 2:

       Write a program to initialize 8255 in the configuration given below:
       1. Port A: Output with handshake
       2. Port B: Input with handshake
       3. Port CL: Output
       4. Port Cu: Input
       Assume address of the control word register of 8255 as 23H.        

Solution:


SOURCE PROGRAM 1:

       MVI A, 98H                : Load control word
       OUT 83H                : Send control word

SOURCE PROGRAM 2:

       MVI A, AEH                : Load control word
       OUT 23H                : Send control word