Circuit and method for detecting state of loudspeaker connected to power amplifier

By using two comparators to detect the differential signal of its output pulse in a Class D amplifier, the problems of high horn state detection cost and large leakage current are solved, and accurate detection of horn state is achieved, saving costs and reducing current consumption.

CN118945559APending Publication Date: 2024-11-12SHENZHEN LANYOU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310523956.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-10
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, speaker status detection has problems such as high cost, large leakage current, complex logic control and limited state detection. Especially in Class D amplifiers, it is difficult to effectively detect the normal, open circuit, short ground and short power supply of the speaker. state.

Method used

Two comparators are used to detect the differential signal of the output pulse of the amplifier, and the processor judges the status of the speaker. Using the high input impedance characteristics of the comparator, it avoids the cost of the built-in detection function and the leakage current of the external power supply, and realizes the speaker Accurate detection of status.

Benefits of technology

The detection of four states of the speaker, including normal, open circuit, short ground and short power supply, saves project selection costs, reduces current consumption, and does not affect the attenuation of the audio output or generates interference signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945559A_ABST
    Figure CN118945559A_ABST
Patent Text Reader

Abstract

The invention discloses a circuit for detecting the state of a loudspeaker connected to a power amplifier. The circuit comprises a first comparator, a second comparator and a processor. By utilizing the characteristic that the output signal of the power amplifier is a differential signal, the output pulse of the power amplifier is detected through the two comparators, and the processor judges the output result of the comparators, so that the state detection of the loudspeaker can be realized. Therefore, the detection function of a loudspeaker does not need to be built in the power amplifier, and the model selection cost of a project can be saved; an external extra power supply is not needed, the state of the loudspeaker can be detected through the output characteristics of the power amplifier, and the normal state, the open circuit state, the short ground state and the short power supply state of the loudspeaker can be detected respectively; the characteristic of high input impedance of the comparator is utilized, so that the bad influence of attenuation on audio output is avoided; the power consumption current is small, the attenuation of audio output is not influenced, and interference signals are not brought; and the voltage requirements of different processors can be matched by setting the voltage of the comparator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of circuit technology, and in particular to a circuit and method for detecting the state of a speaker connected to a power amplifier. Background Art

[0002] With the development of the communications industry, more and more devices need voice call services, such as the emergency call ECALL function of cars, and the sound transmission function also exists in devices such as televisions, computers or mobile phones. At present, there are four types of speaker drive amplifiers, namely Class A, Class B, Class AB and Class D. Among them, Class D amplifiers work in a switching state, so they have the characteristics of high efficiency, small size and low power dissipation, and there are more and more application scenarios on the market. Class D amplifiers can achieve the function of sound amplification in conjunction with speakers, but during work, the speakers will inevitably be affected by external factors and their own quality, resulting in no sound, so the actual circuit needs to detect the state of the speaker in real time.

[0003] In the prior art, there are two main ways to detect the speaker status. One is to build a speaker status detection mechanism inside the Class D amplifier. At this time, the processor can directly read the status of the speaker through the communication interface such as IIC. However, this solution has requirements for the selection of Class D amplifiers and will bring the risk of increased costs. At the same time, the software configuration of related interfaces is required to read the status, so there are disadvantages of difficulty and high cost in software development. The other is to add a power supply, multiple switches and pull-up and pull-down resistors to the output line of the amplifier separately, and the processor reads the status information of the speaker through the ADC interface. However, because of the pull-up and pull-down resistors, this solution has leakage. Because there are multiple switches that need to be controlled and multiple ADCs that need to be collected, and it can only detect the status of the speaker in place, short ground, etc., all this solution has the disadvantages of large leakage current, complex logic control and limited speaker status detection.

[0004] Based on this, a new solution is needed. Summary of the invention

[0005] The main purpose of the present invention is to provide a circuit and method for detecting the status of a speaker connected to a power amplifier.

