Previous Topic

Next Topic

Book Contents

Book Index

Tutorial: MultiTrack

MultiTrack is a mechanism that allows you to very easily write SPLat programs that can do many things at once.

MultiTrack replaces the older multitasking technique based on the Suspend and Resume instructions. While Suspend and Resume instructions still exist, and can still be used, MultiTrack is easier to understand, easier to use and easier on processor resources.

MultiTrack makes it very easy to write several programs that can run simultaneously and independently of each other in one controller. You need to apply one or two simple rules and write a tiny bit of code to "glue" it all together, but once that's done it's a breeze. MultiTrack also provides an excellent foundation for libraries of re-usable code.

With MultiTrack we have:

The end result is that SPLat becomes even easier to program, and allows less experienced users to write more sophisticated programs

This tutorial is divided into 3 levels: Basic, Intermediate and Advanced, so you can work up to the level that suits your experience and needs.

Outcomes (what you will get out of this tutorial):

Basic:

Teaches you the basic mechanics of MultiTrack.

Intermediate:

Let's you start to structure programs to unlock the full power of MultiTrack

Advanced:

Gets into some of the more sophisticated stuff.

Prerequisites (what you should know before you start):

Basic:

Intermediate:

Advanced:

Previous Topic

Next Topic

In This Chapter

MultiTrack (Basic): Quick-start for Dummies

MultiTrack (Basic): The YieldTask instruction

MultiTrack (Basic): How many tasks can I have?

MultiTrack (Intermediate): Synchronizing tasks

MultiTrack (Intermediate): SuperTimers

MultiTrack (Intermediate): Subroutines and registers

MultiTrack (Intermediate): Using the OnBoard LCD

MultiTrack (Advanced): Multiple simultaneous SuperTimers

MultiTrack (Advanced): Measuring elapsed time with a SuperTimer

MultiTrack (Advanced): Speeding up SuperTimers for debugging

MultiTrack (Advanced): Changing the 10mS time base

MultiTrack (Advanced): Accuracy of SuperTimers

MultiTrack (Advanced): Transient tasks

MultiTrack (Advanced): Multi-channel operations

MultiTrack (Advanced): Permitting infinite loops.