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

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
Example:
CON
—or—
CON
Both of these examples create a symbol called
Baud
the
The above statement results in
the code easier to understand if the resulting number were not just an arbitrary value.
The
example below shows how to set the Clock Mode to low-speed crystal, the Clock PLL to 8x,
and specify that the XIN pin frequency is 4 MHz.
CON
See
Floating-point values can also be defined as constants.
numbers (with fractional components) and are encoded within 32 bits differently than integer
constants. To specify a floating-point constant, you must give a clear indication that the
value is a floating-point value; the expression must either be a single floating-point value or
be made up entirely of floating-point values (no integers).
Floating-point values must be written as:
Delay = 500
Baud = 9600
AChar = "A"
Delay = 500, Baud = 9600, AChar = "A"
Delay = 250 * 2
_CLKMODE = XTAL1 + PLL8X
_XINFREQ = 4_000_000
Delay
1) decimal digits followed by a decimal point and at least one more decimal digit,
2) decimal digits followed by “e” (for exponent) and an integer exponent value, or,
3) a combination of 1 and 2.
_CLKMODE
CON
that is equal to 9600, and a symbol called
block is also used for specifying global settings, such as system clock settings. The
declaration, for example, we could also have used an algebraic expression, such as:
, page 180, and
_XINFREQ
Delay
equaling 500, like before, but the expression may make
, page 337, for detailed descriptions of these settings.
4: Spin Language Reference –
AChar
Delay
that is equal to the character “A”. For
that is equal to 500, a symbol called
Floating-point values are real
Propeller Manual v1.0 · Page 195

Related parts for 122-32000