Microcontroller and power output switches integrated on same chip