This post is being moved from the Completed Projects forum to the Propeller forum as it is off topic in the original forum which is for Completed Projects only. Please read the Forum Guidelines and post in the correct forum for the subject of your message.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage Parallax Engineering
There's a simple example near the bottom of this thread: http://forums.parallax.com/showthread.php?p=601870 in the posting dated 11/7/2006 10:38 PM. This shows how you can store values in the data that's to be copied to the new cog. It also shows how to pass an address in the PAR register which can be used with the RDxxxx and WRxxxx instructions. The PAR register can also be copied to another location and a constant added to it to get an address of a 2nd or 3rd value. Look at the source for the FullDuplexSerial object that's included with the Propeller Tool. It uses this technique to pass a series of values to the assembly portion of the object.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering