Driving circuit, detection method, chip, circuit board and electronic equipment

By introducing a detection module into the drive circuit and using the reference voltage and voltage signal to judge the short circuit condition of the load module input end, the problem of chip damage caused by short circuit is solved, and higher detection accuracy and circuit miniaturization are achieved.

CN120675544APending Publication Date: 2025-09-19HEFEI AIWEI INTEGRATED CIRCUIT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510780420.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

In modern electronic devices, the input end of the load module may accidentally short-circuit to the power supply or short-circuit to the ground, causing a large current to flow in the connected circuit, damaging the chip where the driver module is located, and affecting the normal operation and service life of the device.

Method used

A driving circuit is designed, which includes a detection module, including a reference voltage generation unit, a voltage divider unit and a detection reporting unit. The working status of the input end of the load module is detected by generating a reference voltage and collecting voltage signals. The comparator and logic processing circuit are used to judge the short circuit situation and take protective measures in the event of a short circuit.

Benefits of technology

The detection accuracy of the working status of the load module input terminal is improved, the chip where the driver module is located is protected in time, damage caused by short circuit is avoided, and the circuit board area and cost are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675544A_ABST
    Figure CN120675544A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of integrated circuits, and discloses a driving circuit, a detection method, a chip, a circuit board and electronic equipment. The driving circuit comprises a detection module. The detection module comprises a reference voltage generating unit, a voltage dividing unit and a detection reporting unit. The first end of the voltage dividing unit is connected with the output end of the reference voltage generating unit, and the second end of the voltage dividing unit is connected with the input end of the load module and the detection reporting unit. Wherein the reference voltage generating unit can generate a reference voltage, and the voltage dividing unit is used for generating a voltage signal based on the reference voltage and the working state of the input end of the load module. The detection reporting unit can collect the voltage signal and output a detection signal capable of indicating the working state of the input end of the load module based on the collected voltage signal. Therefore, based on the circuit, the working state of the input end of the load module can be detected, so that protection measures can be taken on the chip where the driving module is located in time when the input end is short-circuited.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of integrated circuit technology, and in particular to a driving circuit, a detection method, a chip, a circuit board, and an electronic device. Background Art

[0002] In modern electronic devices, driver modules control the operation of load modules, ensuring they function as intended. However, in practice, the input terminals of load modules can accidentally short to the power supply or ground, causing high currents to flow through the circuit connecting the driver and load modules. This high current can not only damage the connecting circuit but also potentially burn out the chip housing the driver module, seriously impacting the normal operation and service life of the entire electronic device. Summary of the Invention

[0003] The present invention provides a drive circuit, detection method, chip, circuit board, and electronic device. The drive circuit described herein can detect the operating status of a load module's input terminal, enabling timely protection of the chip housing the drive module (e.g., a Class D amplifier) ​​when a short circuit occurs at the input terminal.

[0004] In a first aspect, the present application provides a driving circuit comprising a detection module. The detection module comprises a reference voltage generating unit, a voltage divider unit, and a detection reporting unit. The reference voltage generating unit is configured to generate a reference voltage; a first end of the voltage divider unit is connected to an output end of the reference voltage generating unit, and a second end of the voltage divider unit is configured to be connected to an input end of a load module; the voltage divider unit is configured to generate a voltage signal based on the reference voltage and the operating state of the input end of the load module; the detection reporting unit is connected to the second end of the voltage divider unit, the detection reporting unit is configured to collect the voltage signal, and output a detection signal based on the voltage signal, the detection signal being configured to indicate the operating state of the input end of the load module.

[0005] In some embodiments, if the input terminal of the load module is in normal operation and the resistance of the voltage divider unit is low, the voltage signal collected by the detection and reporting unit is the same as or slightly different from the reference voltage Vref. For another example, if the input terminal of the load module is short-circuited to the power supply, the voltage signal collected by the detection and reporting unit will be much greater than the reference voltage Vref. For another example, if the input terminal of the load module is short-circuited to ground, the voltage signal collected by the detection and reporting unit will be much less than the reference voltage Vref.

[0006] Therefore, in the driving circuit provided in the present application, the detection reporting unit can determine a detection signal for indicating the working state of the input terminal of the load module based on the collected voltage signal.

[0007] Furthermore, because the reference voltage generated by the reference voltage generating unit is not a sinusoidal voltage signal and does not experience high or low voltage fluctuations, the detection reporting unit is not susceptible to errors in the detection results due to the inherent nature of the voltage signal during the detection process. This further improves the accuracy of detecting the operating status of the load module input terminal, allowing for timely protection of the driver module chip in the event of a short circuit at the input terminal.

[0008] In a possible implementation of the first aspect described above, the voltage divider unit may include a first switch subunit and a second switch subunit, and the input end of the load module may include a first input end and a second input end. The first end of the first switch subunit and the first end of the second switch subunit are both connected to the output end of the reference voltage generating unit, the second end of the first switch subunit is respectively connected to the first input end of the load module and the detection and reporting unit, and the second end of the second switch is respectively connected to the second input end of the load module and the detection and reporting unit. The first switch subunit is configured to generate a first voltage signal based on the reference voltage and the operating state of the first input end, and the second switch subunit is configured to generate a second voltage signal based on the reference voltage and the operating state of the second input end.

[0009] In some embodiments, the detection and reporting unit may collect the first voltage signal and output a detection signal for determining the working state of the first input terminal based on the collected first voltage signal. Alternatively, the detection and reporting unit may collect the second voltage signal and output a detection signal for determining the working state of the second input terminal based on the collected second voltage signal.

[0010] In one possible implementation of the first aspect, the detection and reporting unit includes a comparator and a logic processing circuit. The first end of the comparator is connected to the second end of the first switch subunit, the second end of the comparator is connected to the second end of the second switch subunit, and the output end of the comparator is connected to the logic processing circuit. The comparator is configured to output a comparison signal based on the first voltage signal and the second voltage signal; the logic processing circuit is configured to output a detection signal based on the comparison signal, and the detection signal is configured to indicate the operating status of the first input terminal and / or the second input terminal.

[0011] In some embodiments, the comparator can be configured to output a comparison signal based on a first voltage signal and a second voltage signal. Specifically, the comparator can acquire the first voltage signal and compare the first voltage signal with a preset threshold voltage, thereby outputting a comparison signal corresponding to the first voltage signal. Alternatively, the comparator can also acquire the second voltage signal and compare the second voltage signal with a preset threshold voltage, thereby outputting a comparison signal corresponding to the second voltage signal.

[0012] In this case, after the comparator outputs a first comparison signal corresponding to the first voltage signal, the logic processing circuit may output a detection signal indicating the operating state of the first input terminal based on the first comparison signal. For another example, after the comparator outputs a second comparison signal corresponding to the second voltage signal, the logic processing circuit may output a detection signal indicating the operating state of the second input terminal based on the second comparison signal.

[0013] In this way, the logic processing circuit can report the working status of the input end of the load module, so that the driving module can be stopped in time when a short circuit occurs at the input end of the load module, thereby protecting the chip where the driving module is located.

[0014] In one possible implementation of the first aspect, the logic processing circuit is further configured to output a first detection signal based on the comparison signal when the first voltage signal and the second voltage signal are equal. The first detection signal is configured to indicate that both the operating state of the first input terminal and the operating state of the second input terminal are in normal operating states.

[0015] Exemplarily, when the first input terminal and the second input terminal of the load module are in normal working state, the first voltage signal and the second voltage signal collected by the comparator should be equal, and the first voltage signal and the second voltage signal are both the same as or have a small difference with the reference voltage Vref.

[0016] In one possible implementation of the first aspect above, the comparator may further include a first threshold voltage and a second threshold voltage, wherein the first threshold voltage is greater than the second threshold voltage. The logic processing circuit is further configured to output a second detection signal based on the comparison signal when the first voltage signal is greater than the first threshold voltage. The second detection signal is configured to indicate that the operating state of the first input terminal is a short circuit to the power supply. The logic processing circuit is further configured to output a third detection signal based on the comparison signal when the first voltage signal is less than the second threshold voltage, wherein the third detection signal is configured to indicate that the operating state of the first input terminal is a short circuit to ground.

