In SX Microcontrollers, SX/B Compiler and SX-Key Tool, mojorizing wrote: Hi Kurt, In each of your examples (9600 and 19200) you have two working programs that you have tried to make them VP's in the ISR. One prog. to send and rec'v, the other to blink an led. Both programs would work correctly with the variables set for one "thread". The problem is you've tried to integrate the 2 VP's with this code at the beginning of the ISR. [code]interrupt bank isrMultiplex inc isrmulti mov w,isrmulti jmp pc+w jmp isrthread1 jmp isrthread2 [/code] and then tweaking the timing with corrections to your rx_divide variable for the start delay ( your comments reflect this--"48 if only one thread"). Refer to some of the examples [url]http://www.parallax.com/sx/downloads.asp[/url] on using two VP's. There are a few examples of 2 VP's running simultaneously. Then check out Peter's RTOS example at [url]http://www.parallax.com/sx/contest/contest_rtos.asp[/url]. I think this would be a good solution to your problem of integrating two working programs into one ISR. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=104461#m104511 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)