Slide 51 of 65
Notes:
This is state diagram of the controller state machine. The outputs for each state aren’t shown for clarity. Notice that there is also a “count” variable that must be included in the state machine to count the number of interations through the loop. The count variable is actually implemented as another state variable.