Self-resetting timer with a 5 minute preset. Use the DONE bit to increment a counter. When the counter's ACC value equals 1, turn on one motor, when it's 2, turn on two motors, etc. When the ACC value reaches 3, latch up a bit that suppresses any further up counting and enables a down counter. When you count down to zero, reset the latch.