Why State Machine Architecture is Frequently Used in Embedded Development?

Why State Machine Architecture is Frequently Used in Embedded Development?

1. Improving CPU UtilizationWhenever I see a program filled with delay_ms(), I get a headache. Software delays of several tens of milliseconds are a huge waste of CPU resources, with precious CPU time wasted on NOP instructions.It also troubles me when the entire program halts just to wait for a pin level change or serial … Read more