In SX Microcontrollers, SX/B Compiler and SX-Key Tool, chiphead wrote: Keep in mind that anything over "seconds" is an eternity in time, at least for the microprocessor. Normally, you would not have a processor just "waiting" for that long, but it would often times either be doing something else, or waiting (looking) for "override" inputs. An alternative to the loops RS Jim mentioned, another way to do this is to set a variable to the current clock count + the number of ticks you need for your "delay" time. Then have a loop that does your other stuff, or checks for inputs, etc., and part of that loop does a compare to see if the count is >= your setting. If it is, do your thing, if not, repeat the loop. I'm not an expert by any means, but you may also be able to look at the "sleep" function. Is there a way you could externally trigger a "wake up call" (maybe a 555 timer). Another possibility is to incorporate a real time clock (RTC), and do a comparison based on the actual time. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=358866#m358946 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)