Skip to Content
Computers as Components, 3rd Edition
book

Computers as Components, 3rd Edition

by Marilyn Wolf
June 2012
Intermediate to advanced
528 pages
15h 40m
English
Morgan Kaufmann
Content preview from Computers as Components, 3rd Edition

5.2 Components for Embedded Programs

In this section, we consider code for three structures or components that are commonly used in embedded software: the state machine, the circular buffer, and the queue. State machines are well suited to reactive systems such as user interfaces; circular buffers and queues are useful in digital signal processing.

5.2.1 State Machines

State machine style

When inputs appear intermittently rather than as periodic samples, it is often convenient to think of the system as reacting to those inputs. The reaction of most systems can be characterized in terms of the input received and the current state of the system. This leads naturally to a finite-state machine style of describing the reactive system’s behavior. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computers as Components, 2nd Edition

Computers as Components, 2nd Edition

Marilyn Wolf

Publisher Resources

ISBN: 9780123884367