[0017] In one possible implementation of the first aspect, the comparator includes a first threshold voltage and a second threshold voltage, wherein the first threshold voltage is greater than the second threshold voltage. The logic processing circuit is further configured to output a fourth detection signal based on the comparison signal when the second voltage signal is greater than the first threshold voltage, the fourth detection signal being configured to indicate that the operating state of the second input terminal is a short circuit to the power supply; and the logic processing circuit is further configured to output a fifth detection signal based on the comparison signal when the second voltage signal is less than the second threshold voltage, the fifth detection signal being configured to indicate that the operating state of the second input terminal is a short circuit to ground.

[0018] Exemplarily, a first threshold voltage Vref+ΔV and a second threshold voltage Vref-ΔV may be preset in the comparator, and the first threshold voltage Vref+ΔV is greater than the second threshold voltage Vref-ΔV.

[0019] For example, when the working state of the first input terminal is short-circuited to the power state and the short-circuit current generated is I1, the first voltage signal may be Vref+I1*R 3321 , Vref is the reference voltage output by the reference voltage generating unit, R 3321 is the resistance value of the first switch subunit. At this time, the first voltage signal collected by the comparator will be greater than the first threshold voltage Vref+ΔV. Alternatively, when the working state of the first input terminal is short-circuited to ground and the short-circuit current generated is I2, the first voltage signal can be Vref-I2*R 3321 , R 3321 is the resistance value of the first switch sub-unit. At this time, the first voltage signal collected by the comparator is less than the second threshold voltage Vref-ΔV.

[0020] For example, when the working state of the second input terminal is short-circuited to the power state and the short-circuit current generated is I3, the second voltage signal can be Vref+I3*R 3322 , Vref is the reference voltage output by the reference voltage generating unit, R 3322 is the resistance value of the second switch subunit. At this time, the second voltage signal collected by the comparator will be greater than the first threshold voltage Vref+ΔV. Alternatively, when the working state of the second input terminal is short-circuited to ground and the short-circuit current generated is I4, the second voltage signal can be Vref-I4*R 3322 , R 3322 is the resistance value of the second switch sub-unit. At this time, the second voltage signal collected by the comparator is less than the second threshold voltage Vref-ΔV.

[0021] It will be appreciated that in the embodiments of the present application, the reference voltage Vref, the first threshold voltage Vref+ΔV, and the second threshold voltage Vref-ΔV generated by the reference voltage generating unit can be arbitrarily set. For example, after arbitrarily setting the reference voltage Vref, the voltage corresponding to the overall power consumption of the driving circuit can be used as the adjustment threshold ΔV to determine the first threshold voltage Vref+ΔV and the second threshold voltage Vref-ΔV. This application is not limited to this.

[0022] In this way, based on the above driving circuit and detection process, the working state of the first input terminal or the second input terminal of the load module can be determined.

[0023] In a possible implementation of the first aspect, the reference voltage generating unit includes a first resistor, a second resistor, a first transistor, a second transistor, a third transistor, and a fourth transistor. The first end of the first resistor is electrically connected to the first power supply, the second end of the first resistor is connected to the first end of the first transistor, the first end of the third transistor, and the first end of the second resistor, respectively; the second end of the second resistor is grounded; the second end of the first transistor is electrically connected to the second power supply, the third end of the first transistor is connected to the second end of the first transistor; the second end of the second transistor is electrically connected to the third power supply, the third end of the second transistor is connected to the third end of the first transistor, the first end of the second transistor is connected to the first end of the fourth transistor, and the first end of the second transistor is connected to the output end of the reference voltage generating unit; the second end of the third transistor is connected to the third end of the third transistor, and the third end of the third transistor is grounded; the first end of the fourth transistor is connected to the output end of the reference voltage generating unit, the third end of the fourth transistor is connected to the third end of the third transistor, and the second end of the fourth transistor is grounded.

[0024] In some embodiments, in order to provide a constant voltage to drive the circuit in the reference voltage generating unit to operate, the first power supply and the third power supply may both be voltage sources.

[0025] In other embodiments, to provide a stable bias voltage to the transistor to drive the transistor, the second power supply may be implemented by connecting a voltage source and a current source in series. For example, when the voltage source and the current source are connected in series, the voltage across each transistor in the series circuit at that current can be proportionally distributed to the voltage of the voltage source, thereby providing a suitable operating point voltage for the transistor.

[0026] In other embodiments, in order to provide a stable bias current to the transistor to stabilize the working state of the transistor, the third terminal of the third transistor may be connected to a current source and then grounded.

[0027] In some embodiments, the first transistor, the second transistor, the third transistor, and the fourth transistor may be bipolar transistors, field-effect transistors, etc. For example, the first transistor, the second transistor, the third transistor, and the fourth transistor may all be metal oxide semiconductor field effect transistors (MOSFETs, also referred to as MOS transistors).

[0028] In which, when the first transistor, the second transistor, the third transistor and the fourth transistor are all MOS transistors, the first end of the first transistor, the first end of the second transistor, the first end of the third transistor and the first end of the fourth transistor can be the source of the MOS transistor; the second end of the first transistor, the second end of the second transistor, the second end of the third transistor and the second end of the fourth transistor can be the drain of the MOS transistor; the third end of the first transistor, the third end of the second transistor, the third end of the third transistor and the third end of the fourth transistor can be the gate of the MOS transistor.

[0029] In one possible implementation of the first aspect, the voltage divider unit may further include a control subunit. The control subunit is configured to control the first switch subunit and / or the second switch subunit to operate upon detecting a detection instruction; the detection instruction instructs the detection module to detect the operating status of the input terminal of the load module. Exemplarily, the control subunit may be a single-chip microcomputer, a microcontroller, or the like.

[0030] In a possible implementation of the first aspect, the first switch subunit may include a fifth transistor and a sixth transistor, and the second switch subunit may include a seventh transistor and an eighth transistor. The first end of the fifth transistor is connected to the output end of the reference voltage generating unit, the second end of the fifth transistor is connected to the second end of the sixth transistor, and the third end of the fifth transistor is connected to the control subunit. The first end of the sixth transistor is connected to the first input end of the load module, and the third end of the sixth transistor is connected to the control subunit. The first end of the seventh transistor is connected to the output end of the reference voltage generating unit, the second end of the seventh transistor is connected to the second end of the eighth transistor, and the third end of the seventh transistor is connected to the control subunit. The first end of the eighth transistor is used to connect to the second input end of the load module, and the third end of the eighth transistor is connected to the control subunit.

[0031] In some embodiments, the fifth transistor, the sixth transistor, the seventh transistor, and the eighth transistor may be bipolar transistors, field effect transistors, etc. For example, the fifth transistor, the sixth transistor, the seventh transistor, and the eighth transistor may all be MOS transistors.

[0032] In which, when the fifth transistor, the sixth transistor, the seventh transistor and the eighth transistor are all MOS transistors, the first end of the fifth transistor, the first end of the sixth transistor, the first end of the seventh transistor and the first end of the eighth transistor can be the source of the MOS transistor; the second end of the fifth transistor, the second end of the sixth transistor, the second end of the seventh transistor and the second end of the eighth transistor can be the drain of the MOS transistor; the third end of the fifth transistor, the third end of the sixth transistor, the third end of the seventh transistor and the third end of the eighth transistor can be the gate of the MOS transistor.

