Protection circuit and electronic equipment
Through the protection circuit design of the four switch modules, the problem of increasing difficulty in the protection design of the off-chip interface is solved, and effective surge protection is achieved without increasing the PCB area.
Patent Information
- Application Number
- CN202422195368.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2034-09-06
AI Technical Summary
In the prior art, the design of external interface protection of semiconductor chips is more difficult, and relying solely on the internal protection circuit of the chip cannot meet the surge protection needs, resulting in an increase in the area of the printed circuit board.
The protection circuit design of four switching modules is adopted, including the first switching module, the second switching module, the third switching module and the fourth switching module. The headphones and power amplifiers are connected through different plug-ins to reduce the number of switching modules and reduce the use of PCB area.
On the basis of ensuring the protection effect, the protection circuit takes up PCB area by reducing the protection circuit and improving the space utilization efficiency of the external protection circuit of the chip.
Smart Images

Figure CN223124997U_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electronic devices, and particularly relates to a protection circuit and an electronic device. Background Art
[0002] With the improvement of the process manufacturing capacity and the increasing demand for smaller chip areas and more powerful chip functions in products, the process size of semiconductor chips is continuously reduced, and the difficulty of the external interface protection design of the chips is continuously increased. Relying only on the protection circuit design inside the chips can no longer meet the product surge protection design requirements, which requires adding additional protection circuits outside the chips.
[0003] In related technologies, the protection circuit outside the audio codec (codec) chip usually uses a large number of switching modules, which increases the layout area of the printed circuit board (PCB). Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a protection circuit and an electronic device, which can reduce the occupation of the PCB area by the protection circuit while ensuring the protection effect.
[0005] In a first aspect, the embodiments of this application provide a protection circuit, including: a first switching module, a second switching module, a third switching module, and a fourth switching module;
[0006] The first end of the first switching module is connected to the output end of the first power amplifier in the audio codec chip, and the first end of the second switching module is connected to the output end of the second power amplifier in the audio codec chip;
[0007] When the Universal Serial Bus (USB) headset is inserted correctly, the second end of the first switching module is connected to the first end of the first headset included in the USB headset; the second end of the second switch is connected to the first end of the second headset included in the USB headset; the first end of the third switching module is respectively connected to the positive input end of the first power amplifier, the positive input end of the second power amplifier, and the ground; the second end of the third switching module is respectively connected to the second end of the first headset and the second end of the second headset;
[0008] When the USB headset is inserted reversely, the second end of the first switching module is connected to the first end of the first headset; the second end of the second switching module is connected to the first end of the second headset; the first end of the fourth switching module is respectively connected to the positive input end of the first power amplifier, the positive input end of the second power amplifier, and the ground; the second end of the fourth switching module is respectively connected to the second end of the first headset and the second end of the second headset.
[0009] Second aspect, an embodiment of the present application provides an electronic device, including:
[0010] a processor, an audio codec chip, and a protection circuit provided by an embodiment of the present application.
[0011] In the embodiment of the present application, the protection circuit includes a first switch module, a second switch module, a third switch module, and a fourth switch module; a first end of the first switch module is connected to an output end of a first power amplifier in the audio codec chip, and a first end of the second switch module is connected to an output end of a second power amplifier in the audio codec chip; in the case of a USB headset being plugged in correctly, a second end of the first switch module is connected to a first end of a first earphone included in the universal serial bus headset; a second end of the second switch module is connected to a first end of a second earphone included in the universal serial bus headset; a first end of the third switch module is respectively connected to a positive input end of the first power amplifier, a positive input end of the second power amplifier, and ground; a second end of the third switch module is respectively connected to a second end of the first earphone and a second end of the second earphone; in the case of the USB headset being plugged in reversely, the second end of the first switch module is connected to the first end of the first earphone; the second end of the second switch is connected to the first end of the second earphone; a first end of the fourth switch module is respectively connected to the positive input end of the first power amplifier, the positive input end of the second power amplifier, and ground; a second end of the fourth switch module is respectively connected to the second end of the first earphone and the second end of the second earphone. In this way, only four switch modules are used for the protection circuit outside the audio codec chip, reducing the number of switch modules and occupying less PCB area by the protection circuit while ensuring the protection effect. Description of the Drawings
[0012] Figure 1 is a first schematic structural diagram of the protection circuit provided by an embodiment of the present application;
[0013] Figure 2 is a second schematic structural diagram of the protection circuit provided by an embodiment of the present application;
[0014] Figure 3 is a third schematic structural diagram of the protection circuit provided by an embodiment of the present application;
[0015] Figure 4 is a fourth schematic structural diagram of the protection circuit provided by an embodiment of the present application;
[0016] Figure 5 is a fifth schematic structural diagram of the protection circuit provided by an embodiment of the present application;
[0017] Figure 6 is an equivalent circuit schematic diagram provided by an embodiment of the present application;
[0018] Figure 7It is the sixth structural schematic diagram of the protection circuit provided by the embodiments of the present application
[0019] Figure 8 It is the seventh structural schematic diagram of the protection circuit provided by the embodiments of the present application;
[0020] Figure 9 It is the eighth structural schematic diagram of the protection circuit provided by the embodiments of the present application;
[0021] Figure 10 It is the ninth structural schematic diagram of the protection circuit provided by the embodiments of the present application;
[0022] Figure 11 It is the hardware structural schematic diagram of the electronic device implementing the embodiments of the present application. Specific embodiments
[0023] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0024] Terms such as "first" and "second" in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally represents an "or" relationship between the associated objects before and after.
[0025] Next, in conjunction with the accompanying drawings, the protection circuit and the electronic device provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.
[0026] The protection circuit provided by the embodiments of the present application may include: a first switch module, a second switch module, a third switch module, and a fourth switch module. Among them, the first end of the first switch module is connected to the output end of the first power amplifier in the audio codec chip, and the first end of the second switch module is connected to the output end of the second power amplifier in the audio codec chip.
[0027] When the USB earphone is plugged in correctly, the second end of the first switch module is connected to the first end of the first earphone included in the USB earphone; the second end of the second switch module is connected to the first end of the second earphone included in the USB earphone; the first end of the third switch module is respectively connected to the positive input terminal of the first power amplifier, the positive input terminal of the second power amplifier, and the ground; the second end of the third switch module is respectively connected to the second end of the first earphone and the second end of the second earphone. As Figure 1 shown, Figure 1 Figure 1 is the first schematic structural diagram of the protection circuit provided by the embodiment of the present application.
[0028] In Figure 1 , the protection circuit 100 includes a first switch module 101, a second switch module 102, a third switch module 103, and a fourth switch module 104.
[0029] The first end of the first switch module 101 is connected to the output terminal of the first power amplifier PA1 in the audio codec chip 200, and the first end of the second switch module 102 is connected to the output terminal of the second power amplifier PA2 in the audio codec chip 200.
[0030] When the USB earphone 300 is plugged in correctly, the second end of the first switch module 101 is connected to the first end of the first earphone 301 included in the USB earphone 300; the second end of the second switch module 102 is connected to the first end of the second earphone 302 included in the USB earphone 300; the first end of the third switch module 103 is respectively connected to the positive input terminal of the first power amplifier PA1, the positive input terminal of the second power amplifier PA2, and the ground; the second end of the third switch module 103 is respectively connected to the second end of the first earphone 301 and the second end of the second earphone 302.
[0031] When the USB earphone is plugged in reversely, the second end of the first switch module is connected to the first end of the first earphone; the second end of the second switch is connected to the first end of the second earphone; the first end of the fourth switch module is respectively connected to the positive input terminal of the first power amplifier, the positive input terminal of the second power amplifier, and the ground; the second end of the fourth switch module is respectively connected to the second end of the first earphone and the second end of the second earphone. As Figure 2 shown, Figure 2 Figure 2 is the second schematic structural diagram of the protection circuit provided by the embodiment of the present application.
[0032] In Figure 2 , the protection circuit 100 includes: a first switch module 101, a second switch module 102, a third switch module 103, and a fourth switch module 104.
[0033] The first end of the first switch module 101 is connected to the output end of the first power amplifier PA1 in the audio codec chip 200, and the first end of the second switch module 102 is connected to the output end of the second power amplifier PA2 in the audio codec chip 200.
[0034] When the USB headset 300 is inserted reversely, the second end of the first switch module 101 is connected to the first end of the first headset 301; the second end of the second switch module 102 is connected to the first end of the second headset 302; the first end of the fourth switch module 104 is respectively connected to the positive input end of the first power amplifier PA1, the positive input end of the second power amplifier PA2, and the ground; the second end of the fourth switch module 104 is respectively connected to the second end of the first headset 301 and the second end of the second headset 302.
[0035] In some possible implementations of the embodiments of the present application, the first power amplifier in the embodiments of the present application may be a left-channel power amplifier. Correspondingly, the second power amplifier is a right-channel power amplifier, the first headset is a left headset, and the second headset is a right headset; the first power amplifier may also be a right-channel power amplifier. Correspondingly, the second power amplifier is a left-channel power amplifier, the first headset is a right headset, and the second headset may be a left headset.
[0036] In the embodiments of the present application, the protection circuit includes a first switch module, a second switch module, a third switch module, and a fourth switch module; the first end of the first switch module is connected to the output end of the first power amplifier in the audio codec chip; the first end of the second switch module is connected to the output end of the second power amplifier in the audio codec chip; when the USB headset is inserted correctly, the second end of the first switch module is connected to the first end of the first headset included in the universal serial bus headset; the second end of the second switch module is connected to the first end of the second headset included in the universal serial bus headset; the first end of the third switch module is respectively connected to the positive input end of the first power amplifier, the positive input end of the second power amplifier, and the ground; the second end of the third switch module is respectively connected to the second end of the first headset and the second end of the second headset; when the USB headset is inserted reversely, the second end of the first switch module is connected to the first end of the first headset; the second end of the second switch is connected to the first end of the second headset; the first end of the fourth switch module is respectively connected to the positive input end of the first power amplifier, the positive input end of the second power amplifier, and the ground; the second end of the fourth switch module is respectively connected to the second end of the first headset and the second end of the second headset. In this way, only four switch modules are used for the protection circuit outside the audio codec chip, reducing the number of switch modules and being able to reduce the PCB area.
[0037] In some possible implementations of the embodiments of the present application, the first switch module, the second switch module, the third switch module, and the fourth switch module each include a first resistor, a second resistor, and a switching tube; the first end of the first resistor serves as the first end of the switch module, the second end of the first resistor is connected to the first end of the switching tube, the second end of the switching tube is connected to the first end of the second resistor, and the second end of the second resistor serves as the second end of the first switch module; the control end of the switching tube is connected to the output end of the overvoltage protection module in the audio codec chip.
[0038] Taking the positive insertion of the USB earphone as an example, as Figure 3 shown, Figure 3 FIG. 3 is a schematic diagram of a third structure of the protection circuit provided by the embodiments of the present application.
[0039] In Figure 3 FIG. 3, the protection circuit 100 includes a first switch module 101, a second switch module 102, a third switch module 103, and a fourth switch module 104.
[0040] The first switch module 101 includes a resistor R1, a resistor R2, and a switching tube Q1, the second switch module 102 includes a resistor R3, a resistor R4, and a switching tube Q2, the third switch module 103 includes a resistor R5, a resistor R6, and a switching tube Q3, and the fourth switch module 104 includes a resistor R7, a resistor R8, and a switching tube Q4.
[0041] The first end of the resistor R1 serves as the first end of the first switch module 101, the second end of the resistor R1 is connected to the first end of the switching tube Q1, the second end of the switching tube Q1 is connected to the first end of the resistor R2, and the second end of the resistor R2 serves as the second end of the first switch module 101.
[0042] The first end of the resistor R3 serves as the first end of the second switch module 102, the second end of the resistor R3 is connected to the first end of the switching tube Q2, the second end of the switching tube Q2 is connected to the first end of the resistor R4, and the second end of the resistor R4 serves as the second end of the second switch module 102.
[0043] The first end of the resistor R5 serves as the first end of the third switch module 103, the second end of the resistor R5 is connected to the first end of the switching tube Q3, the second end of the switching tube Q3 is connected to the first end of the resistor R6, and the second end of the resistor R6 serves as the second end of the third switch module 103.
[0044] The first end of the resistor R7 serves as the first end of the fourth switch module 104, the second end of the resistor R7 is connected to the first end of the switching tube Q4, the second end of the switching tube Q4 is connected to the first end of the resistor R8, and the second end of the resistor R8 serves as the second end of the fourth switch module 104.
[0045] The control terminals of switching transistors Q1, Q2, Q3, and Q4 are respectively connected to an output terminal of an overvoltage protection module 201 in the audio codec chip 200.
[0046] The overvoltage protection module 201 is configured to control the conduction and cutoff of the switching transistors Q1, Q2, Q3, and Q4. When the voltage signals output by the first power amplifier PA1 and the second power amplifier PA2 are relatively high, the overvoltage protection module 201 controls the switching transistors Q1, Q2, Q3, and Q4 to cutoff by controlling their control terminals, preventing the first earphone 301 and the second earphone 302 from being burned out.
[0047] In some possible implementations of the embodiments of the present application, the switching transistors in the embodiments of the present application may be Metal-Oxide-Semiconductor Field-Effect Transistors (MOSFETs), i.e., MOS transistors.
[0048] In some possible implementations of the embodiments of the present application, the USB earphone in the embodiments of the present application is an earphone with a USB interface, where the USB interface may be a USB Type-C interface.
[0049] In some possible implementations of the embodiments of the present application, when the USB earphone is inserted correctly, the first end of the fourth switch module is connected to the audio receiving unit in the audio codec chip, the second end of the fourth switch module is connected to the first end of the microphone component included in the USB earphone; the second end of the microphone component is connected to the second end of the third switch module. As Figure 4 shown, Figure 4 is the schematic diagram of the fourth structure of the protection circuit provided by the embodiments of the present application.
[0050] In Figure 4 it, the protection circuit 100 includes a first switch module 101, a second switch module 102, a third switch module 103, and a fourth switch module 104.
[0051] The first end of the first switch module 101 is connected to the output terminal of the first power amplifier PA1.
[0052] The first end of the second switch module 102 is connected to the output terminal of the second power amplifier PA2.
[0053] The second end of the first switch module 101 is connected to the first end of the first earphone 301.
[0054] The second end of the second switch module 102 is connected to the first end of the second earphone 302.
[0055] The first end of the third switch module 103 is respectively connected to the positive input terminal of the first power amplifier PA1, the positive input terminal of the second power amplifier PA2, and ground.
[0056] The second end of the third switch module 103 is respectively connected to the second end of the first earphone 301 and the second end of the second earphone 302.
[0057] The first end of the fourth switch module 104 is connected to the audio receiving unit 202.
[0058] The second end of the fourth switch module 104 is connected to the first end of the microphone assembly 303; the second end of the microphone assembly 303 is connected to the second end of the third switch module 103.
[0059] In some possible implementations of the embodiments of the present application, in the case of reverse insertion of the USB earphone, the first end of the third switch module is connected to the audio receiving unit, and the second end of the third switch module is connected to the first end of the microphone assembly; the second end of the microphone assembly is connected to the second end of the fourth switch module. As Figure 5 shown, Figure 5 is the fifth structural schematic diagram of the protection circuit provided by the embodiments of the present application.
[0060] In Figure 5 it, the protection circuit 100 includes a first switch module 101, a second switch module 102, a third switch module 103, and a fourth switch module 104.
[0061] The first end of the first switch module 101 is connected to the output terminal of the first power amplifier PA1.
[0062] The first end of the second switch module 102 is connected to the output terminal of the second power amplifier PA2.
[0063] The second end of the first switch module 101 is connected to the first end of the first earphone 301.
[0064] The second end of the second switch module 102 is connected to the first end of the second earphone 302.
[0065] The first end of the fourth switch module 104 is respectively connected to the positive input terminal of the first power amplifier PA1, the positive input terminal of the second power amplifier PA2, and ground.
[0066] The second end of the fourth switch module 104 is respectively connected to the second end of the first earphone 301 and the second end of the second earphone 302.
[0067] The first end of the third switch module 103 is connected to the audio receiving unit 202.
[0068] The second end of the third switch module 103 is connected to the first end of the microphone component 303; the second end of the microphone component 303 is connected to the second end of the fourth switch module 104.
[0069] In some possible implementations of the embodiments of the present application, the first end of the microphone component refers to the positive extreme of the microphone component, and the second end of the microphone component refers to the negative extreme of the microphone component.
[0070] In the embodiments of the present application, the audio codec chip can be connected to a USB headset with a microphone component.
[0071] In some possible implementations of the embodiments of the present application, when the USB headset is plugged in normally, the positive input terminals of the first power amplifier and the second power amplifier are equivalently connected to ground. When the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, due to the impedance of the third switch module, a crosstalk voltage will be generated at the negative extreme of the second headset; when the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, due to the impedance of the third switch module, a crosstalk voltage will be generated at the negative extreme of the first headset. When the USB headset is plugged in reversely, the positive input terminals of the first power amplifier and the second power amplifier are equivalently connected to ground. When the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, due to the impedance of the fourth switch module, a crosstalk voltage will be generated at the negative extreme of the second headset; when the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, due to the impedance of the fourth switch module, a crosstalk voltage will be generated at the negative extreme of the first headset.
[0072] Taking the example of the USB headset being plugged in normally and the voltage output by the first power amplifier being greater than the voltage output by the second power amplifier, as Figure 6 shown, Figure 6 is the equivalent circuit schematic diagram provided by the embodiments of the present application.
[0073] In Figure 6 , R GND represents the ground resistance, R par represents the impedance of the third switch module, and Vref represents the crosstalk voltage.
[0074] In order to eliminate the crosstalk voltage, in some possible implementations of the embodiments of the present application, the first end and the second end of the third switch module are respectively connected to two input ends of the first microphone channel in the audio codec chip; the first end and the second end of the fourth switch module are respectively connected to two input ends of the second microphone channel in the audio codec chip; the output ends of the first microphone channel and the second microphone channel are respectively connected to the input end of the crosstalk processing module in the audio codec chip; the output end of the crosstalk processing module is respectively connected to the positive input end of the first power amplifier and the positive input end of the second power amplifier, and the crosstalk processing module is used to output the voltage for eliminating crosstalk. As Figure 7 shown, Figure 7 is the sixth structural schematic diagram of the protection circuit provided by the embodiments of the present application.
[0075] In Figure 7 , the protection circuit 100 includes a first switch module 101, a second switch module 102, a third switch module 103 and a fourth switch module 104.
[0076] The first end of the first switch module 101 is connected to the output end of the first power amplifier PA1 in the audio codec chip 200, and the first end of the second switch module 102 is connected to the output end of the second power amplifier PA2 in the audio codec chip 200.
[0077] When the USB earphone 300 is plugged in correctly, the second end of the first switch module 101 is connected to the first end of the first earphone 301 included in the USB earphone 300; the second end of the second switch module 102 is connected to the first end of the second earphone 302 included in the USB earphone 300; the first end of the third switch module 103 is respectively connected to the positive input end of the first power amplifier PA1, the positive input end of the second power amplifier PA2 and the ground; the second end of the third switch module 103 is respectively connected to the second end of the first earphone 301 and the second end of the second earphone 302.
[0078] When the USB earphone 300 is plugged in reversely, the second end of the first switch module 101 is connected to the first end of the first earphone 301; the second end of the second switch module 102 is connected to the first end of the second earphone 302; the first end of the fourth switch module 104 is respectively connected to the positive input end of the first power amplifier PA1, the positive input end of the second power amplifier PA2 and the ground; the second end of the fourth switch module 104 is respectively connected to the second end of the first earphone 301 and the second end of the second earphone 302.
[0079] The first end and the second end of the third switch module 103 are respectively connected to the two input ends of the first microphone channel 203 in the audio codec chip 200; the first end and the second end of the fourth switch module 104 are respectively connected to the two input ends of the second microphone channel 204 in the audio codec chip 200; the output ends of the first microphone channel 203 and the second microphone channel 204 are respectively connected to the input end of the crosstalk processing module 205 in the audio codec chip 200; the output end of the crosstalk processing module 205 is respectively connected to the positive input end of the first power amplifier and the positive input end of the second power amplifier, and the crosstalk processing module 205 is used to output a voltage for eliminating crosstalk.
[0080] In some possible implementations of the embodiments of the present application, both the first microphone channel and the first microphone channel in the embodiments of the present application may include: an analog-to-digital converter (ADC). The two input ends of the ADC are used as the two input ends of the microphone channel. The ADC obtains a voltage according to the two analog voltage signals it collects, converts the voltage into a digital signal, and outputs the digital signal to the crosstalk processing module. The crosstalk processing module sends the digital signal to the digital-to-analog converter (DAC) corresponding to the first power amplifier or the DAC corresponding to the second power amplifier. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the corresponding power amplifier.
[0081] When the USB headset is plugged in correctly and the voltage output by the first power amplifier PA1 is greater than the voltage output by the second power amplifier PA2, the first microphone channel 203 collects the voltage across the third switch module 103, converts the voltage into a digital signal, and outputs the digital signal to the crosstalk processing module 205. The crosstalk processing module 205 sends the digital signal to the DAC corresponding to the second power amplifier PA2. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier PA2. That is, through the first microphone channel 203 and the crosstalk processing module 205, a voltage signal identical to the crosstalk voltage at the negative terminal of the second headset 302 is generated at the positive terminal of the second power amplifier PA2. After this voltage signal is output to the positive terminal of the second headset 302, it cancels out the crosstalk voltage at the negative terminal of the second headset 302, thereby eliminating the crosstalk voltage of the second headset 302.
[0082] When the USB earphone is plugged in correctly and the voltage output by the first power amplifier PA1 is less than the voltage output by the second power amplifier PA2, the first microphone channel 203 collects the voltage across the third switch module 103, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module 205, and the crosstalk processing module 205 sends the digital signal to the DAC corresponding to the first power amplifier PA1. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier PA1. That is, through the first microphone channel 203 and the crosstalk processing module 205, a voltage signal identical to the crosstalk voltage at the negative terminal of the first earphone 301 is generated at the positive terminal of the first power amplifier PA1. After this voltage signal is output to the positive terminal of the first earphone 301, it cancels out the crosstalk voltage at the negative terminal of the first earphone 301, thereby eliminating the crosstalk voltage of the first earphone 301.
[0083] When the USB earphone is plugged in reversely and the voltage output by the first power amplifier PA1 is greater than the voltage output by the second power amplifier PA2, the second microphone channel 204 collects the voltage across the fourth switch module 104, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module 205, and the crosstalk processing module 205 sends the digital signal to the DAC corresponding to the second power amplifier PA2. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier PA2. That is, through the second microphone channel 204 and the crosstalk processing module 205, a voltage signal identical to the crosstalk voltage at the negative terminal of the second earphone 302 is generated at the positive terminal of the second power amplifier PA2. After this voltage signal is output to the positive terminal of the second earphone 302, it cancels out the crosstalk voltage at the negative terminal of the second earphone 302, thereby eliminating the crosstalk voltage of the second earphone 302.
[0084] When the USB earphone is plugged in reversely and the voltage output by the first power amplifier PA1 is less than the voltage output by the second power amplifier PA2, the second microphone channel 204 collects the voltage across the fourth switch module 104, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module 205, and the crosstalk processing module 205 sends the digital signal to the DAC corresponding to the first power amplifier PA1. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier PA1. That is, through the second microphone channel 204 and the crosstalk processing module 205, a voltage signal identical to the crosstalk voltage at the negative terminal of the first earphone 301 is generated at the positive terminal of the first power amplifier PA1. After this voltage signal is output to the positive terminal of the first earphone 301, it cancels out the crosstalk voltage at the negative terminal of the first earphone 301, thereby eliminating the crosstalk voltage of the first earphone 301.
[0085] In the embodiments of the present application, the crosstalk voltage of the earphone can be eliminated, and the earphone sound effect can be improved.
[0086] In some possible implementations of the embodiments of the present application, the protection circuit may further include: a first voltage acquisition module and a second voltage acquisition module; two input ends of the first voltage acquisition module are respectively connected to the first end and the second end of the third switch module; two input ends of the second voltage acquisition module are respectively connected to the first end and the second end of the fourth switch module; output ends of the first voltage acquisition module and the second voltage acquisition module are respectively connected to a processor of the electronic device; the processor is connected to an audio codec chip, and the processor is configured to control the audio codec chip to input a voltage for outputting crosstalk cancellation to the positive input end of the second power amplifier or the positive input end of the first power amplifier. As Figure 8 shown, Figure 8 is the seventh structural schematic diagram of the protection circuit provided by the embodiments of the present application.
[0087] In Figure 8 , the protection circuit 100 includes a first switch module 101, a second switch module 102, a third switch module 103, a fourth switch module 104, a first voltage acquisition module 105, and a second voltage acquisition module 106.
[0088] The first end of the first switch module 101 is connected to the output end of the first power amplifier PA1 in the audio codec chip 200, and the first end of the second switch module 102 is connected to the output end of the second power amplifier PA2 in the audio codec chip 200.
[0089] When the USB headset 300 is inserted correctly, the second end of the first switch module 101 is connected to the first end of the first earphone 301 included in the USB headset 300; the second end of the second switch module 102 is connected to the first end of the second earphone 302 included in the USB headset 300; the first end of the third switch module 103 is respectively connected to the positive input end of the first power amplifier PA1, the positive input end of the second power amplifier PA2, and the ground; the second end of the third switch module 103 is respectively connected to the second end of the first earphone 301 and the second end of the second earphone 302.
[0090] When the USB headset 300 is inserted reversely, the second end of the first switch module 101 is connected to the first end of the second earphone 302; the second end of the second switch module 102 is connected to the first end of the first earphone 301; the first end of the fourth switch module 104 is respectively connected to the positive input end of the first power amplifier PA1, the positive input end of the second power amplifier PA2, and the ground; the second end of the fourth switch module 104 is respectively connected to the second end of the first earphone 301 and the second end of the second earphone 302.
[0091] The two input ends of the first voltage acquisition module 105 are respectively connected to the first end and the second end of the third switch module 103; the two input ends of the second voltage acquisition module 106 are respectively connected to the first end and the second end of the fourth switch module 104; the output ends of the first voltage acquisition module 105 and the second voltage acquisition module 106 are respectively connected to the processor 400 of the electronic device; the processor 400 is connected to the audio codec chip 200, and the processor 400 is configured to control the audio codec chip 200 to input a voltage for outputting crosstalk cancellation to the positive input end of the second power amplifier PA2 or the positive input end of the first power amplifier PA1.
[0092] In some possible implementations of the embodiments of the present application, both the first voltage acquisition module and the second voltage acquisition module in the embodiments of the present application may include: an analog-to-digital converter (ADC). The two input ends of the ADC serve as the two input ends of the voltage acquisition module. The ADC obtains a voltage according to the two analog voltage signals it acquires, converts the voltage into a digital signal, and outputs the digital signal to the processor. The processor fuses the digital signal with the original digital signal, and sends the fused digital signal to the audio codec chip. The audio codec chip sends it to the digital-to-analog converter (DAC) corresponding to the first power amplifier or the DAC corresponding to the second power amplifier. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the corresponding power amplifier.
[0093] When the USB headset is plugged in correctly and the voltage output by the first power amplifier PA1 is greater than the voltage output by the second power amplifier PA2, the first voltage acquisition module 105 acquires the voltage across the third switch module 103, converts the voltage into a digital signal, and outputs the digital signal to the processor 400. The processor 400 fuses the digital signal with the original digital signal corresponding to the second power amplifier PA2, and sends the fused digital signal to the audio codec chip 200. The audio codec chip 200 sends it to the DAC corresponding to the second power amplifier PA2. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier PA2. That is, through the first voltage acquisition module 105 and the processor 400, a voltage signal is generated at the positive terminal of the second power amplifier PA2. After the voltage signal is output to the positive terminal of the second headset 302, the crosstalk voltage at the negative terminal of the second headset 302 will be cancelled, thereby eliminating the crosstalk voltage of the second headset 302.
[0094] When the USB earphone is plugged in correctly and the voltage output by the first power amplifier PA1 is less than the voltage output by the second power amplifier PA2, the first voltage acquisition module 105 acquires the voltage across the third switch module 103, converts the voltage into a digital signal, and outputs the digital signal to the processor 400. The processor 400 fuses the digital signal with the original digital signal corresponding to the first power amplifier PA1, and sends the fused digital signal to the audio codec chip 200. The audio codec chip 200 sends it to the DAC corresponding to the first power amplifier PA1, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier PA1. That is, through the first voltage acquisition module 105 and the processor 400, a voltage signal is generated at the positive terminal of the first power amplifier PA1. After the voltage signal is output to the positive terminal of the first earphone 301, the crosstalk voltage at the negative terminal of the first earphone 301 will be cancelled, thereby eliminating the crosstalk voltage of the first earphone 301.
[0095] When the USB earphone is plugged in reversely and the voltage output by the first power amplifier PA1 is greater than the voltage output by the second power amplifier PA2, the second voltage acquisition module 106 acquires the voltage across the fourth switch module 104, converts the voltage into a digital signal, and outputs the digital signal to the processor 400. The processor 400 fuses the digital signal with the original digital signal corresponding to the second power amplifier PA2, and sends the fused digital signal to the audio codec chip 200. The audio codec chip 200 sends it to the DAC corresponding to the second power amplifier PA2, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier PA2. That is, through the second voltage acquisition module 106 and the processor 400, a voltage signal is generated at the positive terminal of the second power amplifier PA2. After the voltage signal is output to the positive terminal of the second earphone 302, the crosstalk voltage at the negative terminal of the second earphone 302 will be cancelled, thereby eliminating the crosstalk voltage of the second earphone 302.
[0096] When the USB earphone is inserted reversely and the voltage output by the first power amplifier PA1 is less than the voltage output by the second power amplifier PA2, the second voltage acquisition module 106 acquires the voltage across the fourth switch module 104, converts the voltage into a digital signal, and outputs the digital signal to the processor 400. The processor 400 fuses the digital signal with the original digital signal corresponding to the first power amplifier PA1, and sends the fused digital signal to the audio codec chip 200. The audio codec chip 200 sends it to the DAC corresponding to the first power amplifier PA1, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier PA1. That is, through the second voltage acquisition module 106 and the processor 400, a voltage signal is generated at the positive terminal of the first power amplifier PA1. After the voltage signal is output to the positive terminal of the first earphone 301, the crosstalk voltage at the negative terminal of the first earphone 301 will be cancelled, thereby eliminating the crosstalk voltage of the first earphone 301.
[0097] In the embodiment of the present application, it is not limited by the number of microphone channels in the audio codec chip. Through an additional voltage acquisition module, the crosstalk voltage of the earphone can be eliminated, and the earphone sound effect can be improved.
[0098] The specific structure of the protection circuit is as Figure 9 and Figure 10 shown, Figure 9 is the eighth structural schematic diagram of the protection circuit provided by the embodiment of the present application, Figure 10 is the ninth structural schematic diagram of the protection circuit provided by the embodiment of the present application.
[0099] Among them, Figure 9 and Figure 10 are both schematic diagrams when the USB earphone is inserted correctly and the USB earphone is an earphone with a microphone component. Figure 9 The crosstalk voltage is eliminated through the microphone channel and the crosstalk processing module of the audio codec chip, Figure 10 and the crosstalk voltage is eliminated through the voltage acquisition module and the processor.
[0100] It should be noted that, Figure 9 and Figure 10 do not show the connection relationship between the switching tube and the overvoltage protection module. The connection relationship between the switching tube and the overvoltage protection module can refer to the embodiment shown in Figure 3 shown.
[0101] The embodiment of the present application also provides an electronic device, which includes a processor, an audio codec chip, and the protection circuit provided by the embodiment of the present application.
[0102] In some possible implementations of the embodiments of the present application, the audio codec chip includes: a crosstalk processing module, a first microphone channel, and a second microphone channel; two input ends of the crosstalk processing module are respectively connected to the output end of the first microphone channel and the output end of the second microphone channel; two output ends of the crosstalk processing module are respectively connected to the positive input end of the first power amplifier and the positive input end of the second power amplifier; two input ends of the first microphone channel are respectively connected to the first end and the second end of the third switch module; two input ends of the second microphone channel are respectively connected to the first end and the second end of the fourth switch module.
[0103] When the USB headset is plugged in correctly and the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, the first microphone channel collects the voltage across the third switch module, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module, and the crosstalk processing module sends the digital signal to the DAC corresponding to the second power amplifier. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier. That is, through the first microphone channel and the crosstalk processing module, a voltage signal identical to the crosstalk voltage at the negative terminal of the second headset is generated at the positive terminal of the second power amplifier. After this voltage signal is output to the positive terminal of the second headset, it cancels out the crosstalk voltage at the negative terminal of the second headset, thereby eliminating the crosstalk voltage of the second headset.
[0104] When the USB headset is plugged in correctly and the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, the first microphone channel collects the voltage across the third switch module, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module, and the crosstalk processing module sends the digital signal to the DAC corresponding to the first power amplifier. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier. That is, through the second microphone channel and the crosstalk processing module, a voltage signal identical to the crosstalk voltage at the negative terminal of the first headset is generated at the positive terminal of the first power amplifier. After this voltage signal is output to the positive terminal of the first headset, it cancels out the crosstalk voltage at the negative terminal of the first headset, thereby eliminating the crosstalk voltage of the first headset.
[0105] When the USB earphone is inserted reversely and the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, the second microphone channel collects the voltage across the fourth switch module, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module, the crosstalk processing module sends the digital signal to the DAC corresponding to the second power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier. That is, through the second microphone channel and the crosstalk processing module, a voltage signal identical to the crosstalk voltage at the negative terminal of the second earphone is generated at the positive terminal of the second power amplifier. After the voltage signal is output to the positive terminal of the second earphone, it cancels out the crosstalk voltage at the negative terminal of the second earphone, thereby eliminating the crosstalk voltage of the second earphone.
[0106] When the USB earphone is inserted reversely and the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, the second microphone channel collects the voltage across the fourth switch module, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module, the crosstalk processing module sends the digital signal to the DAC corresponding to the first power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier. That is, through the second microphone channel and the crosstalk processing module, a voltage signal identical to the crosstalk voltage at the negative terminal of the first earphone is generated at the positive terminal of the first power amplifier. After the voltage signal is output to the positive terminal of the first earphone, it cancels out the crosstalk voltage at the negative terminal of the first earphone, thereby eliminating the crosstalk voltage of the first earphone.
[0107] In the embodiment of the present application, the crosstalk voltage of the earphone can be eliminated, improving the earphone sound effect.
[0108] In some possible implementations of the embodiment of the present application, the protection circuit includes a first voltage acquisition module and a second voltage acquisition module; the processor includes an audio digital module; the two input terminals of the first voltage acquisition module are respectively connected to the first end and the second end of the third switch module; the two input terminals of the second voltage acquisition module are respectively connected to the first end and the second end of the fourth switch module; the output terminals of the first voltage acquisition module and the second voltage acquisition module are respectively connected to the audio digital module; the audio digital module is connected to the audio codec chip, and the audio digital module fuses the original audio digital signal and the digital signal obtained through the conversion of the voltage acquisition module to obtain the fused data information, and sends the fused digital signal to the audio codec chip.
[0109] When the USB headset is plugged in correctly and the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, the first voltage acquisition module acquires the voltage across the third switch module, converts the voltage into a digital signal, outputs the digital signal to the processor. The audio digital module in the processor fuses the digital signal with the original digital signal corresponding to the second power amplifier, sends the fused digital signal to the audio codec chip. The audio codec chip sends it to the DAC corresponding to the second power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier. That is, through the first voltage acquisition module and the processor, a voltage signal is generated at the positive terminal of the second power amplifier. After the voltage signal is output to the positive terminal of the second headset, the crosstalk voltage at the negative terminal of the second headset will be cancelled, thereby eliminating the crosstalk voltage of the second headset.
[0110] When the USB headset is plugged in correctly and the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, the first voltage acquisition module acquires the voltage across the third switch module, converts the voltage into a digital signal, outputs the digital signal to the processor. The audio digital module in the processor fuses the digital signal with the original digital signal corresponding to the first power amplifier, sends the fused digital signal to the audio codec chip. The audio codec chip sends it to the DAC corresponding to the first power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier. That is, through the first voltage acquisition module and the processor, a voltage signal is generated at the positive terminal of the first power amplifier. After the voltage signal is output to the positive terminal of the first headset, the crosstalk voltage at the negative terminal of the first headset will be cancelled, thereby eliminating the crosstalk voltage of the first headset.
[0111] When the USB headset is plugged in reversely and the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, the second voltage acquisition module acquires the voltage across the fourth switch module, converts the voltage into a digital signal, outputs the digital signal to the processor. The audio digital module in the processor fuses the digital signal with the original digital signal corresponding to the second power amplifier, sends the fused digital signal to the audio codec chip. The audio codec chip sends it to the DAC corresponding to the second power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier. That is, through the second voltage acquisition module and the processor, a voltage signal is generated at the positive terminal of the second power amplifier. After the voltage signal is output to the positive terminal of the second headset, the crosstalk voltage at the negative terminal of the second headset will be cancelled, thereby eliminating the crosstalk voltage of the second headset.
[0112] When the USB earphone is inserted reversely and the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, the second voltage acquisition module acquires the voltage across the fourth switch module, converts the voltage into a digital signal, and outputs the digital signal to the processor. The audio digital module in the processor fuses the digital signal with the original digital signal corresponding to the first power amplifier, sends the fused digital signal to the audio codec chip, and the audio codec chip sends it to the DAC corresponding to the first power amplifier. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier. That is, through the second voltage acquisition module and the processor, a voltage signal is generated at the positive terminal of the first power amplifier. After the voltage signal is output to the positive terminal of the first earphone, the crosstalk voltage at the negative terminal of the first earphone will be cancelled, thereby eliminating the crosstalk voltage of the first earphone.
[0113] In the embodiment of the present application, it is not limited by the number of microphone channels in the audio codec chip. Through an additional voltage acquisition module, the crosstalk voltage of the earphone can be eliminated, and the sound effect of the earphone can be improved.
[0114] The electronic device in the embodiment of the present application can be a terminal or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc. The embodiment of the present application does not make a specific limitation.
[0115] Figure 11 It is a schematic diagram of the hardware structure of the electronic device implementing the embodiment of the present application.
[0116] The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110 and other components.
[0117] Those skilled in the art can understand that the electronic device 1100 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 1110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 11 The structure of the electronic device shown does not limit the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0118] Among them, the electronic device 1100 further includes an audio codec chip and the protection circuit provided by the embodiments of the present application.
[0119] In some possible implementations of the embodiments of the present application, the audio codec chip includes: a crosstalk processing module, a first microphone channel, and a second microphone channel; two input ends of the crosstalk processing module are respectively connected to the output ends of the first microphone channel and the second microphone channel; two output ends of the crosstalk processing module are respectively connected to the positive input ends of the first power amplifier and the second power amplifier; two input ends of the first microphone channel are respectively connected to the first end and the second end of the third switch module; two input ends of the second microphone channel are respectively connected to the first end and the second end of the fourth switch module.
[0120] When the USB headset is properly inserted and the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, the first microphone channel collects the voltage across the third switch module, converts the voltage into a digital signal, and outputs the digital signal to the crosstalk processing module. The crosstalk processing module sends the digital signal to the DAC corresponding to the second power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier. That is, through the first microphone channel and the crosstalk processing module, a voltage signal identical to the crosstalk voltage at the negative terminal of the second headset is generated at the positive terminal of the second power amplifier. After this voltage signal is output to the positive terminal of the second headset, it cancels out the crosstalk voltage at the negative terminal of the second headset, thereby eliminating the crosstalk voltage of the second headset.
[0121] When the USB earphone is plugged in normally and the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, the first microphone channel collects the voltage across the third switch module, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module, and the crosstalk processing module sends the digital signal to the DAC corresponding to the first power amplifier. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier. That is, through the second microphone channel and the crosstalk processing module, a voltage signal identical to the crosstalk voltage at the negative terminal of the first earphone is generated at the positive terminal of the first power amplifier. After this voltage signal is output to the positive terminal of the first earphone, it cancels out the crosstalk voltage at the negative terminal of the first earphone, thereby eliminating the crosstalk voltage of the first earphone.
[0122] When the USB earphone is plugged in reversely and the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, the second microphone channel collects the voltage across the fourth switch module, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module, and the crosstalk processing module sends the digital signal to the DAC corresponding to the second power amplifier. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier. That is, through the second microphone channel and the crosstalk processing module, a voltage signal identical to the crosstalk voltage at the negative terminal of the second earphone is generated at the positive terminal of the second power amplifier. After this voltage signal is output to the positive terminal of the second earphone, it cancels out the crosstalk voltage at the negative terminal of the second earphone, thereby eliminating the crosstalk voltage of the second earphone.
[0123] When the USB earphone is plugged in reversely and the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, the second microphone channel collects the voltage across the fourth switch module, converts the voltage into a digital signal, outputs the digital signal to the crosstalk processing module, and the crosstalk processing module sends the digital signal to the DAC corresponding to the first power amplifier. The DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier. That is, through the second microphone channel and the crosstalk processing module, a voltage signal identical to the crosstalk voltage at the negative terminal of the first earphone is generated at the positive terminal of the first power amplifier. After this voltage signal is output to the positive terminal of the first earphone, it cancels out the crosstalk voltage at the negative terminal of the first earphone, thereby eliminating the crosstalk voltage of the first earphone.
[0124] In the embodiments of the present application, the crosstalk voltage of the earphone can be eliminated, improving the earphone sound effect.
[0125] In some possible implementations of the embodiments of the present application, the protection circuit includes a first voltage acquisition module and a second voltage acquisition module; the processor includes an audio digital module; two input ends of the first voltage acquisition module are respectively connected to the first end and the second end of the third switch module; two input ends of the second voltage acquisition module are respectively connected to the first end and the second end of the fourth switch module; the output ends of the first voltage acquisition module and the second voltage acquisition module are respectively connected to the audio digital module; the audio digital module is connected to an audio codec chip, and the audio digital module fuses the original audio digital signal and the digital signal obtained by conversion through the voltage acquisition module to obtain the fused data information, and sends the fused digital signal to the audio codec chip.
[0126] When the USB headset is plugged in properly and the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, the first voltage acquisition module acquires the voltage across the third switch module, converts the voltage into a digital signal, and outputs the digital signal to the processor. The audio digital module in the processor fuses the digital signal with the original digital signal corresponding to the second power amplifier, sends the fused digital signal to the audio codec chip, the audio codec chip sends it to the DAC corresponding to the second power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier. That is, through the first voltage acquisition module and the processor, a voltage signal is generated at the positive terminal of the second power amplifier. After the voltage signal is output to the positive terminal of the second headset, the crosstalk voltage at the negative terminal of the second headset will be cancelled, thereby eliminating the crosstalk voltage of the second headset.
[0127] When the USB headset is plugged in properly and the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, the first voltage acquisition module acquires the voltage across the third switch module, converts the voltage into a digital signal, and outputs the digital signal to the processor. The audio digital module in the processor fuses the digital signal with the original digital signal corresponding to the first power amplifier, sends the fused digital signal to the audio codec chip, the audio codec chip sends it to the DAC corresponding to the first power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier. That is, through the first voltage acquisition module and the processor, a voltage signal is generated at the positive terminal of the first power amplifier. After the voltage signal is output to the positive terminal of the first headset, the crosstalk voltage at the negative terminal of the first headset will be cancelled, thereby eliminating the crosstalk voltage of the first headset.
[0128] When the USB earphone is inserted reversely and the voltage output by the first power amplifier is greater than the voltage output by the second power amplifier, the second voltage acquisition module acquires the voltage across the fourth switch module, converts the voltage into a digital signal, outputs the digital signal to the processor. The audio digital module in the processor fuses the digital signal with the original digital signal corresponding to the second power amplifier, sends the fused digital signal to the audio codec chip. The audio codec chip sends it to the DAC corresponding to the second power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the second power amplifier. That is, through the second voltage acquisition module and the processor, a voltage signal is generated at the positive terminal of the second power amplifier. After the voltage signal is output to the positive terminal of the second earphone, the crosstalk voltage at the negative terminal of the second earphone will be cancelled, thereby eliminating the crosstalk voltage of the second earphone.
[0129] When the USB earphone is inserted reversely and the voltage output by the first power amplifier is less than the voltage output by the second power amplifier, the second voltage acquisition module acquires the voltage across the fourth switch module, converts the voltage into a digital signal, outputs the digital signal to the processor. The audio digital module in the processor fuses the digital signal with the original digital signal corresponding to the first power amplifier, sends the fused digital signal to the audio codec chip. The audio codec chip sends it to the DAC corresponding to the first power amplifier, and the DAC converts the digital signal into an analog voltage signal and outputs it to the positive terminal of the first power amplifier. That is, through the second voltage acquisition module and the processor, a voltage signal is generated at the positive terminal of the first power amplifier. After the voltage signal is output to the positive terminal of the first earphone, the crosstalk voltage at the negative terminal of the first earphone will be cancelled, thereby eliminating the crosstalk voltage of the first earphone.
[0130] In the embodiment of the present application, it is not limited by the number of microphone channels in the audio codec chip. Through an additional voltage acquisition module, the crosstalk voltage of the earphone can be eliminated, and the earphone sound effect can be improved.
[0131] It should be understood that in the embodiments of the present application, the input unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042. The graphics processor 11041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of, for example, a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also referred to as a touch screen. The touch panel 11071 may include two parts: a touch detection device and a touch controller. The other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.
[0132] The memory 1109 can be used to store software programs and various data. The memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1109 can include a volatile memory or a non-volatile memory, or the memory 1109 can include both a volatile and a non-volatile memory. Among them, the non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 1109 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.
[0133] The processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 1110 either.
[0134] It should be noted that in this text, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or apparatus including a series of elements not only includes those elements but also other elements not expressly listed, or elements inherent to such process, method, article or apparatus. Without further limitation, an element defined by the statement "including one..." does not exclude the presence of additional identical elements in the process, method, article or apparatus including that element. In addition, it should be pointed out that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0135] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0136] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Those of ordinary skill in the art, under the inspiration of the present application and without departing from the purpose of the present application and the scope protected by the claims, can still make many forms, all of which fall within the protection scope of the present application.
Claims
1. A protection circuit, characterized in that, The protection circuit includes: a first switch module, a second switch module, a third switch module, and a fourth switch module; The first end of the first switch module is connected to the output end of the first power amplifier in the audio codec chip, and the first end of the second switch module is connected to the output end of the second power amplifier in the audio codec chip; When the universal serial bus (USB) headset is plugged in correctly, the second end of the first switch module is connected to the first end of the first earphone included in the USB headset; the second end of the second switch module is connected to the first end of the second earphone included in the USB headset; the first end of the third switch module is connected to the positive input end of the first power amplifier, the positive input end of the second power amplifier, and the ground respectively; the second end of the third switch module is connected to the second end of the first earphone and the second end of the second earphone respectively; When the USB headset is plugged in reversely, the second end of the first switch module is connected to the first end of the first earphone; the second end of the second switch module is connected to the first end of the second earphone; the first end of the fourth switch module is connected to the positive input end of the first power amplifier, the positive input end of the second power amplifier, and the ground respectively; the second end of the fourth switch module is connected to the second end of the first earphone and the second end of the second earphone respectively.
2. The protection circuit according to claim 1, wherein, The first switch module, the second switch module, the third switch module, and the fourth switch module each include a first resistor, a second resistor, and a switching transistor; The first end of the first resistor serves as the first end of the switch module, the second end of the first resistor is connected to the first end of the switching transistor, the second end of the switching transistor is connected to the first end of the second resistor, and the second end of the second resistor serves as the second end of the first switch module; The control end of the switching transistor is connected to the output end of the overvoltage protection module in the audio codec chip.
3. The protection circuit according to claim 2, wherein The switching transistor includes: a metal-oxide-semiconductor field-effect transistor.
4. The protection circuit according to claim 1, wherein When the USB headset is plugged in correctly, the first end of the fourth switch module is connected to the audio receiving unit in the audio codec chip, and the second end of the fourth switch module is connected to the first end of the microphone assembly included in the USB headset; the second end of the microphone assembly is connected to the second end of the third switch module; When the USB headset is plugged in reversely, the first end of the third switch module is connected to the audio receiving unit, and the second end of the third switch module is connected to the first end of the microphone assembly; the second end of the microphone assembly is connected to the second end of the fourth switch module.
5. The protection circuit according to any one of claims 1 to 4, wherein The first end and the second end of the third switch module are respectively connected to the two input ends of the first microphone channel in the audio codec chip; The first end and the second end of the fourth switch module are respectively connected to two input ends of a second microphone channel in the audio codec chip; The output end of the first microphone channel and the output end of the second microphone channel are respectively connected to the input end of a crosstalk processing module in the audio codec chip; The output end of the crosstalk processing module is respectively connected to the positive input end of the first power amplifier and the positive input end of the second power amplifier, and the crosstalk processing module is used to output a voltage for eliminating crosstalk.
6. The protection circuit according to any one of claims 1 to 4, characterized in that, The protection circuit further includes: a first voltage acquisition module and a second voltage acquisition module; Two input ends of the first voltage acquisition module are respectively connected to the first end and the second end of the third switch module; Two input ends of the second voltage acquisition module are respectively connected to the first end and the second end of the fourth switch module; The output end of the first voltage acquisition module and the output end of the second voltage acquisition module are respectively connected to the processor of the electronic device; The processor is connected to the audio codec chip, and the processor is used to control the audio codec chip to input a voltage for outputting crosstalk cancellation to the positive input end of the second power amplifier or the positive input end of the first power amplifier.
7. The protection circuit according to claim 6, wherein Both the first voltage acquisition module and the second voltage acquisition module include: an analog-to-digital converter; Two input ends of the analog-to-digital converter serve as two input ends of the voltage acquisition module, and the output end of the analog-to-digital converter serves as the output end of the voltage acquisition module.
8. An electronic device, characterized in that, The electronic device includes: A processor, an audio codec chip, and the protection circuit according to any one of claims 1 to 7.
9. The electronic device according to claim 8, wherein The audio codec chip includes: a crosstalk processing module, a first microphone channel, and a second microphone channel; Two input ends of the crosstalk processing module are respectively connected to the output end of the first microphone channel and the output end of the second microphone channel; Two output ends of the crosstalk processing module are respectively connected to the positive input end of the first power amplifier and the positive input end of the second power amplifier; Two input ends of the first microphone channel are respectively connected to the first end and the second end of the third switch module; Two input ends of the second microphone channel are respectively connected to the first end and the second end of the fourth switch module.
10. The electronic device according to claim 8, wherein The protection circuit includes a first voltage acquisition module and a second voltage acquisition module; the processor includes an audio digital module; Two input ends of the first voltage acquisition module are respectively connected to the first end and the second end of the third switch module; Two input ends of the second voltage acquisition module are respectively connected to the first end and the second end of the fourth switch module; The output end of the first voltage acquisition module and the output end of the second voltage acquisition module are respectively connected to the audio digital module; The audio digital module is connected to the audio codec chip, and the audio digital module fuses the original audio digital signal and the digital signal obtained by conversion through the voltage acquisition module to obtain fused data information, and sends the fused digital signal to the audio codec chip.