In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Electronic, I'm assuming that the up/down buttons cause interrupts ? Why can't you check the time constants in the interrupt before returning ? Usually the interrupt is used to generate the pulses, and the main code handles the user interface. But maybe you have good reason to do it the way you are ? If you could post your code it would make it easier to assist you without having to guess. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=162350#m162351 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)