I want to use a 9v 1200mAh battery to simultaneously provide current to a 9-12v motor and microcontroller. The microcontroller would ideally switch the motor circuit, which would derive power from the battery. The reason I want to do this rather than use two separate power sources or power the motor through the microcontroller is that the microcontroller only has an output of 6v, making the motor either useless or underpowered. The constraints do not allow for multiple power sources.
Is there a way to feasibly do what I'm hoping? I don't have much of a background in electronics or EE, not entirely sure where to begin with this.