Write a program to display the remaining time in three digits using three seven- segment displays. For example, if the remaining time is currently 20.1 minutes, then we would be displaying 201 on the three seven segment displays. We would then observe 201, 200, 199, ... , 001, 000. You need to write the delay subroutine in such a way that when the program is simulated, the time display should be updated at every 0.1 min approximately. Note that the actual 8051 delays and the delays one would get when simulations are performed, may be quite different. Remaining time initialization will be done within the code (largest value 99.9 minutes). When the remaining time hits zero, display blinking characters of your own design.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

PLEASE ONLY USE 8051 MICROCONTROLLER (AT89C51 FOR EXAMPLE) AND ASSEMBLY LANGUAGE, NOT ANY OTHER MICROCONTROLLER OR LANGUAGE, THANKS. I ADDED MY TRY OF CODE (IT BASICALLY COUNTS FROM 11 TO 00.)

I DONT WANT SOLUTION IN THIS CODE FORMAT:

DISP MACRO MSG

LEA DX , MSG

MOV AH , 09H

INT 21H

END

DATA SEGMENT

MSG DB "THE REMAINING TIME IS: $"

DATA ENDS

CODE SEGMENT

ASSUME DS:DATA , CS : CODE

START:MOV AX , DATA

MOV DS , AX

DISP MSG

MOV AH , 2CH

INT 21H

MOV AL , CH

MOV BX , AX

CALL SHOW

MOV DL , ' : '

MOV AH , 02H

SCREEN

INT 21H

MOV AL , CL .........

MOV A, #00H
MOV R5, #12
MOV P2, #06H
MOV DPTR, #500H
AGAIN: MOVC A, GA+DPTR
MOV P3, A
CJNE A, #6FH,L1
MOV P2, #3FH
Ll:LCALL DELAY
INC DPTR
CLR A
DJNZ R5, AGAIN
MOV P3, #7ін
MOV P2, #71H
DELAY:
MOV RO, #07
HERE3:MOV R1,#255
HERE2:MOV R2,#255
HERE1:DJNZ R2, HERE1
DJNZ R1,HERE2
DJNZ RO, HERE3
RET
ORG 500H
LABEL1:DB 06H,3FH,6FH,7FH,07H,7 DH,6DH,66H,4FH,5BH,06H,3FH; 1 0 9 8 7 6 5 4 3 2 10
END
Transcribed Image Text:MOV A, #00H MOV R5, #12 MOV P2, #06H MOV DPTR, #500H AGAIN: MOVC A, GA+DPTR MOV P3, A CJNE A, #6FH,L1 MOV P2, #3FH Ll:LCALL DELAY INC DPTR CLR A DJNZ R5, AGAIN MOV P3, #7ін MOV P2, #71H DELAY: MOV RO, #07 HERE3:MOV R1,#255 HERE2:MOV R2,#255 HERE1:DJNZ R2, HERE1 DJNZ R1,HERE2 DJNZ RO, HERE3 RET ORG 500H LABEL1:DB 06H,3FH,6FH,7FH,07H,7 DH,6DH,66H,4FH,5BH,06H,3FH; 1 0 9 8 7 6 5 4 3 2 10 END
Write a program to display the remaining time in three digits using three seven-
segment displays. For example, if the remaining time is currently 20.1 minutes, then
we would be displaying 201 on the three seven segment displays. We would then
observe 201, 200, 199, ... , 001, 000. You need to write the delay subroutine in such a
way that when the program is simulated, the time display should be updated at every
0.1 min approximately. Note that the actual 8051 delays and the delays one would
get when simulations are performed, may be quite different. Remaining time
initialization will be done within the code (largest value 99.9 minutes). When the
remaining time hits zero, display blinking characters of your own design.
Transcribed Image Text:Write a program to display the remaining time in three digits using three seven- segment displays. For example, if the remaining time is currently 20.1 minutes, then we would be displaying 201 on the three seven segment displays. We would then observe 201, 200, 199, ... , 001, 000. You need to write the delay subroutine in such a way that when the program is simulated, the time display should be updated at every 0.1 min approximately. Note that the actual 8051 delays and the delays one would get when simulations are performed, may be quite different. Remaining time initialization will be done within the code (largest value 99.9 minutes). When the remaining time hits zero, display blinking characters of your own design.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY