1. A motor control apparatus comprising: a driving control unit that performs driving control of a motor in accordance with a drive command; an interrupt control unit that starts and executes interrupt processing for performing the driving control at an interrupt cycle; a first processing unit that executes same first processing every time the interrupt processing starts; and a second processing unit that selects and executes a different piece of processing from second processing every time the interrupt processing starts, wherein the interrupt control unit executes at least one piece of the first processing before executing the second processing in the interrupt processing.