I know that in practice the state transition diagram is created before the code is written for embedded system. i don't understand state machine logic for program or system
In simple terms an FSM consists of:
So there can be many states in the diagram, we can go from one state to another, we can come from another state to the previous state through edges. We only enter or leave state when conditions change
How do we decide how many states a system can have? What does a state represent in a state transition diagram?
In simple terms an FSM consists of:
- States
- event
- Transition
So there can be many states in the diagram, we can go from one state to another, we can come from another state to the previous state through edges. We only enter or leave state when conditions change
How do we decide how many states a system can have? What does a state represent in a state transition diagram?