Microcontroller Propeller 1

How to pause in PASM

Introduction These code snippets put together some previous tips to demonstrate how to pause and toggle pins with PASM! The examples here are deliberately verbose and include comments to describe each line of code, but if you have any questions…

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…

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,…