[0006] To achieve the above-mentioned purpose, the present invention provides a circuit for detecting the state of a speaker connected to a power amplifier, comprising a first comparator, a second comparator and a processor, wherein the non-inverting input end of the first comparator is connected to the first output end of the power amplifier and the first input end of the speaker, the first output end of the power amplifier is also connected to the first input end of the speaker, the inverting input end of the first comparator is connected to a reference voltage, and the output end of the first comparator is connected to the first input end of the processor; the non-inverting input end of the second comparator is connected to the second output end of the power amplifier and the second input end of the speaker, the second output end of the power amplifier is also connected to the second input end of the speaker, the inverting input end of the second comparator is connected to the reference voltage, and the output end of the second comparator is connected to the second input end of the processor, the first comparator and the second comparator respectively detect the output pulse of the power amplifier, and the processor judges the state of the speaker according to the output results of the first comparator and the second comparator.

[0007] In the circuit for detecting the state of a speaker connected to a power amplifier provided by the present invention, the output pulse of the power amplifier is a differential signal.

[0008] In the circuit for detecting the state of a speaker connected to a power amplifier provided by the present invention, when the output result of the first comparator and the output result of the second comparator are both high levels, the processor determines that the state of the speaker is short-circuited to the power supply; when the output result of the first comparator and the output result of the second comparator are both low levels, the processor determines that the state of the speaker is short-circuited to the ground; when the output result of the first comparator and the output result of the second comparator are both periodically changing data, the processor determines that the state of the speaker is normal.

[0009] In the circuit for detecting the state of a speaker connected to a power amplifier provided by the present invention, it also includes an output switch, wherein a first input end of the output switch is connected to a second output end of the power amplifier, an enable end of the output switch is connected to an output end of the processor, and an output end of the output switch is connected to a second input end of the speaker.

[0010] In the circuit for detecting the state of a speaker connected to a power amplifier provided by the present invention, the processor outputs a low level to the output switch, and when the output result of the second comparator is not periodic changing data, the processor determines that the speaker state is open; when the output result of the second comparator is periodic changing data, the processor outputs a high level to the output switch.

[0011] In addition, to achieve the above object, the present invention also provides a method for detecting the state of a speaker connected to a power amplifier, comprising:

[0012] Collecting the output pulse of the first output terminal of the power amplifier by a first comparator;

[0013] Collecting the output pulse of the second output terminal of the power amplifier by a second comparator; and

[0014] The processor determines the state of the speaker according to the output results of the first comparator and the second comparator.

[0015] In the method for detecting the state of a speaker connected to a power amplifier provided by the present invention, the output pulse of the power amplifier is a differential signal.

[0016] In the method for detecting the state of a speaker connected to a power amplifier provided by the present invention, when the output result of the first comparator and the output result of the second comparator are both high levels, the processor determines that the state of the speaker is short-circuited to the power supply; when the output result of the first comparator and the output result of the second comparator are both low levels, the processor determines that the state of the speaker is short-circuited to the ground; when the output result of the first comparator and the output result of the second comparator are both periodically changing data, the processor determines that the state of the speaker is normal.

[0017] In the method for detecting the state of a speaker connected to a power amplifier provided by the present invention, before the step of collecting the output pulse of the first output terminal of the power amplifier by the first comparator, the method further includes:

[0018] The processor outputs a low level to the output switch.

[0019] In the method for detecting the state of a speaker connected to a power amplifier provided by the present invention, when the output result of the second comparator is not periodic changing data, the processor determines that the speaker state is open circuit; when the output result of the second comparator is periodic changing data, the processor outputs a high level to the output switch.

