Code Language PASM

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…