1. Technical Field
The present disclosure relates to electronic devices, and particularly to an electronic device with a switching circuit for switching between a speaker mode and an earphone mode.
2. Description of Related Art
An electronic device, such as a DVD player, a MP3 player, or other audio/video devices, usually includes two selectable output modes, a speaker mode and an earphone mode. Generally, a switching circuit is designed to switch to one of the two output modes. For example, when an earphone is electrically connected to the electronic device, the switching circuit automatically selects the earphone mode. When the earphone is disconnected from the electronic device, the switching circuit automatically selects the speaker mode.
However, the switching circuit generally applies a number of relatively expensive transistors. Thus, adding to the cost of producing such audio devices.
Therefore, there is room for improvement in the art.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiment of an electronic device with a switching circuit. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the views.
Embodiments of the present disclosure will now be described in detail with reference to the drawings.
Referring to
The processing unit 10 is electrically connected to the audio power amplifier 20, and is used for driving the audio power amplifier 20 to output an audio signal. The audio signal includes a right channel audio signal and a left channel audio signal.
The audio power amplifier 20 includes a first output pin 21 used to output the left channel audio signal, a second output pin 23 used to output the right channel audio signal, and a control pin 25 used for controlling the audio power amplifier 20 to be electrically connected to the speaker 30. In this embodiment, the control pin 25 is activated at a low level, and is disabled at a high level.
When the speaker 30 is electrically connected to the audio power amplifier 20, the speaker 30 emits sounds according to the right channel audio signal and the left channel audio signal. When the electronic device 100 is in a speaker mode, that is to say the control pin 25 is at the low level, the speaker 30 is activated.
The two earphone jack assemblies 50a, 50b are capable of being electrically and respectively connected to one earphone (not shown). When the electronic device 100 is in an earphone mode, that is to say the control pin 25 is at the high level, the two earphone jack assemblies 50a, 50b are activated to emit sounds according to the right channel audio signal and the left channel audio signal. The two earphone jack assemblies 50a, 50b have the same structure, and one of them (50a) is described below.
The earphone jack assembly 50a includes a first input port 51 used to input the left channel audio signal, a second input port 53 used to input the right channel audio signal, a first connection port 55 capable of being electrically connected to the first input port 51. A second connection port 57 capable of being electrically connected to the second input port 53, a ground port 59 electrically grounded, and an earphone jack 70 used for receiving a plug of the earphone. Two ends of the two connection ports 55, 57 are electrically connected together (see
The earphone jack 70 includes a first elastic portion 71 and a second elastic portion 73. The first elastic portion 71 is electrically connected to the first input port 51 for transmitting the left channel audio signal. The second elastic portion 73 is electrically connected to the second input port 53 for transmitting the right channel audio signal. The first elastic portion 71 is electrically detachable from the first connection port 55. The second elastic portion 73 is electrically detachable from the second connection port 57. When the plug of the earphone is inserted into the earphone jack 70, the two elastic portions 71, 73 are respectively deformed to disconnect from the two connection ports 55, 57 (see
The switching circuit 40 is used for automatically selecting one of the speaker mode or the earphone mode as a current mode. In this embodiment, when the two elastic portions 71, 73 are respectively connected to the two connection ports 55, 57, the switching circuit 40 automatically selects the speaker mode; when the two elastic portions 71, 73 are respectively disconnected from the two connection ports 55, 57, the switching circuit 40 automatically selects the earphone mode.
The switching circuit 40 includes a first detection sub-circuit 41, a second detection sub-circuit 43, and an auxiliary sub-circuit 45.
Referring to
The second detection sub-circuit 43 includes a second diode D2, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, and an eighth resistor R8. A cathode of the second diode D2 is electrically connected to the control pin 25 of the audio power amplifier 20, and an anode of the second diode D2 is electrically connected to one end of the eighth resistor R8. The other end of the eighth resistor R8 electrically connected to the power supply Vcc by the fifth resistor R5. One end of the sixth resistor R6 is electrically connected between the eighth resistor R8 and the fifth resistor R5 to form a second node B, and the other end of the sixth resistor R6 is electrically connected to the second connection port 57 of the second earphone jack assembly 50b. One end of the seventh resistor R7 is electrically connected to the second output pin 23 of the audio power amplifier 20, and the other end of the seventh resistor R7 is grounded.
In this embodiment, the auxiliary sub-circuit 45 includes a ninth resistor R9. One end of the ninth resistor R9 is electrically connected to the control pin 25 of the audio power amplifier 20, and the other end of the ninth resistor R9 is grounded.
The first resistor R1 and the fifth resistor R5 have the same resistance. The first resistor R1 and the fifth resistor R5 are respectively used for pulling up the voltages of the node A and the node B to sustain a high level signal state.
The third resistor R3 and the seventh resistor R7 have the same resistance. The third resistor R3 and the seventh resistor R7 are used for pulling down voltage of the second output pin 23 to sustain a low level signal state.
The second resistor R2 and the sixth resistor R6 have the same resistance. The fourth resistor R4 and the eighth resistor R8 have the same resistance which far exceeds either that of the second resistor R2 and the sixth resistor R6 or that of the third resistor R3 and the seventh resistor R7. The second resistor R2, the sixth resistor R6, the fourth resistor R3, and the eighth resistor R8 are configured for controlling current.
The ninth resistor R9 is used for pulling down voltage of the control pin 25. The resistance of the ninth resistor R9 far exceeds either that of the first resistor R1 and the fifth resistor R5 or that of the fourth resistor R4 and the eighth resistor R8.
In this embodiment, the first resistor R1 and the fifth resistor R5 are 10KΩ; the second resistor R2, the third resistor R3, the sixth resistor R6, and the seventh resistor R7 are 1KΩ; the fourth resistor R4 and the eighth resistor R8 are 100KΩ; the ninth resistor R9 is 1MΩ.
Further referring to
Referring to
As discussed above, the electronic device 100 can be freely switched between the speaker mode and the earphone mode. As the switching between a speaker mode and an earphone mode of the electronic device 100 is achieved by only using several resistors and diodes, the cost of manufacturing the electronic device 100 is low.
While various exemplary and preferred embodiments have been described, it is to be understood that the disclosure is not limited thereto. To the contrary, various modifications and similar arrangements (as would be apparent to those skilled in the art) are intended to also be covered. Therefore, the scope of the appended claims should be accorded the broadest interpretation to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
201010510076.0 | Oct 2010 | CN | national |