Home

8086 Program to blink a digit of seven segment display

Statement: Program to interface 8086 microprocessor kit with Seven Segment Display and make any digit to Blink

Description:

In this program we interface 8086 microprocessor with Seven Segment Display and diaplay a digit.  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

STR:   MOV AL, 10011001B

OUT PPIA,AL

MOV CX, FFFFH

DEL:   NOP

NOP

NOP

LOOP DEL

MOV AL, 11111111B

OUT PPIA, AL

MOV CX, FFFFH

DEL1:   NOP

NOP

NOP

LOOP DEL1

JMP  STR

HLT