In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Chong wrote: I'm guessing Nate and Paul are referring to Peter Van der Zee's RTOS. Unfortunately I haven't developed the brainpower to really understand his code. However I think I've come to some sort of understanding. Am I to understand that I should be ok using JMP to exit the ISR to go to whatever part in the main as long as I don't care about the initial state of PC, FSR, STATUS, or W just before interruption? It appears to me that Peter has gone through some trouble to keep the chain of threads resumable after servicing sequential interrupts. My program needs are actually pretty simpleminded. I'm not concerned with the resumption of tasks after interruption. I'm actually using the ISR as a quick and dirty way of monitoring a parallel data line through polling while allowing for two interrupt conditions to abandon the data line monitoring and immediately jump to code loops. I tried to do the job by planting code to poll for my interrupt condition, but it got pretty messy having to stick the poll commands into each wait loop in my main. I'll give it a go and see what kind of mess I make as usual. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=103601#m103785 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)