Patent ID: 9183162
Filing Date: 2015-11-10
Classification: G06F

Abstract:
1. An electronic device capable of being debugged via an earphone port, comprising: the earphone port configured to receive an earphone plug, wherein the earphone port comprises a left channel pin, a right channel pin, an earphone detection pin, and a ground pin; an audio amplifier comprising an earphone left channel output pin and an earphone right channel output pin; a digital processor comprising a data transmission pin and a data receive pin; a multi-way selection switch comprising a first switch, a second switch, a third switch, and a fourth switch, wherein, the first switch is electrically connected between the data transmission pin of the digital processor and the left channel pin of the earphone port, the second switch is electrically connected between the data receive pin of the digital processor and the right channel pin of the earphone port, the third switch is electrically connected between the earphone left channel output pin of the audio amplifier and the left channel pin of the earphone port, the fourth switch is electrically connected between the earphone right channel output pin of the audio amplifier and the right channel pin of the earphone port, each of the first switch, the second switch, the third switch, and the fourth switch comprises a controlled port; and an earphone detection and response circuit comprising a first output port connected to the controlled ports of the first switch and the second switch and a second output port connected to the controlled ports of the third switch and the fourth switch, wherein, the earphone detection and response circuit is configured to detect whether the earphone port receives the earphone plug, wherein, when the earphone detection and response circuit detects the earphone port does not receive the earphone plug, the earphone detection and response circuit outputs a first control signal to the controlled ports of the first switch and the second switch via the first output port to turn on the first switch and the second switch, and outputs a second control signal to the controlled ports of the third switch and the fourth switch via the second output port to turn off the third switch and the fourth switch.