Free Electronic Circuits & 8085 projects

Electronic projects with circuit diagram and 8085 microprocessor projects.

Initialize 8255

Statement:Write a program to initialize 8255 in the configuration given below


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:

68.a-Initialize 8255

Source Program 1:

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

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.

68.b-Initialize 8255

Source Program 2:

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

Related Programs (Click down)

Generate and display binary up counter

Generate and display BCD up counter with frequency 1Hz

Generate and display BCD down counter

Generate and display the contents of decimal counter