Cutting through the confusion with state machines
If you search the Internet for “state machine,” you are likely to get a kitchen sink of results: from hardware Mealy/Moore state machines, through simple bubbles-and-arrows state machines implemented directly inside while(1) superloops, to the mysterious UML state machines, which nobody really knows how to use. If you are confused and would like to make some sense of this, you should read my latest article "Programming embedded systems: input-driven state machines" on embedded.com. The article is based on my video "State Machines Part-3: Input-Driven State Machines", which you should also watch.
Embedded Software Engineer - C/C++/OOD
1 年I used the quantum leaps state machine framework at a previous job and this framework is very powerful, allowing complex problems to be solved in a straightforward manner using hierarchical state machine design. It even can function similar to an operating system although that requires looking at tasks in a different way via the active object design pattern. I highly recommend the Quantum Platform, especially when embedded linux is not a good option. QP works and is solid! I would be happy to use it again if my project team picked that path.
Senior Firmware Engineer at EDMI ANZ
1 年Your videos on YouTube have made me question what I've been doing for the last 15 years. The type of next level knowledge that I wish I knew ages ago.
Embedded Software Engineer | Embedded / RTOS Design Geek
1 年Thanks Miro. You're the best.
Embedded Software Developer | Safety-Critical Rocket Avionics
1 年I'm curious