Propeller Cog and Hub timings
russ christensen
Posts: 84
I have a question.· I wish I could have asked this to Jeff during the webinar the other day.· Is the wait to access hub ram increased as you use more cogs?· Ex. I am using 1 cog, and the prop knows this so it lets me have hub access whenever needed, or is it more like Ex2. I'm only using one cog, but it has to allow the other cogs to access it regardeless?· That being said, in some cases would it be more efficient to have everything in one cog if splitting it into two cogs just because you can, not for the speed increase, if both cogs are extremely hubram intensive?
Russ
Russ
Comments
Think of it as an eight spoke rotating wheel, where only the first spoke leads to the hub - whichever cog the "hub" spoke is pointed to gets to do a read or write to the hub.
The wheel makes a complete circuit in 16 cycles, and hub operations themselves take 7 cycles.
If you catch the wheel at the right time (every 16 cycles, or multiple thereof), you can execute a hub operation (read/write) and two normal ops before the next hub window.
Hope this helps,
Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers
Russ