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

Discussion in 'Programmer's Corner' started by Soma Hota, Feb 9, 2018.

Thread Status:
Not open for further replies.
  1. Soma Hota

    Thread Starter New Member

    Feb 9, 2018
    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

    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.
  2. MrChips


    Oct 2, 2009
    One thread is enough.

    Continue here.
Thread Status:
Not open for further replies.