In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Rob, Using SXSim, you interrupt takes about 69 cycles. And it runs every 100 cycles. So the interrupt is using 69% of the clocks, that leaves 31% of the clocks for the foreground code. 31% of 50MHz = 15,500,00 Since your interrupt code doesn't use any of the __PARAMx variables, you would use alot less cycles is you used "INTERRUPT NOPRESERVE 500_000" Then your routine would only take 31 cycles of every 100. Leaving 69% for foreground code. 69% of 50MHz = 34,500,000 Bean ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=150806#m150823 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)