In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: I got Reschedule working. I simulated it using a javelin. See the attached text files for timing tables. The timing tables show: If N tasks are running, the minimal interval time should be N. If all tasks have identical interval time, they should have different start delays We could define a TASK to take 2 constant parameters: startup delay and interval eg. myTask TASK 3,10 Bean, you mentioned start/stop a task. In my test program I support 8 running tasks, but since the taskId are loaded into ram, we could define more tasks, but only 8 can run simultaneously. A few bits of the taskId could serve as flags (status,suspend,dataready) which the mainloopcode can test. Lets say 3 flags (b7-b5), then there still can be 32 tasks. Since the arrays must be preloaded by the compiler, I think the task parameters are best stored as data, using iread to preload the arrays. 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#m176093 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)