Searching \ for '[SX] Beans TASKS RUN' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/ubicom/devices.htm?key=sx
Search entire site for: 'Beans TASKS RUN'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Beans TASKS RUN'
2009\06\22@171608 by Fred_5msn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Fred_5ms wrote:

Hi All
Beans TASKS R gr8.
Need a little help, with INTERRUPT RATE.
SXB\'TASK demo code.SXB(27) Line 27, Warning 2, Pass 1: INTERRUPT RATE WILL BE  "    1252.003"
-5ms?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=362103
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)

2009\06\22@172101 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Yeah, that is just a warning. The code will still compile and run properly.
It's just letting you know that the interrupt rate will not be EXACTLY what you specifed.

Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=362103#m362104
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)

2009\06\22@172849 by Fred_5msn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Fred_5ms wrote:

Hi Bean,
Thanks for your quick reply.
Please would you have a look at the code,
and maybe run it in SXSim.


Thanks for your time
-5ms?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=362103#m362106
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)

2009\06\23@045930 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

What am I supposed to be looking for ???
The TASKS are going to take FOREVER to run in the simulator because you are using 50MHz in the code and the simulator runs at a constant speed (very slow).

Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=362103#m362212
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)

2009\06\23@082824 by Fred_5msn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Fred_5ms wrote:

Hi Bean,
Thank you for having a look at the code.
The main thing is the Interrupt rate?,
what is a good Interrupt rate?,
how many instructions will I get in each Task at Interrupt rate of (#####)
is there a some, like TaskInstructions  = (Clock / InterruptRate) - (TicksbetweenTasks * 5) ?


As I posted it with  "SUB INTERRUPT InterruptRATE_0"  it is " (very slow)"
But change to       "SUB INTERRUPT InterruptRATE_9" and it's not so slow
2: call subs out of the Tasks,is this ok????
If you run the code in the SXSim as I posted, But change to SUB INTERRUPT InterruptRATE_9 then stop it then walk it
In the Status "Next instruction" you will see [red]PAGE _BeanBREAK[000][/red] coming up all the time,
but this sub is only called in one task, do I need to add a RETURN to the sub,
or is the task still running,
Thanks.
5ms.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=362103#m362243
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)

2009\06\23@111303 by peterverkaikn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote:

Tasks are not pre-emptive and so there is no fixed number of instructions per task.
If you specify an interrupt rate INTERRUPTRATE, and you use
TASKS RUN,nTICKS then there will be a tasktick every nTICKS/INTERRUPTRATE seconds.

Using TASKS SET,...
you define the rate at which a specific task is called.
This task suspends the mainloopcode until the task returns.
The task should therefore never block.
During task execution the interrupt remains running.

Ideally each task should return within 1 tasktick.
If you have N tasks, the tasks should run every N taskticks.
That way tasks do not overlap and each task will start on time.

You can call FUNCs and SUBs from a task.

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=362103#m362311
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)

More... (looser matching)
- Last day of these posts
- In 2009 , 2010 only
- Today
- New search...