[0033] In some embodiments, when the detection module needs to detect the working state of the input terminal of the load module, the control subunit may apply a high-level signal to the third terminal of the fifth transistor, the sixth transistor, the seventh transistor, or the eighth transistor, so that the fifth transistor, the sixth transistor, the seventh transistor, or the eighth transistor enters a conducting state. Conversely, if the control subunit applies a low-level signal to the third terminal of the fifth transistor, the sixth transistor, the seventh transistor, or the eighth transistor, the fifth transistor, the sixth transistor, the seventh transistor, or the eighth transistor enters a disconnected state, thereby stopping detection of the working state of the input terminal of the load module.

[0034] In a possible implementation of the first aspect, the driving circuit may further include a driving module, wherein an output terminal of the driving module is connected to an input terminal of the load module, wherein the driving module is configured to generate a driving signal, and the driving signal is configured to drive the load module.

[0035] In some implementations, the driver module and detection module can be integrated into the same chip. Therefore, when the driver module and detection module are mounted on a circuit board, the integrated chip is also mounted on the circuit board. This can reduce the circuit board area and cost, thereby meeting the demand for miniaturization of circuit boards and electronic devices.

[0036] In a possible implementation of the first aspect above, the driving circuit may further include a processing module connected to the logic processing circuit, and the processing module is configured to control the operation of the driving module according to the detection signal.

[0037] In some embodiments, if the detection signal output by the logic processing circuit indicates that the first input terminal or the second input terminal is short-circuited to the power supply (or to ground), the processing module can be used to control the driver module to suspend operation. This can prevent the high current generated by the short circuit from burning the chip, thereby protecting the chip.

[0038] In a second aspect, the present application provides a detection method, applicable to the drive circuit described in the first aspect and any possible implementation of the first aspect, wherein the drive circuit includes a detection module and a drive module. The method includes: upon detecting a detection instruction, controlling a voltage divider unit in the detection module to operate and controlling the drive module to suspend operation; wherein the detection instruction is used to instruct the detection module to detect the operating status of the input terminal of the load module. Based on a detection signal output by a detection reporting unit in the detection module, the operating status of the input terminal of the load module is determined.

[0039] In some embodiments, when testing the input terminal of the load module, the operation of the driver module (e.g., a Class D amplifier) ​​can be suspended to reserve a certain time window. During this time window, only the reference voltage generation unit can output the reference voltage, and the driver module will not output a sinusoidal voltage signal. This prevents the detection reporting unit from erroneous detection results due to the inherent properties of the voltage signal output by the driver module. This can further improve the accuracy of detecting the working status of the load module input terminal, allowing timely protection measures for the chip containing the driver module in the event of a short circuit at the input terminal.

[0040] In a possible implementation of the second aspect, the method further includes: when it is determined that the input terminal of the load module is short-circuited to the power supply or short-circuited to the ground, controlling the driving module to maintain a suspended working state.

[0041] In this way, through the above method, the working state of the input end of the load module can be detected, so that when a short circuit occurs at the input end, protective measures can be taken in time for the chip where the driver module is located.

[0042] In a third aspect, the present application provides a chip comprising the driving circuit mentioned in the first aspect and any possible implementation of the first aspect.

[0043] In a fourth aspect, the present application provides a circuit board comprising a load module and the chip described in the third aspect. The chip may include a detection module, the detection module including a voltage divider unit, and the second end of the voltage divider unit is configured to be connected to an input end of the load module.

[0044] In a possible implementation of the fourth aspect above, the chip may further include a driving module, wherein an output end of the driving module is used to connect to an input end of the load module, wherein the driving module is used to generate a driving signal, and the driving signal is used to drive the load module.

[0045] In a fifth aspect, the present application provides an electronic device, comprising the circuit board mentioned in the fourth aspect and any possible implementation of the fourth aspect.

[0046] The beneficial effects of the third to fifth aspects mentioned above can be found in the relevant descriptions of the first aspect and various possible implementations of the first aspect, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 According to some embodiments, an exemplary structural diagram of an audio processing system is shown;

[0048] Figure 2 According to some embodiments, an exemplary structural diagram of a detection circuit is shown;

[0049] Figure 3 According to some embodiments, a first exemplary structural diagram of a driving circuit mentioned in this application is shown;

[0050] Figure 4A According to some embodiments, a second exemplary structural diagram of a driving circuit mentioned in this application is shown;

[0051] Figure 4B According to some embodiments, a third exemplary structural diagram of a driving circuit mentioned in this application is shown;

[0052] Figure 4C According to some embodiments, a fourth exemplary structural diagram of a driving circuit mentioned in this application is shown;

[0053] Figure 4D According to some embodiments, a fifth exemplary structural diagram of the driving circuit mentioned in this application is shown;

[0054] Figure 5 According to some embodiments, a schematic flow chart of a detection method is shown. DETAILED DESCRIPTION

[0055] Illustrative embodiments of the present application include, but are not limited to, a driving circuit, a detection method, a chip, a circuit board, and an electronic device.

