??? 06/23/05 12:46 Modified: 06/23/05 12:48 Read: times |
#95712 - Delay Responding to: ???'s previous message |
I don't think that putting another label LOOP1, like Jan did, is a good solution. First, it is unnecessary, because coming out from DJNZ R1,LOOP, R1 is already 0. But more important, without the LOOP1 label, the delay can be "fine tuned":
MOV R0,#CYCLES MOV R1,#FINE LOOP: DJNZ R1,LOOP DJNZ R0,LOOP The delay is now shortened by FINE number of 256th parts of CYCLES, because the reduced number in R1 appears only first time. After, it gets the full count. Slobodan |
Topic | Author | Date |
How to use marco in assembly? | 01/01/70 00:00 | |
first you must spell it macro :) | 01/01/70 00:00 | |
first you must spell it macro :) | 01/01/70 00:00 | |
Not So Fast! | 01/01/70 00:00 | |
Macro Correction | 01/01/70 00:00 | |
improvement | 01/01/70 00:00 | |
to be more precise | 01/01/70 00:00 | |
Delay | 01/01/70 00:00 | |
I did not say... | 01/01/70 00:00 | |
Macros Defined | 01/01/70 00:00 | |
Macro vs Call | 01/01/70 00:00 | |
Macro Correction | 01/01/70 00:00 | |
Polo!![]() | 01/01/70 00:00 |