0% found this document useful (0 votes)
127 views1 page

One Second Delay Subroutine. The Program Is To Be Based On Software Timing Loops and It Will

This document describes an 8051 assembly language program that causes a timed delay between 1 to 255 seconds. The program uses nested subroutines, including a 1 millisecond delay subroutine and a 1 second delay subroutine, to achieve the timed delay. The program relies on software timing loops rather than hardware timers, and it shows all timing calculations and assumptions based on the 8051's 1 microsecond instruction cycle time.

Uploaded by

Hamid Farhan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views1 page

One Second Delay Subroutine. The Program Is To Be Based On Software Timing Loops and It Will

This document describes an 8051 assembly language program that causes a timed delay between 1 to 255 seconds. The program uses nested subroutines, including a 1 millisecond delay subroutine and a 1 second delay subroutine, to achieve the timed delay. The program relies on software timing loops rather than hardware timers, and it shows all timing calculations and assumptions based on the 8051's 1 microsecond instruction cycle time.

Uploaded by

Hamid Farhan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Q2 Write an 8051 assembly language program which will cause a timed program delay of n seconds, where n can have

a value between 1 and 255. The program design is to be based on the use of nested subroutines which will include a one milli-second delay subroutine and a one second delay subroutine. The program is to be based on software timing loops and it will not employ hardware timers. Show all timing calculations and assumptions. Assume that the basic instruction cycle time for the 8051 is 1 microsecond.

You might also like