Previous Topic

Next Topic

Book Contents

Book Index

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.

Previous Topic

Next Topic

In This Chapter

Semaphores: The quick and easy way

Semaphores: Simplified addressing rules

Semaphores: Bits and Bytes

Semaphores: Programming examples