Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Finite State Machines (was: Multitasking)

2005-04-10 by Chuck Hackett

> From: Larry Barello [mailto:yahoo@barello.net]
> 
> ....
> Most (but not all) of my current projects use a foreground loop with Finite
> State Machine (FSM) tasks and a high speed timer interrupt that increments
> counters or runs additional FSM that need precise periodic execution (e.g.
> motor or sensor control/input tasks, filtering, etc)  That structure is
> pretty simple and works well for just about everything. ....

On larger systems in a previous life I wrote a FSM "compiler" that consumed a
description of a state machine and produced a set of tables and source code
which was compiled into a communications application.  Support libraries
included debugging/trace tools that allowed symbolic debugging of a FSM.  Has
anyone done something like this for embedded C?

Cheers,

Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844
http://www.whitetrout.net/Chuck

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.