[0020] The circuit and method for detecting the state of the speaker connected to the power amplifier provided by the present invention have the following beneficial effects: the present invention utilizes the characteristic that the output signal of the power amplifier is a differential signal, firstly detects the waveform of the output pulse of the power amplifier through two comparators respectively, and then the processor judges the output result of the comparator, so as to realize the detection of four states of the speaker, namely, normal, open circuit, short ground and short power supply. Therefore, there is no need to build the detection function of the speaker into the power amplifier, which can save the selection cost of the project; the detection of the speaker state can be completed through the output characteristics of the power amplifier itself without using an external additional power supply, and the four states of the speaker, namely, normal, open circuit, short ground and short power supply, can be detected respectively; the high input impedance characteristic of the comparator is utilized, and the adverse effect of attenuation on the audio output is not generated; the current consumption is small, and it will not affect the attenuation of the audio output, and will not bring interference signals; the voltage requirements of different processors can be matched by setting the voltage of the comparator. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below. Obviously, the drawings in the following description are only embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without creative work:

[0022] Figure 1 A schematic diagram of a circuit for detecting the state of a speaker connected to a power amplifier according to an embodiment of the present invention;

[0023] Figure 2 A schematic diagram of a circuit for detecting the state of a speaker connected to a power amplifier according to another embodiment of the present invention;

[0024] Figure 3 The flowchart of a method for detecting the status of a speaker connected to a power amplifier provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0025] In order to facilitate understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Typical embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0027] The general idea of ​​the present invention is: in view of the high cost problem of speaker status detection through built-in software in the prior art, and the large leakage current, complex logic control and limited speaker status detection problems of speaker status detection through external power supply, resistor and switch, the output signal of the power amplifier is used as a differential signal, and the waveform of the output pulse of the power amplifier is first detected by two comparators, and then the processor judges the output result of the comparator, so that the four states of the speaker, namely, normal, open circuit, short ground and short power supply, can be detected. Therefore, there is no need to build a speaker detection function in the power amplifier, which can save the selection cost of the project; the speaker status can be detected by the output characteristics of the power amplifier itself without an external additional power supply, and the four states of the speaker, namely, normal, open circuit, short ground and short power supply, can be detected respectively; the high input impedance of the comparator is used, and the adverse effect of attenuation on the audio output will not be generated; the current consumption is small, and it will not affect the attenuation of the audio output, and will not bring interference signals; the voltage of the comparator can be set to match the voltage requirements of different processors.

[0028] In order to better understand the above-mentioned technical scheme, the above-mentioned technical scheme will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical scheme of the present application, rather than limitations on the technical scheme of the present application. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.

[0029] Embodiment 1

[0030] Reference Figure 1 , Figure 1 This is a schematic diagram of a circuit for detecting the status of a speaker connected to an amplifier according to the present invention. It can be applied to commercial vehicles, passenger cars and other communication fields with ECALL or other scenarios, and can also be applied to products with sound amplification in devices such as televisions, computers or mobile phones. The speaker in the present invention is a musical instrument that converts electrical signals into sounds. The impedance of common ECALL speakers on vehicles is generally 4Ω or 8Ω. The interior of the speaker can be equivalent to a series connection of a resistor and an inductor, where the resistance of the resistor and the inductor is very small, and the sum of them is only a few ohms. Therefore, in the present invention, the speaker can be understood as a wire path. Figure 1 In the illustrated embodiment, a Class D amplifier is used as an example for explanation. Those skilled in the art will appreciate that the present invention can also be applied to other types of amplifiers, as long as the output pulse of the amplifier is a differential signal, that is, when the amplifier is powered on but there is no input signal, the output signals SPK_P and SPK_N of the amplifier are differential signals, which jointly drive the output of the speaker, and the frequency, phase and amplitude of SPK_P and SPK_N are completely consistent when there is no signal input.

[0031] like Figure 1 As shown, the circuit for detecting the state of the speaker connected to the power amplifier of the present invention includes a first comparator 1, a second comparator 2 and a processor 3. The comparator is a circuit for identifying and comparing input signals. When the voltage of the in-phase input + is greater than the voltage of the inverting input -, the comparator outputs a high level, otherwise the comparator outputs a low level. The present invention includes 2 comparators, which respectively detect the output pulses SPK_P and SPK_N signals of the power amplifier. The processor 3 collects and processes the output signals of the 2-way first comparator and the second comparator, and judges the state of the speaker according to the processing results.

