In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Okay by experiments here is what is works out to be: If the prescaler is 1:8 or higher, the instruction that modifes RTCC is one count. If the presclaer is 1:1, the instruction that modifies RTCC is three counts. If the prescaler is 1:2 or 1:4, the instruction that modifes RTCC is five counts. Seems weird, but that is how it works in my experiments. What I did was get the interrupt rate to be the same when I modifed RTCC and when I didn't. If the resulting rate was the same, the calculation must be correct. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=249607#m249815 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)