Code Language SPIN2

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…

64/96/128-Bit Unsigned Integer Math

Introduction The Propeller 2 can use these libraries to handle 64/96/128-Bit Unsigned Integer Math! For the latest version of the full library, visit our OBEX link in resources! Methods These methods are included in 64, 96 and 128 bit versions!…

DEBUG Plot Layer and Crop

Introduction PNut_v49p1 adds new DEBUG PLOT commands allowing up to 8 bitmap layers that you can selectively copy into the PLOT window. This is useful for doing photo-realistic displays, where pre-drawn images are copied into the plot window to show,…

Floating point

Introduction SPIN2 introduces native 32-bit floating point support for the Propeller 2. The implementation follows IEEE-754 encoding rules, with a bit sequence comprising a sign bit, followed by exponent and then mantissa (significand) bits. An interesting tool to experiment with…

asmclk and the automatic clock setter

Introduction For customers writing PASM2 only programs, the compiler automatically prepends a clock-setter function to the code so that the system clock settings are automatically calculated and configured without the need for user configuration. It just works! If you don’t…