[0032] Specifically, in one embodiment of the present invention, the non-inverting input terminal of the first comparator 1 is connected to the first output terminal of the power amplifier 4 and the first input terminal of the speaker 5, the first output terminal of the power amplifier is also connected to the first input terminal of the speaker, the inverting input terminal of the first comparator 1 is connected to the reference voltage, and the output terminal of the first comparator is connected to the first input terminal of the processor. In the present invention, when the voltage of the first output signal SPK_P of the power amplifier is higher than the reference voltage, the first comparator outputs a high level, and when the voltage of SPK_P is lower than the reference voltage, the first comparator outputs a low level. The value of the reference voltage is higher than the lowest voltage of SPK_P and lower than the highest voltage.

[0033] Specifically, in one embodiment of the present invention, the in-phase input terminal of the second comparator 2 is connected to the second output terminal of the power amplifier 4 and the second input terminal of the speaker 5, the second output terminal of the power amplifier is also connected to the second input terminal of the speaker, the inverting input terminal of the second comparator 2 is connected to the reference voltage, and the output terminal of the second comparator is connected to the second input terminal of the processor. In the present invention, when the voltage of the second output signal SPK_N of the power amplifier is higher than the reference voltage, the second comparator outputs a high level, and when the voltage of SPK_N is lower than the reference voltage, the second comparator outputs a low level. The value of the reference voltage is higher than the lowest voltage of SPK_N and lower than the highest voltage.

[0034] Specifically, in one embodiment of the present invention, the first input terminal IO1 of the processor 3 receives the output result from the first comparator 1, the second input terminal IO2 of the processor 3 receives the output result from the second comparator 2, and generates a state judgment result according to the output results of the two comparators.

[0035] Furthermore, when the speaker is short-circuited to the ground, the voltage across the speaker will be clamped to be the same as the ground voltage 0V, and the voltage at the non-inverting input of the first comparator 1 and the second comparator 2 will be smaller than the reference voltage. According to the characteristics of the comparator, the output result of the first comparator and the output result of the second comparator will always be a low level 0. Therefore, when the output result of the first comparator and the output result of the second comparator are both low levels, the processor determines that the speaker state is short-circuited to the ground.

[0036] Furthermore, when the speaker is short-circuited to the power supply, the voltage at both ends of the speaker will be clamped to a high level, and the voltage at the in-phase input of the first comparator 1 and the second comparator 2 will be greater than the reference voltage. According to the characteristics of the comparator, the output result of the first comparator and the output result of the second comparator will always be a high level. Therefore, when the output result of the first comparator and the output result of the second comparator are both high levels, the processor determines that the speaker state is short-circuited to the power supply.

[0037] Furthermore, when the speaker is normal, the input of the first comparator 1 comes from the SPK_P signal, and the input of the second comparator 2 comes from the SPK_N signal. The signals of SPK_P and SPL_N are both high and low level alternating signals, wherein the high level is greater than the reference voltage of the comparator, and the low level 0V is consistent with the ground and less than the reference voltage. According to the characteristics of the comparator, the outputs IO1 and IO2 of the comparator are both waveforms of alternating high level 1 and low level 0. Therefore, when the output results of the first comparator and the output results of the second comparator are both periodically changing data, the processor determines that the speaker state is normal.

[0038] Embodiment 2

