Shop OBEX P1 Docs P2 Docs Learn Events
How to start at the same time the two processors in code about propeller chip? — Parallax Forums

How to start at the same time the two processors in code about propeller chip?

rain2010jobrain2010job Posts: 1
edited 2012-12-20 16:54 in Propeller 1
{{Output.spin
Toggle two pins, one after another simultaneously.}}
VAR
long Stack[9]
PUB Main
cognew( Toggle(16, 3_000_000, 10), @Stack)
Toggle(17, 2_000_000, 20)
PUB Toggle(Pin, Delay, Count)
dira[Pin]~~
repeat Count
!outa[Pin]
waitcnt(Delay + cnt)

hello everyone!
I come from China .Our company have bought Propeller Demo boards. I encountered some i issues that how to use c code instead of spin code in SimpleIDE ? In addition to,I want to start two COG simultaneously in c code.Please you an example to illustrate.
Thank you for your help! I look forward to your reply !
Sign In or Register to comment.