122-32000 Parallax Inc, 122-32000 Datasheet - Page 118
122-32000
Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
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
- Current page: 118 of 438
- Download datasheet (5Mb)
{{ Output.spin }}
VAR
PUB Start(Pin, Delay, Count): Success
{{Start new blinking process in new cog; return TRUE if successful}}
PUB Stop
{{Stop toggling process, if any.}}
PUB Active: YesNo
{{Return TRUE if process is active, FALSE otherwise.}}
PUB Toggle(Pin, Delay, Count)
{{Toggle Pin, Count times with Delay clock cycles in between.}}
Page 118 · Propeller Manual v1.0
long Stack[9]
byte Cog
Stop
Success := (Cog := cognew(Toggle(Pin, Delay, Count), @Stack) + 1)
if Cog
YesNo := Cog > 0
If Count = 0, toggle Pin forever.}}
dira[Pin]~~
repeat Count
repeat
while Count := --Count #> -1
Cog~
cogstop(Cog~ - 1)
!outa[Pin]
waitcnt(Delay + cnt)
'Stack space for new cog
'Hold ID of cog in use, if any
'Set I/O pin to output…
'Repeat for Count iterations
'Repeat the following
' Toggle I/O Pin
' Wait for Delay cycles
'While not 0 (make min -1)
'Clear Cog ID variable
Related parts for 122-32000
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
MANUAL FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT SMART SENSORS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
LEAD WIRES FLYING CABLE III/IV
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
BOARD ADAPTER AND FLY LEADS
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
PLATFORM CABLE USB II
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
KIT STARTER COOLRUNNER-II BUNDLE
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: