In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Rsadeika wrote: Chris, Your presunption is absolutely correct, the interrupt occurs, it does its thing, then it comes back to the main code and executes the next line of code. I believe the definition of an interrupt is that all other processing stops, the interrupt code runs, and then it comes back to full processing and executing the next line of main code. The interrupt is a very powerfull tool, but takes some time and learning before you can really use it in a pwerfull way. I am in the same situation as you, I would like to code within SX/B, but as you probably have noticed, all the experts use asm. But, if we keep asking the questions in terms of SX/B, maybe somewhere along the line we will have a break through, and get a response like ... and here is the SX/B version of the asm example. Ray ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=104114#m104195 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)