[0039] Figure 2 Schematic diagram of a circuit for detecting the state of a speaker connected to a power amplifier according to another embodiment of the present invention. Figure 1 The difference between the embodiment shown is that the circuit for detecting the state of the speaker connected to the power amplifier provided in this embodiment further includes an output switch 6 connected between the second output terminal of the power amplifier and the non-inverting input terminal of the second comparator. Figure 2 In the embodiment shown, the output switch is connected between the second output terminal of the power amplifier and the in-phase input terminal of the second comparator. In other embodiments, the output switch can also be connected between the second output terminal of the power amplifier and the in-phase input terminal of the second comparator, and the present invention is not limited thereto. Specifically, the first input terminal of the output switch 6 is connected to the second output terminal of the power amplifier 4, the enable terminal of the output switch 6 is connected to the output terminal of the processor 3, and the output terminal of the output switch 6 is connected to the second input terminal of the speaker 5 and the in-phase input terminal of the second comparator 2.

[0040] Specifically, in this embodiment, the output switch 6 is used as the conduction switch of the differential signal SPK_N of the class D power amplifier. When the output terminal IO3 of the processor outputs a high level to the output switch, the output switch 6 is turned on and the signal SPK_N is output to the speaker and the second comparator; when the output terminal IO3 of the processor outputs a low level to the output switch, the signal SPN_N is disconnected through the output switch.

[0041] Furthermore, when the output of IO3 is low, the signal SPK_N cannot reach the speaker and the second comparator of the subsequent stage through the output switch. At this time, the signal at the in-phase input of the second comparator is determined by the state of the speaker. The first comparator will output a signal of alternating high and low levels, in which the high level will be greater than the reference voltage of the first comparator, and the low level 0V will be less than the reference voltage. According to the characteristics of the comparator, the output IO1 of the first comparator is also a waveform of alternating high level 1 and low level 0. If the speaker is not in place, there is no signal at the in-phase input of the second comparator, so there is no signal at the output of the second comparator; if the speaker is in place, the signal SPK_P at the first output of the power amplifier will be transmitted to the in-phase input of the second comparator through the speaker. Because the speaker can be equivalent to a resistor and an inductor in series, the signal SPK_P will also be a waveform of alternating high and low levels after passing through the speaker, and it can also form a waveform of alternating 0 and 1 after passing through the second comparator. Therefore, the processor outputs a low level to the output switch 6. When the output result of the second comparator is not periodic changing data, the processor determines that the speaker state is open and ends the detection. When the output result of the second comparator is periodic changing data, it means that the speaker is in place and the speaker state needs to be further judged. The processor outputs a high level to the output switch to turn on the output switch 6 and outputs the signal SPK_N to the speaker and the second comparator.

[0042] Embodiment 3

[0043] Figure 3 FIG. 1 is a flow chart of a method for detecting the state of a speaker connected to a power amplifier provided by an embodiment of the present invention. Figure 3 As shown, the method for detecting the state of a speaker connected to a power amplifier provided by the present invention comprises the following steps:

[0044] Step S10: The system starts speaker status detection.

[0045] Step S20: Power on the Class D audio power amplifier and prohibit any audio signal input to the power amplifier.

[0046] Step S30: The class D power amplifier is enabled to simultaneously output one differential square wave signal, SPK_P and SPK_N.

[0047] Step S40: The processor outputs a low level to the output switch. At this time, the output switch disconnects the output of SPK_N, and the signal of SPK_N cannot be input to the subsequent speaker and the second comparator.

[0048] Step S50: The processor collects data from comparator 1 and comparator 2.

[0049] Step S60, determine whether the output results of comparator 1 and comparator 2 are both data that periodically alternate between 0 and 1. If so, it means that the speaker is in place; otherwise, it means that the speaker is open, and the system will end the current detection.

[0050] Step S70: When the data of IO1 and IO2 are 0 and 1 and change alternately periodically, the processor outputs a high level, and the output switch outputs the SPK_N signal to the subsequent circuit.

[0051] In step S80, the processor collects data from comparator 1 and comparator 2 respectively. At this time, there will be the following three situations: if the data from comparator 1 and comparator 2 both change periodically between 0 and 1, it means that the speaker is normal; if the data from comparator 1 and comparator 2 are both 1, it means that the speaker is short-circuited to the power supply; if the data from comparator 1 and comparator 2 are both 0, it means that the speaker is short-circuited to the ground.

