You are on page 1of 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