Faster Data Output: Parameter passing between cogs
Jamesx
Posts: 132
I am using the FullDuplex object for outputting data at 230400 baud. Data starts in an assembly-cog (from an A/D chip). Currently this data is managed and processed by some spin code in both PC_Debug and FullDuplex, on its way to the assembly cog associated with FullDuplex. This all works great, but the spin part is slowing me down and some of the data is getting dropped.
My question is: how can parameters be passed between two cogs, each running assembly code, without using spin? Is there some trick with @@ or something like that?
Jim C
My question is: how can parameters be passed between two cogs, each running assembly code, without using spin? Is there some trick with @@ or something like that?
Jim C
Comments
main memory buffer, allocated at the spin level, and pass the address of this buffer to both
assembly language cogs that plan to communicate.
I've give it a go and see what shakes out.
Jim C