Free Electronic Circuits & 8085 projects

Electronic projects with circuit diagram and 8085 microprocessor projects.

Blink port C bit 0 of 8255

Statement:Write a program to blink Port C bit 0 of the 8255. Assume address of control word register of 8255 as 83H. Use Bit Set/Reset mode.


69.a-Blink port C bit 0 of 8255

Source Program:

  • BACK: MVI A, 0lH : Load bit pattern to make PCο high
  • OUT 83H : Send it to control word register
  • CALL DELAY : Call Delay subroutine
  • MVI A, 00H : Load bit pattern to make PCο Low
  • OUT 83H : Send it to control word register
  • CALL Delay : Call Delay subroutine
  • JMP BACK : Repeat

Delay subroutine:

  • Delay: LXI D, Count
  • Back: DCX D
  • MOV A, D
  • ORA E
  • JNZ Back
  • RET

Flowchart

69.b-Blink port C bit 0 of 8255

 

 

Related Programs (Click down)

Binary to BCD conversion

Find the 7-segment codes for given numbers

Find the ASCII character

ASCII to Decimal Conversion