Home

Program to Interface Seven Segment Display with 8086 microprocessor

Statement: Write a program to interface 8086 microprocessor with Seven Segment Display, and display a digit

Description:

To interface with Seven Segment Display,we must be familiar with 8255A PPI, which has three ports which can be used as I/O ports. The ports A, B and C are identified using addresses 19H, 1BH, and 1DH respectively and control register address is 1FH. We use Seven Segment Display structure using the following digit code:

Source program:

MOV AL,10000000B

OUT PPI C, AL

MOV AL, __ (Hex Code of Digit)

OUT PPI A,AL

HLT