122-32000 Parallax Inc, 122-32000 Datasheet - Page 135
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: 135 of 438
- Download datasheet (5Mb)
3: Propeller Programming Tutorial
We modified the
and
methods by changing the
parameter to
,
Start
Toggle
Delay
DelayMS
meaning “delay in units of milliseconds.” Then we modified the
… statement such
waitcnt
that instead of waiting a fixed number of clock cycles, it calculates the number of clock
cycles that there are in
milliseconds of time.
is a command that returns the
DelayMS
CLKFREQ
current System Clock frequency in Hertz (cycles per second). Its value is set by the Propeller
Tool at compile time and also by the
command at run time; see
on page 183.
CLKSET
CLKSET
There are 1,000 milliseconds per second and
is the number of clock cycles per
CLKFREQ
second, so
is the number of clock cycles in
milliseconds
clkfreq / 1000 * DelayMS
DelayMS
of time.
With this modification, regardless of the application’s start-up frequency, or how often the
application changes the frequency during run time, the Output object will recalculate the
proper delay each time through its loop.
Now, of course, we need to modify our Blinker2 object to adjust the
parameters
DelayMS
appropriately. Enter the code modifications shown in the listing on page 136. Note that we
entered the
and
settings just as we had left them from the last exercise.
_CLKMODE
_XINFREQ
Propeller Manual v1.0 · Page 135
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: