You are on page 1of 2

EXP : 16 a) ROLLING DISPLAY USING 8279 Aim To write an assembly language program to display the given message in Rolling

fashion using 8279. ALGORITHM: Step 1: Set the keyboard mode as 2 key lockout and mode and display mode 8, 8 bit character right entry mode. Step 2: Clear the Display RAM Step 3: To display the message, write the WRITE DISPLAY RAM command (90H) Step 4: Load the HL with the address of the first character Step 5:Move the no of digits to be displayed in to register C Step 6: Move the content of memory to accumulator. Step 7: Send it to the data register (00H) Step 8: Call the delay sub-routine. Step 9: Increment the HL register. Step10: Decrement content of C register. Step 11: Jump to step 6 if C is not equal to zero. Step 12: Jump to step 4. Program: MVI A,10H OUT 01H MVI A DCH OUT 01H MVI A,90H OUT 01H LXI H,4500 MVI C,03H MOV A,M OUT 00H CALL DELAY INX H DCR C JNZ L1 JMP L2 MVI E,FF MVI D,FF DCR D JNZ LABEL3 DCR E JNZ LABEL3 RET ; [A] ,<====== 10H ; Send it to control register ; [A]<======== DCH, Clear display RAM ; Send it to control register ; [A]<======== 90H ; Send it to control register ; [C]<======== 03H ; Send it to data register ; CALL DELAY ; Increment HL ; ; ;

L2 L1

DELAY LABEL3

7 Segment LED data format (1=LED OFF, 0 = LED ON)

D7 d

D6 c

D5 b

D4 a

D3 dp

D2 e

D1 g

D0 f

4500 = 2C, 4501 = 2C , 4602 = 8A 16 b) PROGRAM: MVI OUT MVI OUT CALL DELAY MVI OUT LXI MVI MOV OUT INX DCR JNZ CALL DELAY JMP MVI E,FF MVI D,FF DCR D JNZ LABEL3 DCR E JNZ LABEL3 RET A,00H 01H A,DCH 01H A,90H 01H H,4500 C,03H A,M 00H H C L1 L2 BLINKING DISPLAY USING 8279

L2

L1

DELAY LABEL3

You might also like