Use states 0001, 0010, 0100, and 1000. Reset to the first state. Advance to the next state only when enabled, wrapping after the fourth state.
Use states 0001, 0010, 0100, and 1000. Reset to the first state. Advance to the next state only when enabled, wrapping after the fourth state.