Code Language SPIN

Implementing Abstract Data Structures with Spin Objects

Introduction Implementing user-defined data structures and multi-dimensional arrays in Spin is different than it is in C/C++, Java, Python, PHP and other high-level languages. With a few special considerations, Spin can do this for larger software projects requiring complex data…

Simultaneous pin group control

Introduction The Propeller native SPIN language includes many efficient instructions to solve common programming tasks. For example, how to switch a group of IO pins simultaneously with a single instruction ? Here’s an example using just two lines of code…

Handy Diagnostic Heartbeat

Introduction Each of the multicore Propeller 1’s eight processors (cogs) has two independent hardware counter modules. Each counter is a configurable state machine for sensing or generating repetitive signals, potentially on every clock cycle. The counter modules are flexible subsystems…

Keep any value in range

Introduction The Propeller native SPIN and SPIN2 languages include many efficient instructions to solve common programming tasks. For example, how to keep a value between a certain range of allowed values? Here’s an example using just one line of code!…