SPLat Logo

Tutorial: Semaphores

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map
SPLat will be shut down for the Christmas Holiday season from Friday 20 December 2024 through Tuesday 7 January 2025. We will check emails periodically and will continue to process orders but at a slower pace. Santa hat

Tutorial: Semaphores

This tutorial covers the theory and use of semaphores in SPLat.

Semaphores allow you to greatly increase the effective amount of RAM in your SPLat board. Semaphores are the most efficient way of storing simple logical on/off, true/false, yes/no enable/disable information. Prior to semaphores you would usually use up a whole byte of memory to store a logical value. With semaphores it is easy to get 8 logical values per byte. That means you can have a large number of logical variables in your program and still only use up a fraction of the available RAM.