In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: If I remember right your clock was 4MHz and the Prescaler was 1:128 so 4,000,000Hz(clock) / 128(prescaler) = 31250Hz(RTCC clock) / 250(returnint value) = 125 interrupts per second. You had 4,000,000Hz(clock) / 128(prescaler) = 31250Hz(RTCC clock) / 156(returnint value) = 200.3205 interrupts per second The easiest way to count ISR cycles is to let SXSim do it for you. But with ReturnInt = 250 and prescaler = 128, your ISR can take up to 32000 cycles (okay a little less) without problems. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=121632#m121686 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)