In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Peter, Yes, I see. The main problem is that you cannot use TASKS SET until after TASKS RUN appears in the listing. I don't want to postpone the TASKS RUN code until RETURNINT because that would make the TASKS jittery because the other interrupt code will most likely be a variable number of cycles. What I propose is a TASKS INIT, which will setup all the task variables but will not generate the task code. This will allow TASKS SET to be used after TASKS INIT. Later in the program when TASKS RUN is used, it will know not to define the variables again. I think that would solve the problem. Yes ? Let me know, if that would work I'll implement it. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=369104#m369110 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)