running textmessages.spin and anotherblink.spin in separate cogs
nhaven
Posts: 4
When I try to run the Textmessages object (from the propeller library) and AnotherBlinker (from the Methods and Cogs download) in separate cogs, only the first one works. What am I doing wrong? By the way, I am using the demo board and I changed AnotherBlinker to access LED 16. Both objects work fine when run separately. I'm using hyperterminal to check the text messages.
Here is my main program:
'run_test
CON
···_clkmode = xtal1 + pll16x
·· _xinfreq = 5_000_000
VAR
· long· stack[noparse][[/noparse]9], stack2[noparse][[/noparse]9]
OBJ
· ab : "anotherblinker"
· txmsgs : "testmessages"
PUB start
· cognew((ab.blink ), @stack)
· waitcnt(clkfreq*3 + cnt)
· cognew((txmsgs.testdatmessages ), @stack2)
I posted earlier with another example, but perhaps this one is clearer. Thanks
Post Edited (nhaven) : 5/19/2007 6:47:32 PM GMT
Here is my main program:
'run_test
CON
···_clkmode = xtal1 + pll16x
·· _xinfreq = 5_000_000
VAR
· long· stack[noparse][[/noparse]9], stack2[noparse][[/noparse]9]
OBJ
· ab : "anotherblinker"
· txmsgs : "testmessages"
PUB start
· cognew((ab.blink ), @stack)
· waitcnt(clkfreq*3 + cnt)
· cognew((txmsgs.testdatmessages ), @stack2)
I posted earlier with another example, but perhaps this one is clearer. Thanks
Post Edited (nhaven) : 5/19/2007 6:47:32 PM GMT