State Machine tutorial part 2 of 3.
Is this part the C programming code for the basic state machine diagram shown in part 1. All the code presented here was written using the open source software Eclipse IDE, this can be downloaded from here.
State Machine tutorial part 1 is the first post in a series of 3.
A state machine or as it is also known a finite state machine (FSM), is a model used to design computer programs and sequential logic circuits. The machine can only be in one state at a time, this is known as the current state. Changes from one state to another are brought about by an event or certain condition, this brings about a transition into a new state.
Microcontroller GPIO protection is an essential element of any circuit design.
GPIO ports generally have maximum voltage and current ratings, if these are exceeded it can result in the microcontroller being damaged or completely destroyed.