Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Thu May 12, 2005 11:16 am
No timers are used by the delay-functions. Timing is based on the number of instructions in a for-next-loop. The exact number of instructions in the loop is determined at compile time and depends on the clock frequency you specified in the #delay statement.
DragonPIC
Joined: 11 Nov 2003 Posts: 118
Posted: Thu May 12, 2005 11:29 am
Yep, no OS or anything with this compiler. Just counting instruction cycles. _________________ -Matt
valemike Guest
Posted: Thu May 12, 2005 1:26 pm
Furthermore, since they are 'software' time delays, then if you want to delay_ms(5), you are guaranteed at least 5 ms of delay. If interrupts hit and you service them, then this adds on to your 5 ms. That's why i say "at least"
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum