Microcontroller Propeller 1

Tilde manipulation of the DIRA and OUTA registers

Introduction The Propeller Spin language uses the single-tilde and double-tilde suffixes for compact single-bit manipulation on the DIRA and OUTA registers. These are single-bit assignment operations that work only for the DIRA and OUTA registers and are an extremely concise…

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…