Code Language SPIN2

Control your loops like a champ

Introduction The Propeller 2 SPIN2 language has a new feature added in version 52 to extend the flexibility of the REPEAT loop control commands, NEXT and QUIT. Explainer Within REPEAT constructs, NEXT and QUIT are two special instructions which can…

P2 ADC

Uses P2 ADC smart pin mode to measure voltage on a pin.

Generate a clock with any SmartPin

Introduction The Propeller 2 can set any of it’s Smart IO pins to output a clock frequency without requiring any runtime resources. Think of Smart Pins as mini microcontroller cores, and every one of the 64 IO’s on the P2…

Floating point operators in SPIN2

Introduction The SPIN2 language has been extended from version 51 to include new Floating point operators. They can be used in CON blocks as well as regular code. For the latest version of the SPIN2 specification, visit the language reference…