Generate delay of exact 1 min and 2 min using assembly program8085

Status
Not open for further replies.

Thread Starter

Soma Hota

Joined Feb 9, 2018
2
Can someone please help me with this 8085 assembly language program - Have to generate a delay of 1 minute and 2 min(separate programs) and frequency is 3Mhz. Have to do it using 16bit reg pair and the delay must be exact 60sec and 120sec. Have to show the delay generation calculation as well.
What I have done so far is this (1 minute delay generation):

Delay:MVI D,00FFH 7 T states
L2:LXI B,0B9BH 10 T states
L1: DCX B 6 T states
MOV A,C 4 T states
ORA B 4 T states
JNZ L1 7/10 T states
DCR D 4 T states
JNZ L2 7/10 T states
RET 10 T states

Delay={(24*2971)+17}*0.33=0.02353sec
Now,I see this hint that 0.02353*255(FFh)=6.001sec and I want 60sec. I am not very good with assembly language as I am still learning but can someone please tell me what should I do here ? THANKS!!

PS- I have also found this link where maximum delay of 0.5 seconds is possible using the following program,if it helps.
https://books.google.co.in/books?id=QUOtjcwP0OUC&pg=PA240&lpg=PA240&dq=assembly+program+8085+large+delay+generation+help&source=bl&ots=51Mq7CQ_mb&sig=Vm0G7-RRiXqOjrq6WiG3vtMe9MM&hl=en&sa=X&ved=0ahUKEwiajJfzrJrZAhVKrY8KHebfAKIQ6AEIMjAC#v=onepage&q&f=false
 
Status
Not open for further replies.
Top