Hi
I didnt understand how to compute time delays ill give an example ( I got this example from the internet
DELAY: MOV R2,#255
HERE: NOP
NOP
NOP
NOP
DJNZ R2,HERE
RET
the time delay inside the HERE loop is 255(1+1+1+1+2)] x 1.085 us = 1660.05 us I mean why dont we do 1+1+1+1+2 *1.085 why do we have to multiply it by 255
also why is the time delay outside the loop [1660.05 us+1+1)]x1.085 and not just 1+1*1.085
I didnt understand how to compute time delays ill give an example ( I got this example from the internet
DELAY: MOV R2,#255
HERE: NOP
NOP
NOP
NOP
DJNZ R2,HERE
RET
the time delay inside the HERE loop is 255(1+1+1+1+2)] x 1.085 us = 1660.05 us I mean why dont we do 1+1+1+1+2 *1.085 why do we have to multiply it by 255
also why is the time delay outside the loop [1660.05 us+1+1)]x1.085 and not just 1+1*1.085