[0052] Step S90: The processor obtains the state of the speaker, and the system ends the detection.

[0053] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0054] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0055] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0056] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0057] It should be noted that the above embodiments illustrate rather than limit the present invention, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements.

Claims

1. A circuit for detecting the state of a speaker connected to a power amplifier, characterized in that: The invention comprises a first comparator, a second comparator and a processor, wherein the non-inverting input of the first comparator is connected to the first output of the power amplifier and the first input of the speaker, the first output of the power amplifier is also connected to the first input of the speaker, the inverting input of the first comparator is connected to a reference voltage, and the output of the first comparator is connected to the first input of the processor; the non-inverting input of the second comparator is connected to the second output of the power amplifier and the second input of the speaker, the second output of the power amplifier is also connected to the second input of the speaker, the inverting input of the second comparator is connected to a reference voltage, and the output of the second comparator is connected to the second input of the processor; the first comparator and the second comparator respectively detect the output pulse of the power amplifier, and the processor judges the state of the speaker according to the output results of the first comparator and the second comparator.

2. The circuit for detecting the state of a speaker connected to a power amplifier as claimed in claim 1, characterized in that: The output pulse of the power amplifier is a differential signal.

3. The circuit for detecting the state of a speaker connected to a power amplifier as claimed in claim 2, characterized in that: When the output result of the first comparator and the output result of the second comparator are both high levels, the processor determines that the speaker state is short-circuited to the power supply; when the output result of the first comparator and the output result of the second comparator are both low levels, the processor determines that the speaker state is short-circuited to the ground; when the output result of the first comparator and the output result of the second comparator are both periodically changing data, the processor determines that the speaker state is normal.

4. The circuit for detecting the state of a speaker connected to a power amplifier as claimed in claim 2, characterized in that: It also includes an output switch, wherein a first input end of the output switch is connected to a second output end of the power amplifier, an enable end of the output switch is connected to an output end of the processor, and an output end of the output switch is connected to a second input end of the speaker.

5. A circuit for detecting the state of a speaker connected to a power amplifier as described in claim 4, wherein the processor outputs a low level to the output switch, and when the output result of the second comparator is not periodic variation data, the processor determines that the speaker state is open; when the output result of the second comparator is periodic variation data, the processor outputs a high level to the output switch.

6. A method for detecting the state of a speaker connected to a power amplifier, characterized in that: include: Collecting the output pulse of the first output terminal of the power amplifier by a first comparator; Collecting the output pulse of the second output terminal of the power amplifier by a second comparator; as well as The processor determines the state of the speaker according to the output results of the first comparator and the second comparator.

7. The method for detecting the state of a speaker connected to a power amplifier as claimed in claim 6, characterized in that: The output pulse of the power amplifier is a differential signal.

8. The method for detecting the state of a speaker connected to a power amplifier as claimed in claim 7, characterized in that: When the output result of the first comparator and the output result of the second comparator are both high levels, the processor determines that the speaker state is short-circuited to the power supply; when the output result of the first comparator and the output result of the second comparator are both low levels, the processor determines that the speaker state is short-circuited to the ground; when the output result of the first comparator and the output result of the second comparator are both periodically changing data, the processor determines that the speaker state is normal.

9. The method for detecting the state of a speaker connected to a power amplifier as claimed in claim 7, characterized in that: Before the step of collecting the output pulse of the first output terminal of the power amplifier through the first comparator, the method further includes: The processor outputs a low level to the output switch.

10. The method for detecting the state of a speaker connected to a power amplifier according to claim 9, characterized in that: When the output result of the second comparator is not periodic variation data, the processor determines that the speaker state is open circuit; when the output result of the second comparator is periodic variation data, the processor outputs a high level to the output switch.