0% found this document useful (0 votes)
4 views

Exercise-13(FIRE)

The document outlines an exercise for a microprocessor and microcontroller lab at Presidency University, Bengaluru, focusing on developing an assembly language program to display 'FIRE' and 'HELP' on a 7-segment display. It includes the assembly code for both messages and detailed steps for executing the interfacing exercises using MASM and other software. The instructions guide users through editing, compiling, linking, and downloading the program to the hardware kit.

Uploaded by

houndclegane860
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Exercise-13(FIRE)

The document outlines an exercise for a microprocessor and microcontroller lab at Presidency University, Bengaluru, focusing on developing an assembly language program to display 'FIRE' and 'HELP' on a 7-segment display. It includes the assembly code for both messages and detailed steps for executing the interfacing exercises using MASM and other software. The instructions guide users through editing, compiling, linking, and downloading the program to the hardware kit.

Uploaded by

houndclegane860
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

PRESIDENCY UNIVERISTY, BENGALURU

School of Engineering

Microprocessors and Microcontroller Lab


CSE 254

IV Semester 2018-19
Exercise-
13

Design and develop an ALP program using 7-Segment Dis-


play controller to display FIRE/HELP
Program to display FIRE DISPE: MOV AL,BL
CALL DISPE
MOV DX,PORTC
E:MOV AL,79H
.OUTPUT 2500AD OUT DX,AL
CALL DISP
PORTA EQU FFC0H INC BL
PORTC EQU FFC4H RET
CALL DISPE
CONTROL EQU FFC6H
R: MOV AL,77H
CSEG SEGMENT DISP: MOV DX,PORTA
CALL DISP
ASSUME CS:CSEG OUT DX,AL
ORG 0:5000H MOV CX,0FFH
CALL DISPE
BACK1:LOOP BACK1
MOV AL,80H I: MOV AL,30H
RET
MOV DX,CONTROL CALL DISP
END
OUT DX,AL
AGAIN: MOV BX,00 CALL DISPE
F: MOV AL,71H
CALL DISP
JMP AGAIN
Program to display HELP DISPE: MOV AL,BL
CALL DISPE MOV DX,PORTC
.OUTPUT 2500AD P:MOV AL,73H OUT DX,AL
PORTA EQU FFC0H CALL DISP INC BL
PORTC EQU FFC4H RET
CONTROL EQU FFC6H CALL DISPE
CSEG SEGMENT L: MOV AL,38H DISP: MOV DX,PORTA
ASSUME CS:CSEG CALL DISP OUT DX,AL
ORG 0:5000H MOV CX,0FFH
CALL DISPE BACK1:LOOP BACK1
MOV AL,80H
E: MOV AL,30H RET
MOV DX,CONTROL
CALL DISP END
OUT DX,AL
AGAIN: MOV BX,00
CALL DISPE
H: MOV AL,76H
CALL DISP
JMP AGAIN
Steps to Execute Interfacing Exercises
1) C:\masm\> Edit filename.asm
2) C:\masm\> x8086 filename.asm
3) C:\masm\> LINK (Enter)
Input filename: Filename (Enter 5 times)
options: Type H (Enter)
4) Minimize Command prompt window
5) Launch Talk software
Goto options settings communication port (COM 2) OK
6) Goto options connect  press reset button on KIT
( KIT NAME APPEARS ON SCREEN)
7) GOTO FILE DOWNLOAD INTEL HEX FILE  SELECT
FILENAME.HEXOPEN (*# APPEARS ON SCREEN)
8) Type G
Type 5000 (Enter)
THANK YOU

You might also like