Shop OBEX P1 Docs P2 Docs Learn Events
Need to run parallel cogs — Parallax Forums

Need to run parallel cogs

CaliforniaKidsCaliforniaKids Posts: 2
edited 2011-02-14 13:34 in Propeller 1
I would like to dedicate 1 cog to monitoring inputs and doing some calculations. I'd like a second cog to si there running an output waveform. When an input has changed and the new caluclations are complete, I would like the first cog to update the waveform that the second cog is running. Can I do this with the Propeller chip? Thanks!

Comments

  • John AbshierJohn Abshier Posts: 1,116
    edited 2011-02-14 13:34
    Yes. Have the cog monitoring the inputs update a variable in Hub memory. Have the second cog monitor that variable and change waveform as required.

    John Abshier
Sign In or Register to comment.