Hi! I have a simple delay routine listed below. Now I want to calculate its exact value in microseconds (uS).
I have many DELAY CODE GENERATORS & PICLOOPS software’s I DON'T want to use them I want to calculate in real life.
20h, 21h are GP registers loaded as 00h
Here is my calculation Tell me am I right
I have many DELAY CODE GENERATORS & PICLOOPS software’s I DON'T want to use them I want to calculate in real life.
20h, 21h are GP registers loaded as 00h
Code:
Delay decfsz 20h,F
goto Delay
decfsz 21h,F
goto Delay
return
Here is my calculation Tell me am I right
Code:
[{(1+2) * 255} + 2] * [{(1+2) * 255}] + 2 + 2
[765 + 2] * [765] + 4
586759 cycles = uS
0.586 Seconds