In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Tony Leyland wrote: Hi, I've been working on utilising 2 or more VPs. I've read the Scenix PDF on VP methodology and understand the principles of multitasking (as shown below) inc isrMultiplex mov w,isrMultiplex jmp pc+w jmp isrThread1 jmp isrThread2 jmp isrThread3 etc etc isrThread1: ; VP 1 code here jmp isrOut ;----------------------------- isrThread2: ; VP 2 code here jmp isrOut ;----------------------------- isrThread3: ; VP 3 code here mov isrMultiplex,#255 jmp isrOut ;----------------------------- isrOut: mov w,#-int_period retiw I understand how to have one VP running at 9600 (for a UART say) and having another VP running at 2,4,8 or 1/2,1/4,1/8 of the 9600 rate like this: jmp pc+w jmp isrThread1 jmp isrThread2 jmp isrThread1 jmp isrThread3 jmp isrThread1 jmp isrThread4 Does anybody know of a way to have 2 VPs running. One at other frequencies that are not multiples/divisions of the 9600 rate (100Khz say for example) and another VP running at the 9600 rate ? Thanks in advance Tony ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=95480 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)