Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 56411

A finite state machine (or state machine) is a very generic term for any process (electronic or otherwise) whose output is not simply a function of its current inputs, but also depends on its past history. In other words, it has "memory", or internal state information.

8 votes

Embedded programming state machines

I'd be surprised if there's a big difference on a 32-bit MCU. Avoiding conditional branches could save you a few cycles, but are you really going to succeed or fail based on a few cycles? The number o …
Adam Haun's user avatar
  • 22.3k
1 vote

Interrupt handling in microcontrollers and FSM example

Putting a flag inside the ISR as you describe probably won't work since you're basically ignoring the event that triggered the interrupt. Disabling interrupts globally is usually a better choice. As o …
Adam Haun's user avatar
  • 22.3k
1 vote

Why is this a Moore and not a Mealy FSM?

The state of the circuit is represented by the flip-flops. In this case, your outputs (Q0 and Q1) are exactly equal to the flip-flop outputs. The inputs only affect the outputs by causing a state chan …
Adam Haun's user avatar
  • 22.3k