Shop OBEX P1 Docs P2 Docs Learn Events
cog programs separately — Parallax Forums

cog programs separately

hi,
dear all,
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?

Comments

  • Heater.Heater. Posts: 21,230
    Yes of course. See COGINIT and COGNEW in the Propeller Manual.
  • Cluso99Cluso99 Posts: 18,069
    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.
  • Asanka,
    Look at Propeller Education Labs Fundamentals Pg 79 - I think it has the answers for your questions.
  • thanks you so much for ever ,its done.
  • JonnyMacJonnyMac Posts: 9,102
    edited 2018-10-27 15:23
    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.
Sign In or Register to comment.