Using multiple cogs - not working for me ??? what am I doing wrong ?
tj4shee
Posts: 25
First off, I am new to the whole Propeller chip.... just bought my first board tonight at Radio Shack (paid too much for it.... $39 at RS, $25 on this site - please don't take this as a lack of intelligence on my part ) )
So, I am sitting here playing with the P8X32A QuickStart - QuickStart 5: Multiple Cogs (http://www.parallaxsemiconductor.com/quickstart5)
In this example, each of 3 Cogs are started.... each with different parameters.....
So how come the 3 leds 'twinkle' at the same rate ????? I would expect each of them to be blinking at 3 different rates. So what am I missing ?? I pretty much cut/paste'd the example from the web page.
Thanks, TJ
So, I am sitting here playing with the P8X32A QuickStart - QuickStart 5: Multiple Cogs (http://www.parallaxsemiconductor.com/quickstart5)
In this example, each of 3 Cogs are started.... each with different parameters.....
cognew(Twinkle(16,clkfreq/50), @stack[0]) 'start Twinkle cog 1 cognew(Twinkle(19,clkfreq/150), @stack[30]) 'start Twinkle cog 2 cognew(Twinkle(22,clkfreq/100), @stack[60]) 'start Twinkle cog 3
So how come the 3 leds 'twinkle' at the same rate ????? I would expect each of them to be blinking at 3 different rates. So what am I missing ?? I pretty much cut/paste'd the example from the web page.
Thanks, TJ