In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Peter Van der Zee wrote: Hi Dan; When dealing with interrupts, and NOT directly messing with the RTCC, it takes 3 cycles to get in, and 3 cycles to get out. Under those circumstances, never have I experienced any cycles lost "in the confusion". That said, when the RTCC is directly accessed by a write, or a read-modify-write, (but not with a mov w,RTCC) then several (three as I recall) cycles are not counted in the RTCC. No confusion here. As stated previously this is without the use of a pre-scaler. Bean's discoveries are quite interesting, and I'll have to make some tests on that so that I can fully appreciate his comments. There is some confusion as to what the IDE indicates as the value of RTCC while in interrupt in DEBUG. I believe the count is out by one. Cheers, Peter (pjv) ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=249607#m250069 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)