COGNEW has an unexpected 52 seconds delay to start?
courtens
Posts: 101
in Propeller 1
I am not sure if this is related, but I was using PropellerIDE to code in spin -- now I am using Notepad++ and use PropellerIDE only to flash the chip.
After doing some coding I discovered that the new program delays a particular cog start by 52 seconds. Just about what the clock cycle takes. This is how I call for the cog to start:
What could prevent a cog from starting right away? There is noting in the way that would influence this in may code. It is one of the cogs I load at the very beginning.
After doing some coding I discovered that the new program delays a particular cog start by 52 seconds. Just about what the clock cycle takes. This is how I call for the cog to start:
cognew (cog_laser, @stack_laser)
What could prevent a cog from starting right away? There is noting in the way that would influence this in may code. It is one of the cogs I load at the very beginning.
Comments
If you post you code one of us will find your bug.
The worst case is "the cog finally start" (which in may case is what I want!)
I have code breaking due to tab = 8 spaces. Now I am cleaning up my code...
I have corrected my error - need more coffee
2^32 / 16*5,000,000 = 4,294,967,296 / 80,000,000 = 53.687... presuming 5MHz