Code Language SPIN

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…

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…