Help with coginit2
Beginer
Posts: 21
Cloud you help me please with coginit command? More explain declaration for this command...
In main program I need call code, that must running (for short time) in second cog. Data from second program I will use in main program.
All is in one projekt and in asembler.
Thank You
Zdenek
In main program I need call code, that must running (for short time) in second cog. Data from second program I will use in main program.
All is in one projekt and in asembler.
Thank You
Zdenek
Comments
When you download the PropTool, it also downloads a number of other things. From the PropTool's Help command you will find the manual which describes the instructions. This is a good place to start for the coginit command.
Also, the FullDuplexSerial object will have been downloaded. This shows how to start pasm code (the fdx driver cog) and how it is used to pass data between cogs. In this case, it is between spin & pasm, but you will get the idea from this.
BTW It helps to post the code you are using (use the code box from "post reply" to keep the formatting).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Post Edited By Moderator (Bean (Hitt Consulting)) : 12/13/2009 3:12:32 PM GMT
Have a look here: Assembly step by step
Covers some basic assembly and the first step is to launch a cog with some assembly.
Graham
p.s. Will you change your profile name when you are an expert?
cognew takes automatically a free cog.
With coginit YOU have to take care wich cognumber you use
If this cog that you specified in the coginit-command is already in use
the coginit-command will stop this cog and start it new
if you ALWAYS use cogNEW you don't have to care about this problem
best regards
Stefan