Cog memory use
gregmazarakis
Posts: 15
in Propeller 1
I am trying to make an output (P0) blinking using an new cog in my program.
If I put everything in one Cog the program works fine but as I define a new cog there is nothing that happens at the output.
Output 1 is just an additional signal to drive the direction of my stepping motor. This part of the program has been taken out of the Blinker cog.
Can anyone give me some feedback please
If I put everything in one Cog the program works fine but as I define a new cog there is nothing that happens at the output.
Output 1 is just an additional signal to drive the direction of my stepping motor. This part of the program has been taken out of the Blinker cog.
Can anyone give me some feedback please
Comments
Go will repeat without Blinker telling it to, since it's in a different cog and is in a repeat.
Apparently this does not work by declaring the variable global in the VAR section but I wil test it to see if it works as a local variable of the main cog.
I went way back to the "Propeller Education Kit labs:fundamentals" under the section methods and cogs lab. This starts with a very simple program called "CallBlink.spin. This does not work either and is even not calling a cog.
Is there something wrong with my processors??
I've attached a modified version. I have no way to test this at work, so I can't guarantee that it compiles correctly, but it should convey the idea.
This really helped me to get on with the propeller.