In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Bean, Your example works, but is very limited in cycles, so you can only have very small tasks. The context switch enables a subroutine to execute directly after the isr exits and before returning to the mainloop. The way it is set up, this subroutine can not be interrupted by another task, only by the isr, but the isr then never does a context switch. The task may take a considerable longer time than the isr allows. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=157842#m176169 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)