122-32000 Parallax Inc, 122-32000 Datasheet - Page 193

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
COGSTOP
Stop cog by its ID.
((PUB ┆ PRI))
Explanation
COGSTOP
dormant state, the cog ceases to receive System Clock pulses so that power consumption is
greatly reduced.
To stop a cog, issue the
VAR
PUB Start(Pos) : Pass
PUB Stop
This example, from the
the cog that was previously started by the
information about this example.
COGSTOP
byte Cog
'Start a new cog to run Update with Pos,
'return TRUE if successful
Pass := (Cog := cognew(@Update, Pos) + 1) > 0
'Stop the cog we started earlier, if any.
if Cog
cogstop(Cog~ - 1)
CogID
stops a cog whose ID is CogID and places that cog into a dormant state. In the
(CogID )
is the ID (0 – 7) of the cog to stop.
'Used to store ID of newly started cog
COGSTOP
COGNEW
command with the ID of the cog to stop. For example:
description, uses
4: Spin Language Reference –
Start
COGSTOP
method. See
in the public
Propeller Manual v1.0 · Page 193
COGNEW
, page 189, for more
Stop
method to stop

Related parts for 122-32000