Programming the Propeller Demo Board
Hello All,
I am in need to know how to program the propeller to do simple arithmetic between multiple cogs and report it back to a master cog. It starts with the master cog sending out a set of numbers, then (at least two) cogs would do some simple math (cog 2 would do addition of the numbers then divide by 3; cog 3 would subract the numbers than multiply by 3) then report the answers back to the master cog. The master cog would then take the average of the two reported answers from cog 2 and cog 3. Any help with programming this would be superb. Thanks in advance.
I am in need to know how to program the propeller to do simple arithmetic between multiple cogs and report it back to a master cog. It starts with the master cog sending out a set of numbers, then (at least two) cogs would do some simple math (cog 2 would do addition of the numbers then divide by 3; cog 3 would subract the numbers than multiply by 3) then report the answers back to the master cog. The master cog would then take the average of the two reported answers from cog 2 and cog 3. Any help with programming this would be superb. Thanks in advance.
Comments
You will need to use the hub memory to pass data between the cogs.
I think you will find the forum is full of helpful people who will gladly help when someone is stuck - but won't solve homework problems for students.
Although I am new to the propeller chip software and Spin, I am not looking for a given solution, but I am looking for any information needed to complete my project. I will definitely look in to the Hub memory information. Thanks for the insight.