I think this example program (samples/blink_all_cogs.spin) is a nice and simple Propeller-specific demo that shows off its multicore capabilities.
However, I noticed that the P16/17 (on the P1) or P56/57 (on the P2) LEDs blink at the same rate. I believe the intended effect is to have all eight LEDs blink at different rates to visually demonstrate that they are independently controlled.
My suggestion would be to swap lines 28 and 29, so that delay gets decremented after a cog is launched in the loop. This will ensure the main cog blinks its LED at a different frequency than the second-to-last cog. This also lets the first cog blink its LED at a nice round 0.5 Hz.
I think this example program (
samples/blink_all_cogs.spin
) is a nice and simple Propeller-specific demo that shows off its multicore capabilities.However, I noticed that the P16/17 (on the P1) or P56/57 (on the P2) LEDs blink at the same rate. I believe the intended effect is to have all eight LEDs blink at different rates to visually demonstrate that they are independently controlled.
My suggestion would be to swap lines 28 and 29, so that
delay
gets decremented after a cog is launched in the loop. This will ensure the main cog blinks its LED at a different frequency than the second-to-last cog. This also lets the first cog blink its LED at a nice round 0.5 Hz.