??? 04/21/10 07:48 Read: times |
#175203 - Delay routine |
Hi again.
I have a delay routine, that gives my program a delay for 0,2 seconds. DELAY: MOV R6,#0C3h DELAY1: MOV R7,#0FFh DELAY2: NOP NOP DJNZ R7,DELAY2 DJNZ R6,DELAY1 I want to have it in a separate .a51 file so i can add it in any project i want. My main programs usually start with CSEG AT 0 What should be the beginning command in my delay routine so it can be called by my main program correctly???? Also how can i calculate the time of a delay routine? Where can i find the machine cycles of each command? |
Topic | Author | Date |
Delay routine | 01/01/70 00:00 | |
Not *generally* true! | 01/01/70 00:00 | |
Andy, did you mean | 01/01/70 00:00 | |
Something like that! | 01/01/70 00:00 | |
Busy loops sometimes ok | 01/01/70 00:00 |