In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote: You are correct, what confused me was this paragraph: "Adding W to RTCC allows the interrupt service routine to restore the RTCC to the value it contained at the time the main program was interrupted. To use this feature, the interrupt service routine should check the RTCC at the beginning of the routine and again at the end of the routine, and then put the adjustment value into W before returning from the interrupt." But carefully rereading this, its clear what they are describing is an equal time execution within the main program regardless of the time spent in the ISR, but James is seeeking equal time between ISR calls, and since the RTCC doesn't stop, this is automatically taken care of. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=84910#m84991 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)