Equip your Genius
Welcome to the Parallax Discussion Forums, sign-up to participate.
Learn with BlocklyProp
cog programs separately
2018-10-08 - 03:51:32
can we have program cog separately ? i mean if we need run 3 timers simultaneously and get out put how can do it?
other one is can enplane anyone how to run cog separately?
2018-10-08 - 08:15:23
Yes of course. See COGINIT and COGNEW in the Propeller Manual.
2018-10-08 - 08:39:48
Depending on what you are trying to do, one cog could run a large number of timers. Different cogs can run the same or different programs.
For help though, you need to explain precisely what you want to do.
My Prop boards:
(also see Sphinx, PropDos, PropCmd, Spinix)
Prop Tools (Index)
2018-10-08 - 13:27:43
Look at Propeller Education Labs Fundamentals Pg 79 - I think it has the answers for your questions.
2018-10-27 - 03:58:52
thanks you so much for ever ,its done.
2018-10-27 - 15:19:33
edited 2018-10-27 - 15:23:52
I had a situation with a commercial laser-tag project where I needed a bunch of timers but had no more cogs left in which to run them. Since timers have to be checked, anyway, I used the delta between checks of the system CNT register. the object is time-oriented, so I also added methods for basic, inline delays. This is just another tool for your bag of tricks. Code attached.
-- please do not call me Jonny.