主权项 |
1. A device for an earphone and a universal series bus (USB) to share a Micro-USB interface, comprising a Micro-USB interface module disposed on the device, the device further comprising a control module and an interface detecting module which are connected to the Micro-USB interface module, wherein the Micro-USB interface module is an interface configured to be directly connected to USB lines or earphone lines, and consisted of a first pin, a second pin, a third pin, a fourth pin and a fifth pin;
wherein the first pin is used as a VBUS terminal, the second pin is used as a USB_DM terminal and also used as a left sound channel, the third pin is used as a USB_DP terminal and also used as a right sound channel, the fourth pin is used as an ID terminal and also used as a microphone, and the fifth pin is used as a GND terminal; wherein the interface detecting module is configured to detect whether USB lines or earphone lines are plugged into the Micro-USB interface and generate a corresponding control signal to the control module; and the control module is configured to select to activate a USB task or turn on an audio path according to the control signal, wherein the interface detecting module comprises a USB detecting unit and a sound channel detecting unit independent from the USB detecting unit; the USB detecting unit is directly connected to the VBUS terminal of the Micro-USB interface module, such that when the VBUS terminal of the Micro-USB interface module is detected to be at a high level, the USB detecting unit converts the high level into a first control signal and transmits the first control signal to the control module, and the control module controls the Micro-USB interface to be connected to a USB data transceiving circuit and/or a recharging circuit of the device according to the first control signal so as to activate the USB task; the sound channel detecting unit is directly connected to the USB DP terminal of the Micro-USB interface module, such that when the USB DP terminal of the Micro-USB interface module is detected to be at a low level, the sound channel detecting unit converts the low level into a second control signal and transmits the second control signal to the control module, and the control module controls the Micro-USB interface to be connected to an audio circuit of the device according to the second control signal so as to turn on the audio path. |