Search Results for RC

How to choose between VAR and DAT

Introduction Both VAR and DAT blocks can be used to define global variables… So what is the difference ? A DAT variable will be global to all instances of the object that defines it. In other words, there’s only one…

WAITPEQ and WAITPNE with PASM

Introduction WAITPEQ and WAITPNE are two complimentary commands that pause execution in a cog until I/O pin(s) meet designated state(s). WAITPEQ (WAIT until Pins EQual) pauses the cog until pin/s match, WAITPNE (WAIT until Pins Not Equal) pauses the cog…

IO pin manipulation using PASM

Introduction One of the most useful features of the Propeller chip is its high number of I/O pins coupled with its eight coprocessors called cogs. After boot up each of the Propeller’s 32 pins can be programmed to act as…

Floating point operators in SPIN2

Introduction The SPIN2 language has been extended from version 51 to include new Floating point operators. They can be used in CON blocks as well as regular code. For the latest version of the SPIN2 specification, visit the language reference…

64/96/128-Bit Unsigned Integer Math

Introduction The Propeller 2 can use these libraries to handle 64/96/128-Bit Unsigned Integer Math! For the latest version of the full library, visit our OBEX link in resources! Methods These methods are included in 64, 96 and 128 bit versions!…

Control IO pins from any cog

Introduction The Propeller 1 has 32 I/O pins and 8 processor cores, known as cogs, that allow true real-time parallel processing. The I/O pins are available to all 8 cogs (cores). So how do you control them in each cog,…

VAR

Designator: Declare a Variable Block. VAR  Size Symbol < [Count ] > < Size Symbol < [Count ] >>… VAR  Size Symbol < [Count ] > < , Symbol < [Count ] >>… Explanation VAR is the Variable Block declaration. The Variable Block is a section of source code that declares global variable symbols. This is…

Blocks

Each Propeller object is a Spin file that has an inherent structure consisting of up to six different special-purpose blocks: CON, VAR, OBJ, PUB, PRI, and DAT. Valid Keywords These blocks are shown below (in the order that they typically appear in objects) along with the…