Time := CNT Issues
bbaker
Posts: 16
I star a new COG, PUB XXXXX | Time
Time := CNT
Waitcnt (time += 100_000)
(ADDITIONAL CODE)
This WORKS
Then I start a new COG, PUB ZZZZZZZ | Time
Time := CNT
Waitcnt (Time += 100_000)
(ADDITIONAL CODE)
This does not work
SO I changed the varible Time to TimeA....
PUB ZZZZZZZ | TimeA
Time := CNT
Waitcnt (Time += 100_000)
(ADDITIONAL CODE)
This did not Work
So for testing a qiut using the TimeA and just...
Waitcnt (100_000 +cnt)
This Works....BUT
The first COG Time quit working. I can't get it to work at all. I have even deleted the code from the second COG and Rem the code to start the second COG
I have had this problem sever times before.
Anyone have any ideas what I am doing wrong
Thanks
Time := CNT
Waitcnt (time += 100_000)
(ADDITIONAL CODE)
This WORKS
Then I start a new COG, PUB ZZZZZZZ | Time
Time := CNT
Waitcnt (Time += 100_000)
(ADDITIONAL CODE)
This does not work
SO I changed the varible Time to TimeA....
PUB ZZZZZZZ | TimeA
Time := CNT
Waitcnt (Time += 100_000)
(ADDITIONAL CODE)
This did not Work
So for testing a qiut using the TimeA and just...
Waitcnt (100_000 +cnt)
This Works....BUT
The first COG Time quit working. I can't get it to work at all. I have even deleted the code from the second COG and Rem the code to start the second COG
I have had this problem sever times before.
Anyone have any ideas what I am doing wrong
Thanks
Comments
Try adding an if test to compare the TIME variable with the CNT. -Chuck-
Shouldn't that be:
??
I agree with Bean 100_000 is short - just over 1ms.· Try using "+= clkfreq/2" for 500ms
J
Post Edited (Javalin) : 3/18/2008 1:21:35 PM GMT