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

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
Later, if the
true only if
then the following line, “
stop, “
parameter, then clears the
after its value is used to stop the new cog, any future calls to
cogs that this object didn’t start.
This example can be improved by making the
in case the calling object called
PUB Start(Pos) : Pass
It’s important to note that the Parameter field is intended to pass a long address, so only 14-
bits (bits 2 through 15) are passed into the cog’s
Page 192 · Propeller Manual v1.0
'Start a new cog to run Update with Pos,
'return TRUE if successful
Stop
Pass := (Cog := cognew(@Update, Pos) + 1) > 0
Cog~ - 1
Cog
Stop
– Spin Language Reference
is non-zero. If true (i.e.: a cog was successfully started by the
”. The expression
method is called, it first checks the condition, “
cogstop(Cog~ - 1)
Cog
variable to zero (0). Because the
Start
Cog~ - 1
two times in a row. For example:
”, is executed and is passed the ID of the cog to
returns the result of
Start
PAR
register.
method call the
Stop
Cog
if Cog
will not inadvertently stop
variable is cleared to zero
Cog
Stop
”. This condition is
- 1 for the
method, first, just
Start
routine)
COGSTOP

Related parts for 122-32000