In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: If you want times that long, you will need to use a much coarser resolution for the interrupt, or get into 32 bit counters (two words). At 10us, a max counter value of $FFFF would only be .655 seconds -- pretty long for an RC circuit but not long enough for your purposes. You may want to try dropping the whole thing with a divider to slow down the RC counter, e.g. INC rcDivider IF rcDivider >= 100 THEN rcDivider = 0 INC rcCounter ENDIF That would effecticly scale the count up by 100, so you'd have a max time count of around 65.5 seconds. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=438115#m438965 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)