In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Something is not right. If I use (current way) INTERRUPT 115200 TASKS RUN 3,10 '3 taskslots, tasktick = 10/115200 seconds RETURNINT then I get a compilation error. TASKS RUN does not accept 2 arguments If I use INTERRUPT 115200 TASKS INIT,3 '3 taskslots, if 3 omitted then 5 taskslots goto IsrStart ' IsrStart: TASKS RUN 3,10 RETURNINT then I get a compilation error If I use INTERRUPT 115200 TASKS INIT,3 '3 taskslots, if 3 omitted then 5 taskslots goto IsrStart ' IsrStart: TASKS RUN 10 'tasktick = 10/INTERRUPTRATE seconds RETURNINT then it is alright So, if TASKS INIT is not used, TASKS RUN must take 1 or 2 arguments (tasktick) or (taskslots,tasktick). If TASKS INIT is used, TASKS RUN must take 1 argument (tasktick) Also, using TASKS INIT,3,10 does NOT give error regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=369104#m369129 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)