[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings and specific implementation methods.

[0057] As mentioned above, in modern electronic devices, the operation of the load module can be controlled by the driver module to ensure that the load module can operate in the expected mode. For example, in electronic devices such as mobile phones, the motor driver chip (as an example of the driver module) can convert the control signal into a current or voltage signal to drive the DC motor (as an example of the load module) to rotate, thereby realizing the vibration function of the electronic device. For another example, in an electronic device, the power of the audio signal can also be amplified by a Class D amplifier (as an example of the driver module) to drive the speaker (as an example of the load module) to emit a sound with sufficient loudness and clarity. This application does not limit the specific structure of the driver module and the load module.

[0058] The following takes a Class D power amplifier as an example to describe the working principle between the driver module and the load module.

[0059] Among them, the Class D amplifier can also be called a Class D audio power amplifier, which can be used to amplify the power of the audio signal to drive the speaker to produce sound. Figure 1 An audio processing system is shown that amplifies the power of an audio signal through a Class D power amplifier.

[0060] like Figure 1 As shown, the audio processing system may include a class D power amplifier, a low-pass filter LC, and a speaker RL. The low-pass filter LC may include an inductor L1, an inductor L2, a capacitor C1, and a capacitor C2.

[0061] Among them, such as Figure 1 As shown, the first output terminal a1 of the class D power amplifier is connected to the inductor L1, which is respectively connected to the speaker RL and the capacitor C1, which is grounded. The second output terminal b1 of the class D power amplifier is connected to the inductor L2, which is respectively connected to the speaker RL and the capacitor C2, which is grounded.

[0062] The Class D amplifier converts the input audio signal Vin (e.g., speech, music, etc.) into a high-frequency pulse signal, which is then fed into a low-pass filter LC. The low-pass filter LC removes the carrier component from the high-frequency pulse signal, retaining only the baseband components of the audio signal, thereby restoring the original analog audio signal to drive the speaker RL to produce sound.

[0063] It should be understood that the low-pass filter LC and the speaker RL can serve as the load module of the Class D amplifier. In practical applications of the Class D amplifier, the circuit path at the input terminal of the load module (e.g., the first input terminal a2 or the second input terminal b2) may accidentally short-circuit to the power supply or short-circuit to ground (e.g., short-circuiting to the power supply at FBP or FBN), causing a large current to flow in the connection circuit between the load module and the Class D amplifier, thereby burning out the chip (hereinafter referred to as the "chip") containing the Class D amplifier.

[0064] Currently, in order to solve the above problems, when the chip containing the Class D amplifier is mounted on the circuit board (e.g., printed circuit board (PCB)) of the electronic device, it is necessary to add additional detection circuit related devices (e.g., switches, comparators, etc.) outside the chip to detect whether a short circuit occurs at the input end of the load module, so that protective measures can be taken for the chip in a timely manner.

[0065] The input end of the load module may include a first input end a2 and a second input end b2. Specifically, Figure 2 FIG. 1 shows a circuit diagram for detecting the working state of the first input terminal a2 of the load module. Figure 2 As shown, the detection circuit may include at least a switch S201 and a comparator 202. The first output terminal a1 of the class D power amplifier is connected to the switch S201, and the switch S201 is connected to the comparator 202.

[0066] When the switch S201 is closed, the Class D amplifier can output a voltage signal to the comparator 202, and the comparator 202 can compare the collected voltage signal at the VOP with the preset voltage threshold, so that the user can determine the working state of the first input terminal a2 of the load module based on the comparison result. If the comparator 202 determines that the collected voltage signal at the VOP is greater than the preset voltage threshold, it indicates that the working state of the first input terminal a2 of the load module is short-circuited to the power supply, such as short-circuited to the power supply at the FBP position. Alternatively, if the comparator 202 determines that the collected voltage signal at the VOP is less than the preset voltage threshold, it indicates that the working state of the first input terminal a2 of the load module is short-circuited to the ground, such as short-circuited to the ground at the FBP position.

[0067] Similarly, when determining the working state of the second input terminal b2 in the load module, the same detection circuit and detection method as above can be used, which will not be described in detail here.

[0068] In this way, when the user determines based on the comparison result that the input end of the load module (such as the first input end a2 or the second input end b2) is short-circuited to the power supply or short-circuited to the ground, the Class D amplifier can be controlled to enter a suspended working state to avoid the large current generated by the short circuit from burning the chip where the Class D amplifier is located.

[0069] However, when the Class D amplifier is working properly, the output audio voltage signal is in the form of a sine wave. Therefore, in the above detection circuit, the detection result may be misjudged due to the influence of the nature of the audio voltage signal itself. For example, Figure 2 In the example, when the Class D amplifier is operating normally, the voltage signal collected by the comparator 202 may be the peak high voltage of the sinusoidal audio voltage signal. In this case, the comparator 202 may also determine that the collected voltage signal is greater than the preset voltage threshold. Therefore, when performing detection based on this comparison result, the normal operating state of the Class D amplifier may be mistakenly determined to be a state where the first input terminal a2 of the load module is short-circuited to the power supply.

[0070] In addition, when the chip containing the Class D amplifier and related components of the detection circuit located outside the chip (such as switch S201 and comparator 202) are installed on a circuit board, the area and cost of the circuit board will also increase, making it difficult to meet the miniaturization requirements of the circuit board and electronic equipment.

[0071] To address the above-mentioned issues, the present application provides a driving circuit comprising a detection module. The detection module may include a reference voltage generating unit, a voltage divider unit, and a detection reporting unit. A first end of the voltage divider unit is connected to an output end of the reference voltage generating unit, a second end of the voltage divider unit may be connected to an input end of a load module, and the second end of the voltage divider unit may also be connected to the detection reporting unit.

[0072] When a detection instruction is detected to detect the operating status of the load module input terminal, the voltage divider unit can be controlled to be in an operating state, and the driver module (e.g., a Class D amplifier) ​​can be controlled to suspend operation. At this time, the reference voltage generation unit can generate a reference voltage, and the voltage divider unit can be used to generate a voltage signal based on the reference voltage and the operating status of the load module input terminal. The detection reporting unit can collect this voltage signal and, based on the collected voltage signal, output a detection signal that can indicate the operating status of the load module input terminal.

[0073] Through the present application, when testing the input end of the load module, the operation of the driver module can be suspended to reserve a certain time window. In this case, within the reserved time window, only the reference voltage generation unit can output the reference voltage, and the driver module will not output a sinusoidal voltage signal. As a result, the detection reporting unit will not have errors in the detection results due to the inherent properties of the voltage signal output by the driver module, thereby further improving the accuracy of detecting the working status of the load module input end.

[0074] The driving circuit in this application is described in detail below.

[0075] For example, Figure 3 According to some embodiments of the present application, a schematic diagram of a driving circuit is shown. Figure 3 As shown, the driving circuit may include a detection module 33 .

[0076] The detection module 33 may include a reference voltage generating unit 331, a voltage dividing unit 332, and a detection reporting unit 333. A first end a3 of the voltage dividing unit 332 is connected to an output end e1 of the reference voltage generating unit 331, a second end b3 of the voltage dividing unit 332 is connected to an input end of the load module 32, and the detection reporting unit 333 may be connected to the second end b3 of the voltage dividing unit 332.

[0077] In the above-described driving circuit, the reference voltage generating unit 331 can be used to generate a reference voltage Vref. In this case, the voltage dividing unit 332 can be used to generate a voltage signal (e.g., a voltage signal at VOP) based on the reference voltage Vref and the operating state of the input terminal of the load module 32. The detection reporting unit 333 can be used to collect the voltage signal (e.g., the voltage signal at VOP) and output a detection signal based on the collected voltage signal, wherein the detection signal can be used to indicate the operating state of the input terminal of the load module 32.

[0078] For example, in Figure 3 In the example, if the input terminal of the load module 32 is in normal operation and the resistance of the voltage divider unit 332 is low, the voltage signal at VOP collected by the detection and reporting unit 333 is the same as or slightly different from the reference voltage Vref. For another example, if the input terminal of the load module 32 is short-circuited to the power supply, the voltage signal at VOP collected by the detection and reporting unit 333 will be much greater than the reference voltage Vref. For another example, if the input terminal of the load module 32 is short-circuited to ground, the voltage signal at VOP collected by the detection and reporting unit 333 will be much less than the reference voltage Vref.

[0079] Therefore, in the driving circuit provided in the present application, the detection reporting unit 333 can determine a detection signal for indicating the working state of the input terminal of the load module 32 based on the collected voltage signal.

[0080] It is understandable that Figure 3 As shown, in the embodiment of the present application, the driving circuit may further include a driving module 31, the output end of the driving module 31 being connected to the input end of the load module 32. The driving module 31 may be used to generate a driving signal to drive the load module 32 to work.

[0081] Furthermore, in some embodiments of the present application, the driving module 31 may be a Class D amplifier. Figure 4A and Figure 4B When the driver module 31 is a class D amplifier, the output of the driver module 31 may include a first output terminal a1 and a second output terminal b1, and the input of the load module 32 may include a first input terminal a2 and a second input terminal b2. The first output terminal a1 of the class D amplifier is connected to the first input terminal a2 of the load module 32, and the second output terminal b1 of the class D amplifier is connected to the second input terminal b2 of the load module 32.

[0082] Further, continue to refer to Figure 4A and Figure 4BIn the driving circuit provided in the present application, when the input terminal of the load module 32 includes the first input terminal a2 and the second input terminal b2, the voltage dividing unit 332 may further include a first switch subunit 3321 and a second switch subunit 3322. The first terminal a4 of the first switch subunit 3321 and the first terminal a5 of the second switch subunit 3322 are both connected to the output terminal e1 of the reference voltage generating unit 331, the second terminal b4 of the first switch subunit 3321 is respectively connected to the first input terminal a2 of the load module 32 and the detection reporting unit 333, and the second terminal b5 of the second switch subunit 3322 is respectively connected to the second input terminal b2 of the load module 32 and the detection reporting unit 333.

[0083] In the above-mentioned driving circuit, the reference voltage generating unit 331 can be used to generate a reference voltage Vref. In this case, the first switching subunit 3321 can be used to generate a first voltage signal (e.g., a voltage signal at VOP) based on the reference voltage Vref and the operating state of the first input terminal a2 of the load module 32. The detection and reporting unit 333 can be used to collect the first voltage signal (e.g., collect the voltage signal at VOP) and output a detection signal for determining the operating state of the first input terminal a2 based on the collected first voltage signal. The second switching subunit 3322 can be used to generate a second voltage signal (e.g., a voltage signal at VON) based on the reference voltage Vref and the operating state of the second input terminal b2 of the load module 32. The detection and reporting unit 333 can be used to collect the second voltage signal (e.g., collect the voltage signal at VON) and output a detection signal for determining the operating state of the second input terminal b2 based on the collected second voltage signal.

[0084] Further, in some embodiments, reference Figure 4C The detection reporting unit 333 may include a comparator 3331 and a logic processing circuit 3332, the first end a6 of the comparator 3331 is connected to the second end b4 of the first switch subunit 3321, the second end b6 of the comparator 3331 is connected to the second end b5 of the second switch subunit 3322, and the output end e2 of the comparator 3331 is connected to the logic processing circuit 3332.

[0085] The comparator 3331 can be configured to output a comparison signal based on the first voltage signal and the second voltage signal. Specifically, the comparator 3331 can acquire a first voltage signal (e.g., a voltage signal acquired at VOP) and compare the first voltage signal with a preset threshold voltage, thereby outputting a comparison signal corresponding to the first voltage signal. Alternatively, the comparator 3331 can also acquire a second voltage signal (e.g., a voltage signal acquired at VON) and compare the second voltage signal with a preset threshold voltage, thereby outputting a comparison signal corresponding to the second voltage signal.

[0086] At this time, after the logic processing circuit 3332 receives the comparison signal output by the comparator 3331, the logic processing circuit 3332 can be configured to output a detection signal based on the comparison signal, wherein the detection signal can be used to indicate the operating status of the first input terminal a2 and / or the second input terminal b2. For example, after the comparator 3331 outputs a first comparison signal corresponding to the first voltage signal, the logic processing circuit 3332 can output a detection signal indicating the operating status of the first input terminal a2 based on the first comparison signal. For another example, after the comparator 3331 outputs a second comparison signal corresponding to the second voltage signal, the logic processing circuit 3332 can output a detection signal indicating the operating status of the second input terminal b2 based on the second comparison signal.

[0087] In this way, the logic processing circuit 3332 can report the working status of the input end of the load module 32, so that the operation of the driving module 31 can be suspended in time when a short circuit occurs at the input end of the load module 32, thereby protecting the chip where the driving module 31 is located.

[0088] For example, refer to Figure 4C When the first input terminal a2 and the second input terminal b2 of the load module 32 are both in normal working conditions, the first voltage signal (e.g., the voltage signal at VOP) and the second voltage signal (e.g., the voltage signal at VON) collected by the comparator 3331 should be equal, and both the first voltage signal and the second voltage signal should be the same as or have a small difference from the reference voltage Vref. In this case, the logic processing circuit 3332 can also be configured to output a first detection signal based on the comparison signal when the first voltage signal and the second voltage signal are equal. The first detection signal can be used to indicate that the operating conditions of the first input terminal a2 and the second input terminal b2 are both normal.

[0089] For example, refer to Figure 4C When the working state of the first input terminal a2 of the load module 32 is short-circuited to the power supply or short-circuited to the ground (for example, FBP is shorted to the power supply or the ground), the first voltage signal (for example, the voltage signal at VOP) collected by the comparator 3331 is significantly different from the reference voltage Vref.

[0090] Specifically, the comparator 3331 may include a first threshold voltage Vref+ΔV and a second threshold voltage Vref-ΔV, and the first threshold voltage Vref+ΔV is greater than the second threshold voltage Vref-ΔV. When the working state of the first input terminal a2 is short-circuited to the power state and the short-circuit current generated is I1, the voltage VOP at VOP may be Vref+I1*R 3321 , R 3321is the resistance value of the first switch subunit 3321. At this time, the first voltage signal collected by the comparator 3331 is greater than the first threshold voltage Vref+ΔV.

[0091] Alternatively, when the working state of the first input terminal a2 is short-circuited to ground and the short-circuit current generated is I2, the voltage VOP at VOP can be Vref-I2*R 3321 , R 3321 is the resistance value of the first switch subunit 3321. At this time, the first voltage signal collected by the comparator 3331 is less than the second threshold voltage Vref-ΔV.

[0092] Therefore, the logic processing circuit 3332 can also be configured to output a second detection signal based on the comparison signal when the first voltage signal is greater than the first threshold voltage Vref+ΔV, wherein the second detection signal can be used to indicate that the operating state of the first input terminal a2 is a short circuit to the power supply. Furthermore, the logic processing circuit 3332 can also be configured to output a third detection signal based on the comparison signal when the first voltage signal is less than the second threshold voltage Vref-ΔV, wherein the third detection signal can be used to indicate that the operating state of the first input terminal a2 is a short circuit to ground.

[0093] For example, refer to Figure 4C When the working state of the second input terminal b2 of the load module 32 is a short-circuit state to the power supply or a short-circuit state to the ground (for example, FBN is shorted to the power supply or the ground), the second voltage signal (for example, the voltage signal at VON) collected by the comparator 3331 is significantly different from the reference voltage Vref.

[0094] Specifically, the comparator 3331 may include a first threshold voltage Vref+ΔV and a second threshold voltage Vref-ΔV, and the first threshold voltage Vref+ΔV is greater than the second threshold voltage Vref-ΔV. When the working state of the second input terminal b2 is short-circuited to the power state and the short-circuit current generated is I3, the voltage VON at VON may be Vref+I3*R 3322 , R 3322 is the resistance value of the second switch subunit 3322. At this time, the second voltage signal collected by the comparator 3331 is greater than the first threshold voltage Vref+ΔV.

[0095] Alternatively, when the working state of the second input terminal b2 is short-circuited to ground and the short-circuit current generated is I4, the voltage VOP at VOP can be Vref-I4*R 3322 , R 3322 is the resistance value of the second switch subunit 3322. At this time, the second voltage signal collected by the comparator 3331 is less than the second threshold voltage Vref-ΔV.

[0096] Therefore, the logic processing circuit 3332 can also be configured to output a fourth detection signal based on the comparison signal when the second voltage signal is greater than the first threshold voltage Vref+ΔV, wherein the fourth detection signal can be used to indicate that the operating state of the second input terminal b2 is a short-circuit state to the power supply. Furthermore, the logic processing circuit 3332 can also be configured to output a fifth detection signal based on the comparison signal when the second voltage signal is less than the second threshold voltage Vref-ΔV, wherein the fifth detection signal can be used to indicate that the operating state of the second input terminal b2 is a short-circuit state to ground.

[0097] In this way, based on the above driving circuit and detection process, the working state of the first input terminal a2 or the second input terminal b2 of the load module 32 can be determined.

[0098] It is understood that in the embodiment of the present application, the reference voltage Vref, the first threshold voltage Vref+ΔV, and the second threshold voltage Vref-ΔV generated by the reference voltage generating unit 331 can be arbitrarily set. For example, after arbitrarily setting the reference voltage Vref, the voltage corresponding to the overall power consumption of the driving circuit can be used as the adjustment threshold ΔV to determine the first threshold voltage Vref+ΔV and the second threshold voltage Vref-ΔV. This application is not limited to this.

[0099] It can also be understood that in other embodiments, the voltage divider unit 332 may include a third resistor and a fourth resistor instead of the first switch subunit 3321 and the second switch subunit 3322. That is, in other embodiments, the first switch subunit 3321 or the second switch subunit 3322 may be replaced by a resistor, and the resistance value R of the corresponding first switch subunit 3321 may be replaced by the resistance value of the resistor. 3321 Or the resistance value R of the second switch subunit 3322 3322 In this way, the working state of the first input terminal a2 or the second input terminal b2 of the load module 32 can also be determined by the same detection method as above.

[0100] When the voltage divider unit 332 includes a first switch subunit 3321 and a second switch subunit 3322, the timing at which the detection and reporting unit 333 detects the operating state of the first input terminal a2 or the operating state of the second input terminal b2 can be controlled by controlling the switching state of the first switch subunit 3321 or the second switch subunit 3322. That is, the detection and reporting unit 333 can only begin detecting the operating state of the first input terminal a2 or the operating state of the second input terminal b2 when the first switch subunit 3321 or the second switch subunit 3322 enters the on state. However, when the first switch subunit 3321 or the second switch subunit 3322 is replaced by a resistor, the detection and reporting unit 333 will continuously detect the operating state of the first input terminal a2 or the operating state of the second input terminal b2.

[0101] It is also understood that in other embodiments, the voltage divider unit 332 may also be a combination of other components (e.g., resistors) and switches, and the operating state of the drive circuit is controlled by controlling the opening and closing of the switches. Therefore, the present application does not limit the specific structure of the voltage divider unit 332.

[0102] In addition, the logic processing circuit 3332 mentioned in the present application can be a digital logic circuit composed of one or more logic gates such as an AND gate, an OR gate, a NOT gate, and an XOR gate. The logic processing circuit 3332 can convert the comparison signal into a corresponding detection signal through an internal logic gate when receiving the comparison signal output by the comparator 3331. For example, the comparison signal output by the comparator 3331 is 1 (used to indicate that the first voltage signal is greater than the first threshold voltage), and the logic gate in the logic processing circuit 3332 can process the comparison signal 1 (e.g., through an AND gate and through a NOT gate), thereby outputting a second detection signal (e.g., 10) indicating that the working state of the first input terminal a2 is a short-circuit state to the power supply. Therefore, the present application does not limit the specific structure of the logic processing circuit 3332.

[0103] In addition, in other embodiments, the comparator 3331 may be replaced by an analog-to-digital converter. The analog-to-digital converter may convert the analog first voltage signal or the second voltage signal into a digital voltage and transmit the digital voltage to the logic processing circuit 3332. The logic processing circuit 3332 may report the digital voltage to the central processing unit of the electronic device so that the central processing unit can compare the digital voltage with the first threshold voltage and the second threshold voltage to determine the operating state of the first input terminal a2 or the operating state of the second input terminal b2. This application is not limited to this.

[0104] The following combination Figure 4D The circuit structure diagram shown in FIG. 1 describes the specific structure of the detection module 33 mentioned in this application.

[0105] Specifically, refer to Figure 4D , the reference voltage generating unit 331 may include a first resistor R1, a second resistor R2, a first transistor M1, a second transistor M2, a third transistor M3, and a fourth transistor M4.

[0106] Specifically, refer to Figure 4D The first terminal a7 of the first resistor R1 is electrically connected to a first power source (e.g., voltage source VCC-1). The second terminal b7 of the first resistor R1 is respectively connected to the first terminal d11 of the first transistor M1, the first terminal d31 of the third transistor M3, and the first terminal a8 of the second resistor R2. The second terminal b8 of the second resistor R2 is grounded. The second terminal d12 of the first transistor M1 is electrically connected to a second power source (e.g., a series structure formed by the voltage source VCC-2 and the current source I1). The third terminal d13 of the first transistor M1 is connected to the second terminal d12 of the first transistor M1. The second terminal d22 of the second transistor M2 is electrically connected to a third power source (e.g., voltage source VCC-3). The third terminal d23 of the second transistor M2 is connected to the third terminal d13 of the first transistor M1. The first terminal d21 of the second transistor M2 is connected to the first terminal d41 of the fourth transistor M4. The first terminal d21 of the second transistor M2 is connected to the output terminal e1 of the reference voltage generating unit 331. A second terminal d32 of the third transistor M3 is connected to a third terminal d33 of the third transistor M3, and the third terminal d33 of the third transistor M3 is grounded. A first terminal d41 of the fourth transistor M4 is connected to the output terminal e1 of the reference voltage generating unit 331, a third terminal d43 of the fourth transistor M4 is connected to the third terminal d33 of the third transistor M3, and a second terminal d42 of the fourth transistor M4 is grounded.

[0107] Among them, in the above Figure 4D In order to provide a constant voltage to drive the circuit operation in the reference voltage generating unit 331, the first power supply and the third power supply can both be voltage sources. For example, the first power supply can be the voltage source VCC-1, and the third power supply can be the voltage source VCC-3. In addition, in order to provide a stable bias voltage to each transistor to drive the transistor operation, the second power supply can also be implemented by connecting a voltage source VCC-2 and a current source I1 in series. For example, when the voltage source VCC-2 and the current source I1 are connected in series, the voltage across each transistor in the series circuit under this current can be distributed in a certain proportion to the voltage of the voltage source VCC-2, thereby providing a suitable operating point voltage for the transistor. In addition, in order to provide a stable bias current to each transistor to stabilize the operating state of the transistor, the third terminal d33 of the third transistor M3 can also be connected to a current source I2 and then grounded.

[0108] The voltage sources VCC-1, VCC-2, and VCC-3 may be built-in voltage sources in the reference voltage generating unit 331 or external voltage sources. The voltage sources VCC-1, VCC-2, and VCC-3 may be the same or different.

[0109] In addition, the current source I1 and the current source I2 can be current sources built into the reference voltage generating unit 331 or external current sources. The current source I1 and the current source I2 can be the same or different.

[0110] Furthermore, in the above Figure 4D In the embodiment, the first transistor M1, the second transistor M2, the third transistor M3, and the fourth transistor M4 are all MOS transistors. In this case, the first end d11 of the first transistor M1, the first end d21 of the second transistor M2, the first end d31 of the third transistor M3, and the first end d41 of the fourth transistor M4 may be sources of the MOS transistors; the second end d12 of the first transistor M1, the second end d22 of the second transistor M2, the second end d32 of the third transistor M3, and the second end d42 of the fourth transistor M4 may be drains of the MOS transistors; the third end d13 of the first transistor M1, the third end d23 of the second transistor M2, the third end d33 of the third transistor M3, and the third end d43 of the fourth transistor M4 may be gates of the MOS transistors.

[0111] In other embodiments, the first transistor M1 , the second transistor M2 , the third transistor M3 and the fourth transistor M4 may also be other bipolar transistors, field effect transistors, etc., which is not limited in this application.

[0112] Further, in some embodiments, reference Figure 4D The voltage divider unit 332 may further include a control subunit 3323. The control subunit 3323 may be configured to control the first switch subunit 3321 and / or the second switch subunit 3322 to be in an operating state upon detecting a detection instruction. The detection instruction instructs the detection module 33 to detect the operating state of the input terminal of the load module 32.

[0113] Further, continue to refer to Figure 4D , the first switch subunit 3321 may include a fifth transistor M5 and a sixth transistor M6, and the second switch subunit 3322 may include a seventh transistor M7 and an eighth transistor M8.

[0114] The first terminal d51 of the fifth transistor M5 is connected to the output terminal e1 of the reference voltage generating unit 331, the second terminal d52 of the fifth transistor M5 is connected to the second terminal d62 of the sixth transistor M6, and the third terminal d53 of the fifth transistor M5 is connected to the control subunit 3323. The first terminal d61 of the sixth transistor M6 is connected to the first input terminal a2 of the load module 32, and the third terminal d63 of the sixth transistor M6 is connected to the control subunit 3323. The first terminal d71 of the seventh transistor M7 is connected to the output terminal e1 of the reference voltage generating unit 331, the second terminal d72 of the seventh transistor M7 is connected to the second terminal d82 of the eighth transistor M8, and the third terminal d73 of the seventh transistor M7 is connected to the control subunit 3323. The first terminal d81 of the eighth transistor M8 is connected to the second input terminal b2 of the load module 32, and the third terminal d83 of the eighth transistor M8 is connected to the control subunit 3323.

[0115] Among them, in the above Figure 4D In the embodiment, the fifth transistor M5, the sixth transistor M6, the seventh transistor M7, and the eighth transistor M8 are all MOS transistors. In this case, the first end d51 of the fifth transistor M5, the first end d61 of the sixth transistor M6, the first end d71 of the seventh transistor M7, and the first end d81 of the eighth transistor M8 can be sources of the MOS transistors; the second end d52 of the fifth transistor M5, the second end d62 of the sixth transistor M6, the second end d72 of the seventh transistor M7, and the second end d82 of the eighth transistor M8 can be drains of the MOS transistors; and the third end d53 of the fifth transistor M5, the third end d63 of the sixth transistor M6, the third end d73 of the seventh transistor M7, and the third end d83 of the eighth transistor M8 can be gates of the MOS transistors.

[0116] In other embodiments, the fifth transistor M5 , the sixth transistor M6 , the seventh transistor M7 and the eighth transistor M8 may also be other bipolar transistors, field effect transistors, etc., which is not limited in this application.

[0117] In addition, illustratively, the control subunit 3323 can be a single-chip microcomputer, a microcontroller, etc., which is not limited in this application. Specifically, when it is necessary to detect the working state of the input terminal of the load module 32 through the detection module 33, the control subunit 3323 can apply a high-level signal to the third terminals of the fifth transistor M5, the sixth transistor M6, the seventh transistor M7, and the eighth transistor M8, so that the fifth transistor M5, the sixth transistor M6, the seventh transistor M7, and the eighth transistor M8 enter a conducting state. Conversely, the control subunit 3323 can also apply a low-level signal to the third terminals of the fifth transistor M5, the sixth transistor M6, the seventh transistor M7, and the eighth transistor M8, so that the fifth transistor M5, the sixth transistor M6, the seventh transistor M7, and the eighth transistor M8 enter a disconnected state, thereby stopping the detection of the working state of the input terminal of the load module 32.

[0118] Further, continue to refer to Figures 4A to 4B In the embodiment of the present application, the driving circuit may further include a driving module 31 (e.g., a Class D amplifier), wherein the output end of the driving module 31 is connected to the input end of the load module 32. The driving module 31 may be used to generate a driving signal, and the driving signal may be used to drive the load module 32.

[0119] For example, refer to Figure 4A In this embodiment of the present application, the driver module 31 and the detection module 33 can be integrated into the same chip 30. Therefore, when the driver module 31 and the detection module 33 are mounted on a circuit board, the integrated chip 30 is also mounted on the circuit board. This can reduce the circuit board area and circuit board cost, thereby meeting the miniaturization requirements of circuit boards and electronic devices.

[0120] Further, in some embodiments, reference Figure 4C The driver circuit may further include a processing module 34, that is, the chip 30 may include a processing module 34. The processing module 34 may be connected to the logic processing circuit 3332. The processing module 34 may be configured to control the operation of the driver module 31 based on the detection signal output by the logic processing circuit 3332. For example, if the detection signal output by the logic processing circuit 3332 indicates that the first input terminal a2 or the second input terminal b2 is short-circuited to the power supply (or to ground), the processing module 34 may be configured to control the driver module 31 to suspend operation. In this way, the high current generated by the short circuit can be prevented from burning the chip 30, thereby protecting the chip 30.

[0121] For example, continue to refer to Figure 4A and Figure 4CThe load module 32 may include a low-pass filter LC and a speaker RL. The low-pass filter LC includes an inductor L1, an inductor L2, a capacitor C1, and a capacitor C2. The first output terminal a1 of the class D power amplifier is connected to the first input terminal a2 of the load module 32, which may indicate that the first output terminal a1 of the class D power amplifier is connected to the inductor L1, the inductor L1 is respectively connected to the speaker RL and the capacitor C1, and the capacitor C1 is grounded. The second output terminal b1 of the class D power amplifier is connected to the second input terminal b2 of the load module 32, which may indicate that the second output terminal b1 of the class D power amplifier is connected to the inductor L2, the inductor L2 is respectively connected to the speaker RL and the capacitor C2, and the capacitor C2 is grounded.

[0122] As you can understand, after a Class D amplifier converts the input audio signal Vin into a high-frequency pulse signal, it feeds this high-frequency pulse signal into a low-pass filter LC. The low-pass filter LC removes the carrier component from the high-frequency pulse signal, retaining only the baseband components of the audio signal, thereby restoring the original analog audio signal to drive the speaker RL to produce sound.

[0123] In this way, based on the above-described drive circuit, the operating status of the input terminal of the load module 32 can be detected, so that if a short circuit occurs at the input terminal of the load module, protective measures can be taken promptly for the chip 30 where the drive module 31 is located. Furthermore, the drive module 31 and the detection module 33 can be integrated into the same chip 30, reducing the circuit board area and cost, while meeting the miniaturization requirements of the circuit board and electronic equipment.

[0124] It is understood that the above-mentioned driving circuit of the present application can be applied to any electronic device having a driving module and a load module. Among them, the electronic device includes but is not limited to a mobile station (MS), a mobile terminal (MT), etc. For example, the electronic device can be a mobile phone, a smart TV, a tablet computer (Pad), a desktop computer, a laptop computer, a virtual reality (VR) device, an augmented reality (AR) device, a terminal in a self-driving car, a terminal in a smart city, a terminal in a smart home, etc. The embodiments of the present application do not limit the specific form of the electronic device.

[0125] Correspondingly, based on the above driving circuit, the embodiment of the present application also provides a detection method. Figure 5 The flow chart shown in FIG. briefly introduces the detection method mentioned in the embodiment of the present application. Specifically, the detection method can be executed by an electronic device, such as any electronic device such as the mobile phone mentioned above. Figure 5 Specifically, the method is as follows:

[0126] S501: When a detection instruction is detected, the voltage dividing unit in the detection module is controlled to be in a working state, and the driving module is controlled to suspend operation.

[0127] The detection instruction is used to instruct the detection module to detect the working status of the input end of the load module.

[0128] In some embodiments, the detection instruction may further include but is not limited to: reaching a detection period (eg, performing a detection every 5 days) or detecting that the electronic device is restarted. The driving module may include a Class D amplifier.

[0129] In some embodiments, the electronic device controls the voltage dividing unit (eg, Figure 4C The first switch subunit 3321 and the second switch subunit 3322 in the control circuit are configured, and after the control driving module (such as a Class D amplifier) ​​is suspended, only the reference voltage generating unit in the driving circuit can output the reference voltage, and the driving module will not output a sinusoidal audio signal voltage, thereby preventing the detection result of the detection reporting unit from being erroneous due to the nature of the audio voltage signal itself, thereby further improving the accuracy of the detection result of the input end of the load module.

[0130] S502: Determine the working state of the input end of the load module based on the detection signal output by the detection reporting unit in the detection module.

[0131] In some embodiments, reference Figure 3 In the above-mentioned driving circuit, the reference voltage generating unit 331 can be used to generate a reference voltage Vref. In this case, the voltage dividing unit 332 can be used to generate a voltage signal (e.g., a voltage signal at VOP) based on the reference voltage Vref and the operating status of the input terminal of the load module 32. The detection reporting unit 333 can be used to collect the voltage signal (e.g., the voltage signal at VOP) and output a detection signal based on the collected voltage signal, wherein the detection signal can be used to indicate the operating status of the input terminal of the load module 32.

[0132] For example, in Figure 3In the embodiment, if the input terminal of the load module 32 is in normal operation and the resistance of the voltage divider unit 332 is small, the voltage signal at VOP collected by the detection and reporting unit 333 is the same as or slightly different from the reference voltage Vref. If the input terminal of the load module 32 is short-circuited to the power supply, the voltage signal at VOP collected by the detection and reporting unit 333 will be much larger than the reference voltage Vref. If the input terminal of the load module 32 is short-circuited to ground, the voltage signal at VOP collected by the detection and reporting unit 333 will be much smaller than the reference voltage Vref.

[0133] Therefore, in the driving circuit provided in the present application, the detection reporting unit can determine a detection signal for indicating the working status of the input terminal of the load module based on the collected voltage signal.

[0134] In some embodiments, when it is determined that the input terminal of the load module is short-circuited to the power supply or short-circuited to the ground, the processing module may further control the driving module to remain in a suspended working state.

[0135] In this way, through the above method, the working state of the input end of the load module can be detected, so that when a short circuit occurs at the input end, protective measures can be taken in time for the chip where the driver module is located.

[0136] The present application also provides a chip, which may include the driving circuit provided by any of the above embodiments.

[0137] The present application also provides a circuit board that can accommodate a load module and the chip described in the above embodiments. The chip can include a detection module, which can include a voltage divider. Furthermore, the second end of the voltage divider can be connected to the input end of the load module.

[0138] Furthermore, in some embodiments, the chip may further include a driving module, wherein the output end of the driving module is used to connect to the input end of the load module. The driving module may be used to generate a driving signal, and the driving signal is used to drive the load module.

[0139] In this way, the driving module and the detection module can be integrated into the same chip to reduce the area and cost of the circuit board, while meeting the miniaturization requirements of the circuit board and electronic equipment.

[0140] An embodiment of the present application also provides an electronic device, which may include any of the circuit boards mentioned above.

[0141] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.

[0142] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.

[0143] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.

[0144] Although the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims

1. A driving circuit, characterized in that: Including detection module; The detection module includes a reference voltage generating unit, a voltage dividing unit and a detection reporting unit; The reference voltage generating unit is used to generate a reference voltage; The first end of the voltage dividing unit is connected to the output end of the reference voltage generating unit, and the second end of the voltage dividing unit is used to be connected to the input end of the load module; the voltage dividing unit is used to generate a voltage signal based on the reference voltage and the working state of the input end of the load module; The detection reporting unit is connected to the second end of the voltage dividing unit, and is used to collect the voltage signal and output a detection signal based on the voltage signal. The detection signal is used to indicate the working state of the input end of the load module.

2. The driving circuit according to claim 1, wherein: The voltage dividing unit includes a first switch subunit and a second switch subunit, and the input end of the load module includes a first input end and a second input end; wherein, The first end of the first switch subunit and the first end of the second switch subunit are both connected to the output end of the reference voltage generating unit, the second end of the first switch subunit is respectively connected to the first input end of the load module and the detection reporting unit, and the second end of the second switch subunit is respectively connected to the second input end of the load module and the detection reporting unit; The first switch subunit is used to generate a first voltage signal based on the reference voltage and the working state of the first input terminal, and the second switch subunit is used to generate a second voltage signal based on the reference voltage and the working state of the second input terminal.

3. The driving circuit according to claim 2, wherein: The detection reporting unit includes a comparator and a logic processing circuit; wherein, The first end of the comparator is connected to the second end of the first switch subunit, the second end of the comparator is connected to the second end of the second switch subunit, and the output end of the comparator is connected to the logic processing circuit; The comparator is configured to output a comparison signal based on the first voltage signal and the second voltage signal; The logic processing circuit is used to output a detection signal according to the comparison signal, and the detection signal is used to indicate the working state of the first input terminal and / or the second input terminal.

4. The driving circuit according to claim 3, wherein: The logic processing circuit is also used to output a first detection signal according to the comparison signal when the first voltage signal is equal to the second voltage signal, and the first detection signal is used to indicate that the working status of the first input terminal and the working status of the second input terminal are both normal working status.

5. The driving circuit according to claim 3, wherein: The comparator includes a first threshold voltage and a second threshold voltage, wherein the first threshold voltage is greater than the second threshold voltage; The logic processing circuit is further configured to output a second detection signal according to the comparison signal when the first voltage signal is greater than the first threshold voltage, wherein the second detection signal is configured to indicate that the working state of the first input terminal is a short-circuit state to the power supply; The logic processing circuit is further configured to output a third detection signal according to the comparison signal when the first voltage signal is less than the second threshold voltage, wherein the third detection signal is configured to indicate that the working state of the first input terminal is a short-circuit state to ground.

6. The driving circuit according to claim 3, wherein: The comparator includes a first threshold voltage and a second threshold voltage, wherein the first threshold voltage is greater than the second threshold voltage; The logic processing circuit is further configured to output a fourth detection signal according to the comparison signal when the second voltage signal is greater than the first threshold voltage, wherein the fourth detection signal is configured to indicate that the working state of the second input terminal is a short-circuit state to the power supply; The logic processing circuit is further configured to output a fifth detection signal according to the comparison signal when the second voltage signal is less than the second threshold voltage, wherein the fifth detection signal is configured to indicate that the working state of the second input terminal is a short-circuit state to ground.

7. The driving circuit according to any one of claims 2 to 6, characterized in that: The reference voltage generating unit includes a first resistor, a second resistor, a first transistor, a second transistor, a third transistor and a fourth transistor; wherein, The first end of the first resistor is used to be electrically connected to the first power supply, and the second end of the first resistor is respectively connected to the first end of the first transistor, the first end of the third transistor and the first end of the second resistor; The second end of the second resistor is used for grounding; The second end of the first transistor is used to be electrically connected to a second power supply, and the third end of the first transistor is connected to the second end of the first transistor; The second end of the second transistor is used to be electrically connected to a third power supply, the third end of the second transistor is connected to the third end of the first transistor, the first end of the second transistor is connected to the first end of the fourth transistor, and the first end of the second transistor is connected to the output end of the reference voltage generating unit; The second end of the third transistor is connected to the third end of the third transistor, and the third end of the third transistor is used for grounding; A first terminal of the fourth transistor is connected to the output terminal of the reference voltage generating unit, a third terminal of the fourth transistor is connected to the third terminal of the third transistor, and a second terminal of the fourth transistor is grounded.

8. The driving circuit according to claim 7, wherein: The voltage divider unit also includes a control subunit, which is used to control the first switch subunit and / or the second switch subunit to be in a working state when a detection instruction is detected; the detection instruction is used to instruct the detection module to detect the working state of the input end of the load module.

9. The driving circuit according to claim 8, wherein: The first switch subunit includes a fifth transistor and a sixth transistor, and the second switch subunit includes a seventh transistor and an eighth transistor; wherein, a first terminal of the fifth transistor connected to the output terminal of the reference voltage generating unit, a second terminal of the fifth transistor connected to the second terminal of the sixth transistor, and a third terminal of the fifth transistor connected to the control subunit; A first terminal of the sixth transistor is connected to the first input terminal of the load module, and a third terminal of the sixth transistor is connected to the control subunit; a first terminal of the seventh transistor connected to the output terminal of the reference voltage generating unit, a second terminal of the seventh transistor connected to the second terminal of the eighth transistor, and a third terminal of the seventh transistor connected to the control subunit; The first end of the eighth transistor is used to be connected to the second input end of the load module, and the third end of the eighth transistor is connected to the control subunit.

10. The driving circuit according to any one of claims 3 to 6, characterized in that: The driving circuit further includes a driving module, an output end of the driving module is used to be connected to an input end of the load module, wherein the driving module is used to generate a driving signal, and the driving signal is used to drive the load module.

11. The driving circuit according to claim 10, wherein: The driving circuit further includes a processing module, which is connected to the logic processing circuit and is used to control the driving module to operate according to the detection signal.

12. A detection method, characterized in that: The driving circuit according to any one of claims 1 to 11, wherein the driving circuit comprises a detection module and a driving module; wherein the method comprises: When a detection instruction is detected, the voltage divider unit in the detection module is controlled to be in a working state, and the driving module is controlled to suspend operation; the detection instruction is used to instruct the detection module to detect the working state of the input end of the load module; Based on the detection signal output by the detection reporting unit in the detection module, the working state of the input end of the load module is determined.

13. The method according to claim 12, characterized in that The method further comprises: When it is determined that the input terminal of the load module is short-circuited to the power supply or short-circuited to the ground, the driving module is controlled to maintain a suspended working state.

14. A chip, characterized in that: The drive circuit comprises the drive circuit according to any one of claims 1 to 11.

15. A circuit board, characterized in that: The device comprises a load module and the chip according to claim 14, wherein the chip comprises a detection module, the detection module comprises a voltage divider unit, and the second end of the voltage divider unit is used to be connected to the input end of the load module.

16. The circuit board according to claim 15, characterized in that The chip further includes a driving module, an output end of the driving module being connected to an input end of the load module, wherein the driving module is used to generate a driving signal, and the driving signal is used to drive the load module.

17. An electronic device, characterized in that: The electronic device comprises the circuit board according to claim 15 or 16.