Cognew - Cogstop what am I doing wrong?
Laurent R
Posts: 27
New post bescause it's not really the same thread as precedent...
After calling the method to stop the cog I still receive the string on the serial terminal ...
Can someone tell me what I'm doing wrong???
thanks
Laurent
[code]
CON
_clkmode = xtal1 + pll16x ' use crystal x 16
_xinfreq = 5_000_000
OBJ
ser : "Extended_FDSerial" 'For debug and serial com
Var
Byte CogAlarm 'Num
After calling the method to stop the cog I still receive the string on the serial terminal ...
Can someone tell me what I'm doing wrong???
thanks
Laurent
[code]
CON
_clkmode = xtal1 + pll16x ' use crystal x 16
_xinfreq = 5_000_000
OBJ
ser : "Extended_FDSerial" 'For debug and serial com
Var
Byte CogAlarm 'Num
Comments
Thanks
Laurent
I resolved that problem by using stop cog in the main object...
But that's a better solution
Laurent