Personal tools
You are here: Home Downloads H8 StateMachines in C - Examples for UML StateChart implementations

StateMachines in C - Examples for UML StateChart implementations

This project runs on the H8 Simulator in HEW. (It should also work on real hardware). It is a "port" of the simple Hierarchical State Machine interface described in the Embedded Systems Programming Journal.

TheĀ original article is by Miro Samek and Paul Montgomery.

The idea is to have a simple framework for creating a hierarchical state machine, implementing a subset of the statecharts used in the UML 2.0 spec.

This demo runs in HEW using a simulated I/O window for direct keyboard interaction. There are two project build versions, the "wristwatch" example and a simple state (and substate) test.

More info on Statecharts and the original article link can be found here:

www.quantum-leaps.com