??? 05/24/06 12:35 Read: times |
#117021 - I'm still looking! Responding to: ???'s previous message |
Arvind - how do you come up with the number of 3080 * 1027?
LOOPB takes 6 cycles each iteration. So for 512 iterations we get 3072 cycles just for the LOOPB overhead. LOOPB calls delayms 512 times so that becomes 512 * 1027 cycles. ADD them together you get 525824 + 3072 = 528896 = 0.5seconds approx. Or as I demonstrated earlier: LOOPB cycles/loop = 6 + 1027 for DELAYMS = 1033 per iteration. Times 512 iterations = 512 * 1033 = 528896 = 0.5seconds approx. So, unless I'm smoking illegal substances, I think I'm looking at it correctly. Thank goodness there's no log functions invovled! |
Topic | Author | Date |
wrong calculation of timer delay ... | 01/01/70 00:00 | |
Comments | 01/01/70 00:00 | |
Russel Sir ... have a look again pl | 01/01/70 00:00 | |
Yes I'm looking | 01/01/70 00:00 | |
Russell Sir ... once again have a look | 01/01/70 00:00 | |
I'm still looking! | 01/01/70 00:00 | |
Try this: | 01/01/70 00:00 | |
Sometimes a Calculator helps![]() | 01/01/70 00:00 |