CN115022775A - Drive circuit, terminal device and protection method - Google Patents

Drive circuit, terminal device and protection method Download PDF

Info

Publication number
CN115022775A
CN115022775A CN202210933853.5A CN202210933853A CN115022775A CN 115022775 A CN115022775 A CN 115022775A CN 202210933853 A CN202210933853 A CN 202210933853A CN 115022775 A CN115022775 A CN 115022775A
Authority
CN
China
Prior art keywords
voltage
loudspeaker
module
resistor
sampling resistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210933853.5A
Other languages
Chinese (zh)
Other versions
CN115022775B (en
Inventor
黄停
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210933853.5A priority Critical patent/CN115022775B/en
Publication of CN115022775A publication Critical patent/CN115022775A/en
Application granted granted Critical
Publication of CN115022775B publication Critical patent/CN115022775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/06Loudspeakers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a protection method for a driving circuit, terminal equipment and a loudspeaker, relates to the technical field of circuits, and can reduce cost and occupied space. The driving circuit comprises a loudspeaker, a coder and a motor driving module; the motor driving module is respectively electrically connected with the loudspeaker and the codec; the codec is used for outputting the sound source to the motor driving module; the motor driving module is used for amplifying the sound source and outputting the sound source to the loudspeaker so as to drive the loudspeaker to operate.

Description

Drive circuit, terminal device and protection method
Technical Field
The present application relates to the field of circuit technologies, and in particular, to a driving circuit, a terminal device, and a protection method.
Background
A speaker is one of the basic configurations of a terminal device. In order to pursue better sound quality and larger sound, a single Smart Power Amplifier (Smart PA) module with high efficiency is generally required to be arranged to drive the loudspeaker to work. However, the cost of Smart PA is high, resulting in high cost of terminal equipment.
Disclosure of Invention
In order to solve the technical problem, the application provides a driving circuit, a terminal device and a protection method. The cost of the terminal equipment can be reduced, and the occupied space is reduced.
In a first aspect, an embodiment of the present application provides a driving circuit, which includes a speaker, a codec, and a motor driving module; the motor driving module is respectively electrically connected with the loudspeaker and the codec; the codec is used for outputting the sound source to the motor driving module; the motor driving module is used for amplifying the sound source and outputting the sound source to the loudspeaker so as to drive the loudspeaker to operate.
Can drive speaker work through motor drive module, need not to set up intelligent power amplifier module alone to can save an intelligent power amplifier module, so, can reduce terminal equipment's cost, and, reduce the proportion of terminal equipment inner space, promote terminal equipment inner space's utilization ratio.
In some possible implementations, the driving circuit further includes a processing module electrically connected to the codec; the codec comprises a first analog-to-digital converter and a second analog-to-digital converter, the first analog-to-digital converter is used for collecting the voltage of the positive end of the loudspeaker and sending the voltage to the processing module, and the second analog-to-digital converter is used for collecting the voltage of the negative end of the loudspeaker and sending the voltage to the processing module; the processing module is used for determining the current temperature of the voice coil of the loudspeaker according to the voltage of the positive end of the loudspeaker and the voltage of the negative end of the loudspeaker, comparing the current temperature with the corresponding relation between the pre-stored temperature and the power of the sound source, and determining the power of the sound source at the current temperature so as to control the codec to output the power of the sound source at the current temperature.
Since a plurality of analog-to-digital converters are usually integrated inside the codec, and the number of the analog-to-digital converters integrated inside the codec is larger than the number of the analog-to-digital converters actually used, that is, there are redundant analog-to-digital converters inside the codec. Therefore, the voltage at two ends of the loudspeaker can be collected by using the redundant analog-to-digital converter inside the codec, so that the temperature of the loudspeaker voice coil can be determined on the basis of not increasing the structure, and the cost can not be additionally increased due to the monitoring of the temperature of the loudspeaker voice coil on the basis of reducing the cost of terminal equipment by using the motor driving module.
Illustratively, the voltages at the positive and negative terminals of the speaker are the voltages across the voice coil of the speaker.
In some possible implementation manners, on the basis that the codec comprises a first analog-to-digital converter and a second analog-to-digital converter, the motor driving module is electrically connected with the processing module; the motor driving module is also used for collecting the current output to the loudspeaker and sending the current to the processing module; the processing module is used for determining the current temperature of the voice coil of the loudspeaker according to the voltage of the positive end of the loudspeaker, the voltage of the negative end of the loudspeaker and the current, comparing the current temperature with the corresponding relation of the pre-stored temperature and the power of the sound source, and determining the power of the sound source at the current temperature so as to control the codec to output the power of the sound source at the current temperature. The structure of the collection electric current that sets up through motor drive module inside gathers the electric current of output promptly to confirm the impedance of voice coil loudspeaker voice coil according to the voltage at voice coil loudspeaker voice coil both ends and the electric current that flows through the voice coil loudspeaker voice coil, and then confirm the temperature of voice coil loudspeaker voice coil according to the impedance of voice coil loudspeaker voice coil.
In some possible implementation manners, on the basis that the codec includes the first analog-to-digital converter and the second analog-to-digital converter, the driving circuit further includes a sampling resistor, a first end of the sampling resistor is electrically connected to the motor driving module, and a second end of the sampling resistor is electrically connected to a negative end of the speaker; the codec also comprises a third analog-to-digital converter, and the third analog-to-digital converter is used for collecting the voltage of the first end of the sampling resistor and sending the voltage to the processing module; the processing module is used for determining voltage differences at two ends of the sampling resistor according to the voltage of the first end of the sampling resistor and the voltage of the negative end of the loudspeaker, determining current of the loudspeaker according to the voltage differences and the resistance value of the sampling resistor, determining current temperature of the voice coil according to the voltage of the positive end of the loudspeaker, the voltage of the negative end of the loudspeaker and the current, comparing the current temperature with a corresponding relation of the temperature stored in advance and the power of the sound source, determining the power of the sound source at the current temperature, and controlling the codec to output the power of the sound source at the current temperature. The current of the voice coil is determined based on the voltage at two ends of the sampling resistor and the resistance value of the sampling resistor, the impedance of the voice coil is determined according to the voltage at two ends of the voice coil and the current flowing through the voice coil, and then the temperature is determined according to the impedance.
Since a plurality of analog-to-digital converters are usually integrated inside the codec, and the number of the analog-to-digital converters integrated inside the codec is larger than the number of the analog-to-digital converters actually used, that is, there are redundant analog-to-digital converters inside the codec. Therefore, the voltage of the sampling resistor can be acquired by utilizing the redundant analog-to-digital converter inside the codec, so that the acquisition of the temperature of the voice coil of the loudspeaker is realized on the basis of not increasing the structure, and the cost is not additionally increased due to the monitoring of the temperature of the voice coil of the loudspeaker on the basis of reducing the cost of terminal equipment by adopting the motor driving module.
Illustratively, the sampling resistor has a resistance value between 50-400 milliohms. For example, 50 milliohm, 60 milliohm, 70 milliohm, 80 milliohm, 90 milliohm, 100 milliohm, 150 milliohm, 200 milliohm, 300 milliohm, 400 milliohm, etc., that is, the resistance value of the sampling resistor is lower, so that the temperature of the voice coil can be determined while avoiding larger loss.
In some possible implementation manners, on the basis that the codec includes the first analog-to-digital converter and the second analog-to-digital converter, the driving circuit further includes a first filtering step-down module and a second filtering step-down module, the first filtering step-down module is located between the first analog-to-digital converter and the positive terminal of the speaker, and is configured to filter and step down the voltage at the positive terminal of the speaker and output the voltage to the first analog-to-digital converter, and the second filtering step-down module is located between the second analog-to-digital converter and the negative terminal of the speaker, and is configured to filter and step down the voltage at the negative terminal of the speaker and output the voltage to the second analog-to-digital converter, thereby avoiding damage to the codec caused by a larger voltage.
In some possible implementation manners, on the basis that the driving circuit further includes a first filtering and voltage-reducing module and a second filtering and voltage-reducing module, the first filtering and voltage-reducing module and the second filtering and voltage-reducing module both include a dc blocking capacitor, a first resistor and a second resistor, a first pole of the dc blocking capacitor of the first filtering and voltage-reducing module is electrically connected to the positive terminal of the speaker, a second pole of the dc blocking capacitor is electrically connected to a first end of the first resistor, a second end of the first resistor and a first end of the second resistor are electrically connected to the first analog-to-digital converter, and a second end of the second resistor is grounded; the first pole of the blocking capacitor of the second filtering and voltage-reducing module is electrically connected with the negative end of the loudspeaker, the second pole of the blocking capacitor is electrically connected with the first end of the first resistor, the second end of the first resistor and the first end of the second resistor are both electrically connected with the second analog-to-digital converter, and the second end of the second resistor is grounded. The filtering and voltage reducing module is simple in structure and low in cost.
It should be noted that, the above description only takes the first filtering and voltage reducing module and the second filtering and voltage reducing module including the blocking capacitor, the first resistor and the second resistor as an example, but the present application is not limited thereto, and the first filtering and voltage reducing module and the second filtering and voltage reducing module are within the protection scope of the present application as long as the first filtering and voltage reducing module and the second filtering and voltage reducing module can perform voltage reducing.
The selection of the resistance values of the first resistor and the second resistor and the selection of the blocking capacitor are not limited in the embodiment of the present application, and those skilled in the art can select the resistance values according to actual situations.
In some possible implementation manners, on the basis that the driving circuit includes the sampling resistor, the driving circuit further includes a third filtering and voltage-reducing module, which is located between the first end of the sampling resistor and the third analog-to-digital converter, and is configured to filter and reduce the voltage at the first end of the sampling resistor and output the voltage to the third analog-to-digital converter, so that damage to the codec when the voltage at the first end of the sampling resistor is large is avoided.
In some possible implementation manners, on the basis that the driving circuit further includes a third filtering and voltage-reducing module, the third filtering and voltage-reducing module also includes a first resistor, a second resistor, and a dc blocking capacitor, a first pole of the dc blocking capacitor of the third filtering and voltage-reducing module is electrically connected to the first end of the sampling resistor, a second pole of the dc blocking capacitor is electrically connected to the first end of the first resistor, a second end of the first resistor and a first end of the second resistor are electrically connected to the third analog-to-digital converter, and a second end of the second resistor is grounded.
It should be noted that, the above description only takes the example that the third filter voltage-reducing module includes the dc blocking capacitor, the first resistor and the second resistor, but the present application is not limited thereto, and the third filter voltage-reducing module is within the scope of the present application as long as the third filter voltage-reducing module can perform the voltage-reducing function.
The selection of the resistance values of the first resistor and the second resistor and the selection of the blocking capacitor are not limited in the embodiment of the present application, and those skilled in the art can select the resistance values according to actual situations.
In some possible implementation manners, on the basis that the driving circuit includes a processing module, the processing module includes a module capable of performing data processing, such as a digital signal processor.
In a second aspect, an embodiment of the present application further provides a terminal device, including the driving circuit described in the first aspect. For technical effects corresponding to any one implementation manner of the second aspect and the second aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not repeated here.
In a third aspect, an embodiment of the present application provides a method for protecting a speaker, where the method for protecting a speaker is applied to the driving circuit in the first aspect, and the method for protecting a speaker includes: respectively acquiring the voltages of the positive terminal and the negative terminal of the loudspeaker; determining the impedance of a voice coil in the loudspeaker according to the voltages of the positive end and the negative end of the loudspeaker; determining the current temperature of the voice coil according to the impedance; comparing the current temperature with a corresponding relation between the pre-stored temperature and the power of the sound source, and determining the power of the sound source at the current temperature; and controlling the codec to output the power of the sound source at the current temperature.
For technical effects corresponding to any one implementation manner of the third aspect and the third aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not repeated here.
In some possible implementations, determining an impedance of a voice coil within the speaker from voltages at the positive and negative terminals of the speaker includes: acquiring current output to a loudspeaker by a motor driving module; the impedance of the voice coil of the loudspeaker is determined according to the voltage and the current of the positive terminal and the negative terminal of the loudspeaker.
In some possible implementation manners, the driving circuit further includes a sampling resistor, a first end of the sampling resistor is electrically connected to the motor driving module, and a second end of the sampling resistor is electrically connected to a negative end of the speaker; determining the impedance of a voice coil within a speaker from the voltages at the positive and negative terminals of the speaker, comprising: acquiring the voltage of a first end of a sampling resistor; determining the voltage difference between the two ends of the sampling resistor according to the voltage of the first end of the sampling resistor and the voltage of the negative end of the loudspeaker; determining the current of the loudspeaker according to the voltage difference and the resistance value of the sampling resistor; and determining the impedance of a voice coil in the loudspeaker according to the voltage of the positive end of the loudspeaker, the voltage of the negative end of the loudspeaker and the current.
In some possible implementations, obtaining the voltages of the positive terminal and the negative terminal of the speaker respectively includes: acquiring the voltages of the positive terminal and the negative terminal of the loudspeaker after filtering and voltage reduction; and determining the voltages of the positive terminal and the negative terminal of the loudspeaker according to the voltages of the positive terminal and the negative terminal of the loudspeaker after the filtering and voltage reduction.
In some possible implementations, obtaining the voltage at the first end of the sampling resistor includes: acquiring the voltage of the first end of the sampling resistor after filtering and voltage reduction; and determining the voltage of the first end of the sampling resistor according to the voltage of the first end of the sampling resistor after the filtering and voltage reduction.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium. The computer-readable storage medium includes a computer program that, when run on a terminal device, causes the terminal device to execute the method of protecting a speaker of any one of the third aspect and the fourth aspect.
Any one implementation of the fourth aspect and the fourth aspect corresponds to any one implementation of the third aspect and the third aspect, respectively. For technical effects corresponding to any one implementation manner of the fourth aspect and the fourth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the third aspect and the third aspect, and details are not repeated here.
In a fifth aspect, embodiments provide a computer program product comprising a computer program which, when executed, causes a computer to perform a method of protecting a loudspeaker as in any one of the third or fourth aspects.
Any one implementation of the fifth aspect corresponds to any one implementation of the third aspect. For technical effects corresponding to any one of the implementation manners of the fifth aspect and the fifth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the third aspect and the third aspect, and details are not repeated here.
In a sixth aspect, the present application provides a chip comprising a processing circuit, a transceiver pin. Wherein the transceiving pin and the processing circuit communicate with each other via an internal connection path, the processing circuit performing the method of protecting a loudspeaker as in any one of the third aspect or the fourth aspect to control the receiving pin to receive a signal to control the transmitting pin to transmit a signal.
Any one implementation of the sixth aspect corresponds to any one implementation of the third aspect. For technical effects corresponding to any one of the implementation manners of the sixth aspect and the sixth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the third aspect and the third aspect, and details are not described here.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device of the related art;
fig. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a driving circuit according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a driving circuit according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a driving circuit according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a driving circuit according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a driving circuit according to an embodiment of the present disclosure;
fig. 8 is a flowchart of a protection method for a speaker according to an embodiment of the present application;
fig. 9 is a flowchart of a protection method for a speaker according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second," and the like, in the description and in the claims of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first target object and the second target object, etc. are specific sequences for distinguishing different target objects, rather than describing target objects.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of processing units refers to two or more processing units; the plurality of systems refers to two or more systems.
In order to facilitate understanding of the embodiments of the present application, a brief description is provided below of the problems in the prior art and the processes of the inventors for proposing the embodiments of the present application with reference to fig. 1. As shown in fig. 1, a motor 191 and a speaker 170A are generally included in a terminal device (e.g., a cellular phone).
The speaker 170A, also called "loudspeaker", is used to convert the audio electrical signal into a sound signal, and the mobile phone can listen to music through the speaker 170A, or listen to hands-free conversation, etc. In order to pursue better sound quality and larger sound, a separate and high-efficiency intelligent power amplifier module 30 is generally required to be arranged to drive the loudspeaker 170A to work. Specifically, a Coder-Decoder (CODEC) 171 demodulates and processes an input audio signal (e.g., music) of the application layer, and then converts the demodulated audio signal into a sound source, and sends the sound source to the smart power amplifier module 30, and the smart power amplifier module 30 raises the pressure of the sound source (e.g., to 10V), and outputs the sound source into a signal with driving capability to the speaker 170A, so as to drive the speaker 170A to operate.
The motor 191 can realize a vibration function so that a user receives tactile feedback when performing touch operation on the mobile phone to confirm operation execution conditions; or the mobile phone generates vibration when receiving the notification to remind the user. The motor 191 provided in the handpiece is generally a linear motor (e.g., an X-axis motor, a Z-axis motor, etc.) or a rotor motor. To realize vibration, the rotor motor generally outputs a power signal to drive the rotor motor to vibrate through a power management module. To achieve vibration, the linear motor needs a motor driving module (also called motor boost) 172 to drive the linear motor. Illustratively, the preset motor vibration waveform is changed based on the music of the application layer to generate a motor vibration waveform similar to the music rhythm and output the motor vibration waveform as a motor sound source to the motor driving module 172, and the motor driving module 172 raises the motor sound source (for example, to 10V) and outputs the motor vibration waveform to the linear motor, so that the vibration rhythm of the motor is similar to the music rhythm. Of course, the vibration form of the motor is not limited to this, and for example, the vibration may also be a vibration with a fixed frequency, and the specific principle may be referred to in the prior art, and will not be described herein.
However, only one type of motor is typically provided in a mobile phone. Regardless of whether the type of motor in the handpiece is a linear motor or a rotary motor, the handpiece incorporates a motor drive module 172 for manufacturer selection. However, if a rotor motor is used in the product, rather than a linear motor, the motor drive module 172 is wasted.
As can be seen from the above, the main function of the smart power amplifier module 30 is to raise the sound source to pressure (for example, to 10V), and the function of the motor driving module 172 is also to raise the sound source to pressure, that is, the functions of the two are basically the same.
Based on this, this application embodiment provides a drive circuit, including motor drive module etc. through motor drive module drive speaker work, need not to set up intelligent power amplifier module alone to can save an intelligent power amplifier module, so, can reduce terminal equipment's cost, and, reduce the proportion of terminal equipment inner space, promote the utilization ratio of terminal equipment inner space. The driving circuit is applied to a terminal device, wherein the terminal device provided by the embodiment of the application can be a mobile phone, a computer, a tablet computer, a personal digital assistant (PDA for short), a vehicle-mounted computer, a television, an intelligent wearable device, an intelligent home device and the like.
Taking a mobile phone as an example, referring to fig. 2, fig. 2 shows a schematic structural diagram of a terminal device. It should be understood that the terminal device 100 shown in fig. 2 is only one example of a terminal device, and the terminal device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
As shown in fig. 2, the terminal device includes: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. Wherein the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be a neural center and a command center of the terminal device 100, among others. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
In some embodiments, processor 110 may include one or more interfaces through which electrical connections and control with other modules of terminal device 100 are made. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose-input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, a bus or Universal Serial Bus (USB) interface, and the like. In the embodiment of the present application, the processor 110 and the audio module 170 may be connected by an audio interface, which may be, for example, a Soundwire interface or the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a USB Type C interface or the like. The USB interface 130 may be used to electrically connect a power adapter to charge the terminal device 100, and may also be used to transmit data between devices. Specifically, the processor 110 is electrically connected to the USB interface 130, and the processor 110 determines the type of the device connected to the USB interface 130 based on the signal of the USB interface 130. And can also be used to electrically connect a headset (e.g., a digital headset) through which audio is played. The interface may also be used to electrically connect other terminal devices, such as AR devices and the like.
The charging management module 140 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger (power adapter, etc.). The charging management module 140 may also supply power to the terminal device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in terminal device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied on the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like.
The wireless communication module 160 may provide a solution for wireless communication applied to the terminal device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like.
In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
The terminal device 100 implements a display function by the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. In some embodiments, the terminal device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, a phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The terminal device 100 may implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
In the embodiment of the present application, the audio module 170 includes a codec 171 and a motor driving module 172. The codec 171 serves to convert digital audio information into an analog audio signal output and also serves to convert an analog audio input into a digital audio signal. The codec 171 may also be used to encode and decode an audio signal to output a sound source. The codec 171 may be disposed in the processor 110, or may be disposed independently, or some functional modules of the codec 171 may be disposed in the processor 110. A plurality of Analog-to-Digital converters (ADCs) are integrated in the codec 171, and accordingly, the codec 171 further includes a plurality of pins, and the plurality of pins are electrically connected to the ADCs in a one-to-one correspondence. The motor driving module 172 is configured to lift and press the sound source output by the codec 171 (for example, to a lift of 10V), so as to become a signal with driving capability, and output the signal to the speaker 170A, so as to drive the speaker 170A to operate, which will be described in detail below and will not be described herein again. The motor driving module 172 may be independently configured, that is, the motor driving module 172 is an independent chip, and in some other embodiments, the motor driving module 172 may also be configured in the power management module 141; alternatively, the motor driving module 172 may be disposed in the charging management module 140, wherein in the embodiments of the present application, the motor driving module 172 is disposed independently for example.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The terminal device 100 can listen to music through the speaker 170A, or listen to a handsfree call. In some embodiments, speaker 170A includes a voice coil, a diaphragm, a permanent magnet, and the like. When audio alternating current is introduced into a voice coil of the loudspeaker, the voice coil generates an alternating magnetic field under the action of the audio alternating current, namely the size and the direction of the magnetic field generated by the voice coil are interacted with the audio alternating current to enable the voice coil to move in a direction perpendicular to the current direction in the voice coil. Because the voice coil is connected with the vibrating diaphragm, the vibrating diaphragm is driven to vibrate, and air is vibrated by the vibration of the vibrating diaphragm to make sound. The larger the current input to the voice coil, the larger the force of the magnetic field generated by the voice coil, and the larger the amplitude of the diaphragm vibration, the louder the sound.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the terminal device 100 answers a call or voice information, it is possible to answer a voice by bringing the receiver 170B close to the human ear.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The terminal device 100 may be provided with at least one microphone 170C. In other embodiments, the terminal device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
In the embodiment of the present application, the microphone 170C is electrically connected to the ADC in the codec 171 through the pin of the codec 171 to implement its corresponding function.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be the USB interface 130, or may be an Open Mobile Terminal Platform (OMTP) standard interface of 3.5mm, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization. In the embodiment of the present application, the motor 191 may be, for example, a rotor motor. The power management module 141 outputs a power signal to drive the rotor motor to vibrate. Of course, the motor 191 may be a linear motor (e.g., an X-axis motor or a Z-axis motor), and when the motor 191 is a linear motor, the motor driving module 172 is driven by the motor driving module 172, and the driving capability of the motor driving module 172 is generally stronger.
The following describes a driving circuit provided in an embodiment of the present application.
Referring to fig. 3, fig. 3 shows a schematic structural diagram of a driving circuit provided in an embodiment of the present application. As shown in fig. 3, the driving circuit 10 includes a speaker 170A, a codec 171, and a motor driving module 172. The motor driving module 172 is electrically connected to the speaker 170A and the codec 171, wherein the motor driving module 172 can be electrically connected to the positive terminal and the negative terminal of the speaker 170A through a Soundwire bus or a spmi (system Power Management interface) bus, for example. The codec 171 is configured to output the sound source to the motor driving module 172. The motor driving module 172 is configured to amplify the sound source and output a first differential signal and a second differential signal to the positive terminal and the negative terminal of the speaker 170A, so as to drive the speaker 170A to operate.
Illustratively, the codec 171 processes (e.g., encodes) the audio signal to obtain a sound source, and then outputs the sound source to the motor driving module 172. The motor driving module 172 raises and presses the sound source (for example, raises to 10V), so as to become a signal with driving capability, and outputs the signal to the speaker 170A, so as to drive the speaker 170A to operate. The drive circuit that this application embodiment provided can drive speaker 170A work through motor drive module 172, need not to set up intelligent power amplifier module alone to can save an intelligent power amplifier module, so, can reduce terminal equipment's cost, and, reduce the proportion of terminal equipment inner space, promote the utilization ratio of terminal equipment inner space.
It is considered that a large current in the voice coil of the speaker 170A may cause the temperature of the voice coil to rise, and the rise in the temperature of the voice coil may cause the speaker 170A to fail to operate normally or even to be damaged. In the related art, the current of the voice coil and the voltage at two ends of the voice coil are determined through the intelligent power amplifier module 30, the impedance of the voice coil is determined based on the voltage and the current, and then the temperature of the voice coil is determined based on the impedance, so that the temperature protection of the voice coil is realized, wherein the specific protection principle can refer to the existing technology, and the embodiment of the application is not described in detail. However, the motor driving module 172 does not generally have a function of collecting a voltage across the voice coil of the speaker 170A, i.e., the motor driving module 172 cannot monitor the impedance of the voice coil in real time, and thus cannot monitor the temperature of the speaker 170A.
For real-time monitoring of the voice coil of the speaker 170A. Referring to fig. 4, fig. 4 shows a schematic diagram of another structure of a driving circuit provided in an embodiment of the present application. As shown in fig. 4, the codec 171 has a first ADC 171A and a second ADC 171B integrated therein. The first ADC 171A is electrically connected to the positive terminal of the speaker 170A, the second ADC 171B is electrically connected to the negative terminal of the speaker 170A, the first ADC 171A is used for collecting the voltage at the positive terminal of the speaker 170A, and the second ADC 171B is used for collecting the voltage at the negative terminal of the speaker 170A, i.e. the voltage at both ends of the voice coil in the speaker 170A. The driving circuit 10 further includes a processing module 40, the codec 171 may be electrically connected to the processing module 40 through a Soundwire interface, for example, and sends the voltage of the positive terminal of the speaker 170A and the voltage of the negative terminal of the speaker 170A to the processing module 40 through the Soundwire interface, the processing module 40 is configured to determine a current temperature of the voice coil according to the voltage of the positive terminal of the speaker 170A and the voltage of the negative terminal of the speaker 170A, and compare the determined current temperature with a pre-stored corresponding relationship between the temperature and the power of the sound source to determine the power of the sound source at the current temperature, and further control the codec 171 to output the power of the sound source at the current temperature, that is, the power does not cause the temperature of the voice coil to be too high, so as to implement temperature protection for the voice coil of the speaker 170A, and avoid the speaker 170A being damaged due to the too high temperature.
The reason for this is that, as can be seen from the foregoing, the ADC is integrated inside the codec 171, and a part of the ADC is electrically connected to the microphone to implement the corresponding function of the microphone, and specific functions can be referred to in the prior art, which is not described in detail in this embodiment of the present application. However, there will be some redundant ADCs. In this embodiment, the voltages of the positive terminal and the negative terminal of the speaker 170A are collected by using the redundant first ADC 171A and the redundant second ADC 171B, and a structure for collecting the voltages is not required to be separately provided, so that the cost is not increased while the temperature of the voice coil of the speaker 170A is monitored.
Illustratively, the processing module 40 may be, for example, the DSP described above. The DSP may be integrated in the processor 110 or may be separately configured, which is not limited in this embodiment of the application, and since the DSP is configured in the terminal device, the corresponding operation may be implemented without separately configuring the processing module 40.
Illustratively, the current temperature of the voice coil is determined from the voltage at the positive terminal of the speaker 170A and the voltage at the negative terminal of the speaker 170A by: the motor driving module 172 has a current sampling structure integrated therein, and the current sampling structure can collect the current output by the motor driving module 172, i.e. the current flowing through the voice coil of the speaker 170A, in real time and send the current to the processing module 40. The processing module 40 then determines the impedance of the voice coil (also referred to as a first impedance) based on the current and the voltage at the positive terminal of the speaker 170A and the voltage at the negative terminal of the speaker 170A. The temperature of the voice coil (also referred to as a first temperature) is then determined based on the impedance of the voice coil and the temperature rise coefficient of the voice coil, wherein the voice coil of the speaker 170A is typically supported by a metal conductor, such as copper or aluminum, and the resistance of the voice coil made of the metal conductor has a characteristic that changes with the temperature. As long as the resistance change of the temperature sensing thermal resistor is measured, the temperature can be measured, the specific principle can be referred to the prior art, and the embodiment of the application is not repeated.
When the first ADC 171A and the second ADC 171B of the codec 171 collect the voltages of the positive terminal and the negative terminal of the speaker 170A, the codec 171 is prevented from being damaged in order to avoid the voltage of the speaker 170A being large. Referring to fig. 5, fig. 5 shows a schematic diagram of another structure of a driving circuit provided in an embodiment of the present application. As shown in fig. 5, the filter buck module 50 is disposed between the first ADC 171A of the codec 171 and the positive terminal of the speaker 170A and between the second ADC 171B and the negative terminal of the speaker 170A, the filter buck module 50 between the first ADC 171A and the positive terminal of the speaker 170A is the first filter buck module 50A, and the filter buck module 50 between the second ADC 171B and the negative terminal of the speaker 170A is the second filter buck module 50B. The first filtering and voltage-reducing module 50A is used for filtering and reducing the voltage of the positive terminal of the speaker 170A and outputting the voltage to the first ADC 171A, and the second filtering and voltage-reducing module 50B is used for filtering and reducing the voltage of the negative terminal of the speaker 170A and outputting the voltage to the second ADC 171B, so that damage to the codec 171 due to large voltage can be avoided.
It can be understood that, since the voltage of the positive terminal and the negative terminal of the speaker 170A is reduced by the filtering voltage reduction module 50, the reduced voltage needs to be compensated by the processing module 40 before calculating the impedance, i.e., the reduced voltage is restored to be converted into the real voltages of the positive terminal and the negative terminal of the speaker 170A.
For the specific structure of the filtering and voltage reducing module 50, the specific structure of the filtering and voltage reducing module 50 is not limited in the embodiment of the present application, as long as the codec 171 is not damaged when the voltages of the positive terminal and the negative terminal of the speaker 170A are collected.
In a possible implementation manner, referring to fig. 6, fig. 6 shows a schematic structural diagram of a driving circuit provided in an embodiment of the present application. As shown in fig. 6, the filter voltage-reducing module 50 includes a dc blocking capacitor C1, a first resistor R1, and a second resistor R2. A first pole of the dc blocking capacitor C1 of the first filtering and voltage dropping module 50A is electrically connected to the positive terminal of the speaker 170A, a second pole of the dc blocking capacitor C1 is electrically connected to a first terminal of the first resistor R1, a second terminal of the first resistor R1 and a first terminal of the second resistor R2 are both electrically connected to the first ADC 171A of the codec 171, and a second terminal of the second resistor R2 is grounded. A first pole of a dc blocking capacitor C1 of the second filtering and voltage reducing module 50B is electrically connected to the negative terminal of the speaker 170A, a second pole of a dc blocking capacitor C1 is electrically connected to a first end of a first resistor R1, a second end of the first resistor R1 and a first end of a second resistor R2 are both electrically connected to the second ADC 171B of the codec 171, and a second end of the second resistor R2 is grounded. The dc blocking capacitor C1 is used to isolate dc, and the first resistor R1 and the second resistor R2 are used to divide the ac signal after dc isolation, so that the voltage output to the first ADC 171A and the second ADC 171B of the codec 171 is small, and damage to the codec 171 caused by large voltage is avoided.
Of course, the manner of determining the current temperature of the voice coil from the voltages of the positive and negative terminals of the speaker 170A is not limited to the above.
Optionally, referring to fig. 7, fig. 7 shows a schematic structural diagram of a driving circuit provided in an embodiment of the present application. As shown in fig. 7, a sampling resistor R3 is also provided between the motor drive module 172 and the negative terminal of the speaker 170A. The codec 171 has a third ADC171C integrated therein. A filter voltage reduction module 50 is also disposed between the third ADC171C and the first end of the sampling resistor R3, and for the sake of distinction, the filter voltage reduction module 50 is a third filter voltage reduction module 50C. The second end of the sampling resistor R3 is electrically connected to the negative terminals of the second ADC 171B and the speaker 170A, respectively, and the third ADC171C is configured to collect the voltage at the first end of the sampling resistor R3, which is filtered and reduced by the third filtering and voltage reducing module 50C, and send the collected voltage to the processing module 40.
It can be understood that, since the filtering and voltage-reducing module 50 reduces the voltage at the first end of the sampling resistor R3, after the processing module 40 receives the voltage sent by the third ADC171C, the reduced voltage needs to be restored.
Then, the processing module 40 determines a difference between voltages at two ends of the sampling resistor R3 according to the voltage at the first end of the sampling resistor R3 collected by the third ADC171C and the voltage at the second end of the sampling resistor R3 collected by the second ADC 171B, and determines a current passing through the sampling resistor R3 according to the difference between the voltages at two ends of the sampling resistor R3 and the resistance of the sampling resistor R3. Since the sampling resistor R3 is in series with the voice coil, the current at the voice coil is equal to the current of the sampling resistor R3. The voltage difference across the voice coil (i.e., the voltage difference between the positive and negative terminals of the speaker 170A) divided by the current in the voice coil determines the impedance of the voice coil (also referred to as the second impedance). Then, the temperature (also called as the second temperature) of the voice coil can be determined according to the impedance of the voice coil and the temperature rise coefficient of the voice coil.
That is, the impedance of the voice coil may be determined in one of the two ways described above, and the temperature of the voice coil may be determined based on the impedance. Of course, in order to improve the detection accuracy of the voice coil temperature, it is also possible to perform two ways simultaneously, and then determine the temperature of the voice coil based on the average value of the two ways.
The third ADC171C is also a redundant ADC integrated inside the codec 171.
It should be noted that the manner of determining the temperature of the voice coil includes, but is not limited to, the above examples, and those skilled in the art may set the method according to actual situations as long as the temperature of the voice coil can be determined. For example, a structure for collecting the voltage across the voice coil may be provided in the motor driving module 172, and then the voltage across the voice coil may be collected by the motor driving module 172.
The embodiments of the present application also provide a method for protecting a speaker, which can be applied to the driving circuit in the embodiments, for example, and has the same beneficial effects, and in the embodiments, details that are not described in detail can be referred to the embodiments of the driving circuit and the terminal device. The following describes a method of protecting a speaker with reference to the driving circuit shown in fig. 7.
As shown in fig. 8, the protection method of the speaker can be implemented by the following steps:
s801, obtaining the voltage of the positive terminal and the negative terminal of the speaker 170A after being filtered and reduced, and obtaining the current output to the speaker 170A by the motor driving module 172.
The first ADC 171A and the second ADC 171B of the codec 171 capture the voltage of the positive terminal and the negative terminal (i.e. across the voice coil) of the speaker 170A, which is processed by the filtering voltage-reducing module 50, and send the voltage to the processing module 40.
The motor driving module 172 is integrated with a current sampling structure, which can collect the current output by the motor driving module 172, i.e. the current flowing through the voice coil of the speaker 170A, in real time and send the current to the processing module 40.
And S802, determining the real voltages of the positive terminal and the negative terminal of the loudspeaker 170A according to the voltages of the positive terminal and the negative terminal of the loudspeaker 170A after filtering and voltage reduction.
Since the first filtering and voltage-reducing module 50A and the second filtering and voltage-reducing module 50B perform voltage-reducing processing on the voltage across the voice coil, when the processing module 40 needs to compensate the reduced voltage before calculating the impedance, that is, the voltage after voltage-reducing is restored to be converted into the real voltage across the voice coil.
S803, determining a first impedance of the voice coil according to the real voltages of the positive and negative terminals of the speaker 170A and the current output to the speaker 170A by the motor driving module 172.
Wherein the processing module 40 determines the impedance of the voice coil (also referred to as the first impedance) based on the current output by the motor drive module 172 to the speaker 170A and the true voltage across the voice coil.
S804, determining a first current temperature of the voice coil according to the first impedance of the voice coil.
Wherein, the current temperature of the voice coil (called as the first current temperature) is determined according to the first impedance of the voice coil and the temperature rise coefficient of the voice coil.
S805, comparing the first current temperature with the pre-stored correspondence between the temperature and the power of the sound source, and determining the power of the sound source at the first current temperature.
The processing module 40 pre-stores the corresponding relationship between the temperature of the voice coil and the power of the sound source, i.e. the relationship between the temperature of the voice coil and the power of the sound source, and if the corresponding power of the sound source is output according to the relationship, the temperature of the voice coil will not be too high.
S806, controlling the codec 171 to output the power of the sound source at the first current temperature.
So as to realize the temperature protection of the voice coil of the speaker 170A and avoid the speaker 170A from being damaged due to the overhigh temperature of the voice coil.
Alternatively, the first and second electrodes may be,
as shown in fig. 9, the protection method of the speaker can be implemented by the following steps:
s901, obtaining the voltages of the positive terminal and the negative terminal of the speaker 170A after being filtered and stepped down, and obtaining the voltage of the first terminal of the sampling resistor after being filtered and stepped down.
The first ADC 171A and the second ADC 171B of the codec 171 acquire voltages of the positive terminal and the negative terminal (i.e., across the voice coil) of the speaker 170A, which are processed by the filtering voltage-reducing module 50, and send the voltages to the processing module 40.
The third ADC171C integrated inside the codec 171 collects the voltage at the first end of the sampling resistor R3 and filtered and reduced by the third filtering and voltage reducing module 50C, and sends the collected voltage to the processing module 40.
S902, determining the real voltages of the positive terminal and the negative terminal of the loudspeaker 170A according to the voltages of the positive terminal and the negative terminal of the loudspeaker 170A after filtering and voltage reduction, and determining the real voltage of the first terminal of the sampling resistor R3 according to the voltage of the first terminal of the sampling resistor R3 after filtering and voltage reduction.
Since the first filtering and voltage-reducing module 50A and the second filtering and voltage-reducing module 50B perform voltage-reducing processing on the voltage across the voice coil, when the processing module 40 needs to compensate the reduced voltage before calculating the impedance, that is, the voltage after voltage-reducing is restored to be converted into the real voltage across the voice coil.
Since the third filtering and voltage-reducing module 50C reduces the voltage at the first end of the sampling resistor R3, the reduced voltage needs to be compensated after the processing module 40 receives the voltage sent by the third ADC171C, that is, the reduced voltage needs to be restored to be converted into the real voltage at the first end of the sampling resistor R3.
And S903, determining the current flowing through the sampling resistor R3 according to the real voltage of the first end of the sampling resistor R3, the real voltage of the negative end of the loudspeaker 170A and the resistance value of the sampling resistor R3.
The real voltage of the negative terminal of the speaker 170A is the real voltage of the second terminal of the sampling resistor R3, and the difference between the real voltage of the first terminal of the sampling resistor R3 and the real voltage of the second terminal of the sampling resistor R3 divided by the resistance of the sampling resistor R3 is the current flowing through the sampling resistor R3.
S904, a second impedance of the voice coil is determined from the actual voltage across the positive and negative terminals of the speaker 170A and the current flowing through the sampling resistor R3.
The real voltage across the positive and negative terminals of the speaker 170A is the voltage across the voice coil, and since the sampling resistor R3 is connected in series with the voice coil, the current flowing through the sampling resistor R3 is the current at the voice coil. The actual voltage across the positive and negative terminals of the speaker 170A divided by the current through the sampling resistor R3 is the impedance of the voice coil (referred to as the second impedance).
S905, determining a second current temperature of the voice coil according to the second impedance of the voice coil.
Then, according to the second impedance of the voice coil and the temperature rise coefficient of the voice coil, the current temperature (called as the second temperature) of the voice coil can be determined.
S906, comparing the second current temperature with the corresponding relation between the pre-stored temperature and the power of the sound source, and determining the power of the sound source at the second current temperature.
S907, controlling the codec 171 to output the power of the sound source at the second current temperature.
So as to realize the temperature protection of the voice coil of the speaker 170A and avoid the speaker 170A from being damaged due to the overhigh temperature of the voice coil.
The present embodiment also provides a computer storage medium, where computer instructions are stored, and when the computer instructions are run on a terminal device, the terminal device executes the above related method steps to implement the charging control method in the above embodiment.
The present embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the charging control method in the above embodiments.
In addition, an apparatus, which may be specifically a chip, a component or a module, may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the charging control method in the above method embodiments.
In this embodiment, the terminal device (e.g., a mobile phone, etc.), the computer storage medium, the computer program product, or the chip are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the terminal device (e.g., a mobile phone, etc.) can refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (16)

1. A driver circuit, comprising: the system comprises a loudspeaker, a coder and a motor driving module; the motor driving module is electrically connected with the loudspeaker and the codec respectively;
the codec is used for outputting the sound source to the motor driving module;
the motor driving module is used for amplifying the sound source and outputting the amplified sound source to the loudspeaker so as to drive the loudspeaker to operate.
2. The driving circuit of claim 1, further comprising a processing module electrically connected to the codec;
the codec comprises a first analog-to-digital converter and a second analog-to-digital converter, the first analog-to-digital converter is used for collecting the voltage of the positive end of the loudspeaker and sending the voltage to the processing module, and the second analog-to-digital converter is used for collecting the voltage of the negative end of the loudspeaker and sending the voltage to the processing module;
the processing module is used for determining the current temperature of the voice coil of the loudspeaker according to the voltage of the positive end of the loudspeaker and the voltage of the negative end of the loudspeaker, comparing the current temperature with the corresponding relation between the pre-stored temperature and the power of a sound source, and determining the power of the sound source at the current temperature so as to control the codec to output the power of the sound source at the current temperature.
3. The drive circuit of claim 2, wherein the motor drive module is electrically connected to the processing module;
the motor driving module is also used for collecting current output to the loudspeaker and sending the current to the processing module;
the processing module is used for determining the current temperature of the voice coil of the loudspeaker according to the voltage of the positive end of the loudspeaker, the voltage of the negative end of the loudspeaker and the current, comparing the current temperature with the corresponding relation between the pre-stored temperature and the power of a sound source, and determining the power of the sound source at the current temperature so as to control the codec to output the power of the sound source at the current temperature.
4. The driving circuit according to claim 2, further comprising a sampling resistor, wherein a first end of the sampling resistor is electrically connected to the motor driving module, and a second end of the sampling resistor is electrically connected to the negative terminal of the speaker;
the codec further comprises a third analog-to-digital converter, and the third analog-to-digital converter is used for collecting the voltage of the first end of the sampling resistor and sending the voltage to the processing module;
the processing module is used for determining the voltage difference between the two ends of the sampling resistor according to the voltage of the first end of the sampling resistor and the voltage of the negative end of the loudspeaker, determining the current of the loudspeaker according to the voltage difference and the resistance value of the sampling resistor, determining the current temperature of the voice coil according to the voltage of the positive end of the loudspeaker, the voltage of the negative end of the loudspeaker and the current, comparing the current temperature with the corresponding relation between the pre-stored temperature and the power of the sound source, determining the power of the sound source at the current temperature, and controlling the codec to output the power of the sound source at the current temperature.
5. The driving circuit of claim 2, further comprising a first filter buck module and a second filter buck module; the first filtering and voltage-reducing module is located between the first analog-to-digital converter and the positive end of the loudspeaker and used for filtering and reducing the voltage of the positive end of the loudspeaker and outputting the voltage to the first analog-to-digital converter, and the second filtering and voltage-reducing module is located between the second analog-to-digital converter and the negative end of the loudspeaker and used for filtering and reducing the voltage of the negative end of the loudspeaker and outputting the voltage to the second analog-to-digital converter.
6. The driving circuit according to claim 5, wherein the first filtering voltage-reducing module and the second filtering voltage-reducing module each include a dc blocking capacitor, a first resistor, and a second resistor, a first pole of the dc blocking capacitor of the first filtering voltage-reducing module is electrically connected to the positive terminal of the speaker, a second pole of the dc blocking capacitor is electrically connected to a first terminal of the first resistor, a second terminal of the first resistor and a first terminal of the second resistor are electrically connected to the first analog-to-digital converter, and a second terminal of the second resistor is grounded;
the first pole of the blocking capacitor of the second filtering and voltage-reducing module is electrically connected with the negative end of the loudspeaker, the second pole of the blocking capacitor is electrically connected with the first end of the first resistor, the second end of the first resistor and the first end of the second resistor are both electrically connected with the second analog-to-digital converter, and the second end of the second resistor is grounded.
7. The driving circuit of claim 4, further comprising a third filtering and voltage-reducing module, located between the first end of the sampling resistor and the third analog-to-digital converter, for filtering and reducing the voltage at the first end of the sampling resistor and outputting the filtered and reduced voltage to the third analog-to-digital converter.
8. The driving circuit according to claim 7, wherein the third filtering and voltage-reducing module includes a blocking capacitor, a first resistor and a second resistor, a first pole of the blocking capacitor of the third filtering and voltage-reducing module is electrically connected to the first end of the sampling resistor, a second pole of the blocking capacitor is electrically connected to the first end of the first resistor, a second end of the first resistor and a first end of the second resistor are both electrically connected to the third analog-to-digital converter, and a second end of the second resistor is connected to ground.
9. The driver circuit according to any of claims 2-8, wherein the processing module comprises a digital signal processor.
10. A terminal device, characterized in that it comprises a driver circuit according to any one of claims 1-9.
11. A method for protecting a loudspeaker, which is applied to a drive circuit according to any one of claims 1 to 9; the protection method comprises the following steps:
respectively acquiring the voltages of the positive terminal and the negative terminal of the loudspeaker;
determining the impedance of a voice coil in the loudspeaker according to the voltages of the positive terminal and the negative terminal of the loudspeaker;
determining the current temperature of the voice coil according to the impedance;
comparing the current temperature with a corresponding relation between the pre-stored temperature and the power of the sound source, and determining the power of the sound source at the current temperature;
and controlling the codec to output the power of the sound source at the current temperature.
12. The protection method of claim 11, wherein determining the impedance of a voice coil within the speaker based on the voltages of the positive and negative terminals of the speaker comprises:
acquiring current output to the loudspeaker by the motor driving module;
and determining the impedance of the voice coil of the loudspeaker according to the voltages of the positive terminal and the negative terminal of the loudspeaker and the current.
13. The protection method according to claim 11, wherein the driving circuit further comprises a sampling resistor, a first end of the sampling resistor is electrically connected with the motor driving module, and a second end of the sampling resistor is electrically connected with the negative terminal of the loudspeaker;
determining an impedance of a voice coil within the speaker from voltages at the positive and negative terminals of the speaker, comprising:
acquiring the voltage of the first end of the sampling resistor;
determining a voltage difference between two ends of the sampling resistor according to the voltage of the first end of the sampling resistor and the voltage of the negative end of the loudspeaker;
determining the current of the loudspeaker according to the voltage difference and the resistance value of the sampling resistor;
and determining the impedance of a voice coil in the loudspeaker according to the voltage of the positive end of the loudspeaker, the voltage of the negative end of the loudspeaker and the current.
14. The protection method according to claim 11, wherein the obtaining the voltages of the positive terminal and the negative terminal of the speaker respectively comprises:
acquiring the voltages of the positive terminal and the negative terminal of the loudspeaker after filtering and voltage reduction;
and determining the voltages of the positive terminal and the negative terminal of the loudspeaker according to the voltages of the positive terminal and the negative terminal of the loudspeaker after the filtering and voltage reduction.
15. The protection method of claim 13, wherein obtaining the voltage at the first end of the sampling resistor comprises:
obtaining the voltage of the first end of the sampling resistor after filtering and voltage reduction;
and determining the voltage of the first end of the sampling resistor according to the voltage of the first end of the sampling resistor after filtering and voltage reduction.
16. A computer-readable storage medium comprising a computer program, characterized in that, when the computer program is run on a terminal device, it causes the terminal device to execute the method of protection of a loudspeaker according to any one of claims 11-15.
CN202210933853.5A 2022-08-04 2022-08-04 Driving circuit, terminal equipment and protection method Active CN115022775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210933853.5A CN115022775B (en) 2022-08-04 2022-08-04 Driving circuit, terminal equipment and protection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210933853.5A CN115022775B (en) 2022-08-04 2022-08-04 Driving circuit, terminal equipment and protection method

Publications (2)

Publication Number Publication Date
CN115022775A true CN115022775A (en) 2022-09-06
CN115022775B CN115022775B (en) 2023-07-07

Family

ID=83066108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210933853.5A Active CN115022775B (en) 2022-08-04 2022-08-04 Driving circuit, terminal equipment and protection method

Country Status (1)

Country Link
CN (1) CN115022775B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668922A (en) * 2023-07-25 2023-08-29 荣耀终端有限公司 Electronic equipment
CN116709113A (en) * 2022-12-21 2023-09-05 荣耀终端有限公司 Audio circuit, control method thereof, electronic equipment and audio system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040178852A1 (en) * 2003-03-12 2004-09-16 Brian Neunaber Apparatus and method of limiting power applied to a loudspeaker
CN103108270A (en) * 2011-09-28 2013-05-15 德州仪器公司 Method and apparatus for protecting electro dynamic transducer from heat overload
CN103873985A (en) * 2012-12-13 2014-06-18 马克西姆综合产品公司 Direct measurement of input signal to loudspeaker to determine and limit temperature of voice coil of the loudspeaker
US20150215704A1 (en) * 2014-01-24 2015-07-30 Cirrus Logic International (Uk) Limited Loudspeaker protection systems and methods
CN106717022A (en) * 2014-06-06 2017-05-24 思睿逻辑国际半导体有限公司 Temperature monitoring for loudspeakers
CN106878874A (en) * 2015-12-10 2017-06-20 恩智浦有限公司 Tactile feedback controller
CN108027596A (en) * 2015-09-16 2018-05-11 深圳市大疆创新科技有限公司 For the system, apparatus and method made a sound
US20180213322A1 (en) * 2017-01-25 2018-07-26 Cirrus Logic International Semiconductor Ltd. Loudspeaker protection systems and methods
CN112565976A (en) * 2019-09-10 2021-03-26 北京小米移动软件有限公司 Speaker driving circuit, temperature protection method, terminal device, and storage medium
US20210289295A1 (en) * 2020-03-13 2021-09-16 Texas Instruments Incorporated Speaker amplifier

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040178852A1 (en) * 2003-03-12 2004-09-16 Brian Neunaber Apparatus and method of limiting power applied to a loudspeaker
CN103108270A (en) * 2011-09-28 2013-05-15 德州仪器公司 Method and apparatus for protecting electro dynamic transducer from heat overload
CN103873985A (en) * 2012-12-13 2014-06-18 马克西姆综合产品公司 Direct measurement of input signal to loudspeaker to determine and limit temperature of voice coil of the loudspeaker
US20150215704A1 (en) * 2014-01-24 2015-07-30 Cirrus Logic International (Uk) Limited Loudspeaker protection systems and methods
CN106717022A (en) * 2014-06-06 2017-05-24 思睿逻辑国际半导体有限公司 Temperature monitoring for loudspeakers
CN108027596A (en) * 2015-09-16 2018-05-11 深圳市大疆创新科技有限公司 For the system, apparatus and method made a sound
CN106878874A (en) * 2015-12-10 2017-06-20 恩智浦有限公司 Tactile feedback controller
US20180213322A1 (en) * 2017-01-25 2018-07-26 Cirrus Logic International Semiconductor Ltd. Loudspeaker protection systems and methods
CN112565976A (en) * 2019-09-10 2021-03-26 北京小米移动软件有限公司 Speaker driving circuit, temperature protection method, terminal device, and storage medium
US20210289295A1 (en) * 2020-03-13 2021-09-16 Texas Instruments Incorporated Speaker amplifier

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709113A (en) * 2022-12-21 2023-09-05 荣耀终端有限公司 Audio circuit, control method thereof, electronic equipment and audio system
CN116668922A (en) * 2023-07-25 2023-08-29 荣耀终端有限公司 Electronic equipment
CN116668922B (en) * 2023-07-25 2023-12-19 荣耀终端有限公司 Electronic equipment

Also Published As

Publication number Publication date
CN115022775B (en) 2023-07-07

Similar Documents

Publication Publication Date Title
CN115022775B (en) Driving circuit, terminal equipment and protection method
US11778363B2 (en) Audio data transmission method applied to switching between single-earbud mode and double-earbud mode of TWS headset and device
US9392381B1 (en) Hearing aid attached to mobile electronic device
CN107094201B (en) Information processing apparatus
CN112243220A (en) Method for establishing communication connection and wearable device
KR20140132660A (en) Method and apparatus for supplying electric power to active noise cancellation earphone using power supply of electronic device
CN114710768B (en) Bluetooth connection method and related device
CN113038436A (en) Bluetooth communication method and device
CN109327613B (en) Negotiation method based on voice call translation capability and electronic equipment
CN111385777A (en) TWS earphone low-power reminding method and electronic equipment
JP2022548298A (en) Method and apparatus for improving speaker sound quality
WO2022242528A1 (en) Volume adjustment method and terminal device
CN113225661A (en) Loudspeaker identification method and device and electronic equipment
CN110012405B (en) Hearing instrument with interruptible microphone power supply
CN112118517B (en) Audio chip and terminal
CN113129916B (en) Audio acquisition method, system and related device
CN116054870B (en) Wireless communication circuit, bluetooth communication switching method and electronic equipment
CN113411417A (en) Wireless sound amplification system and terminal
CN109285563B (en) Voice data processing method and device in online translation process
CN108649671B (en) Wireless charging circuit and wearable equipment
EP4050754B1 (en) Power supply system, and electronic device
CN110618763B (en) Touch control method and electronic equipment
CN107544769B (en) Method for collecting voice command based on vibration motor, audio component and audio terminal
CN117059062B (en) Noise reduction method, storage medium and electronic equipment
CN114865804B (en) Electronic equipment and power supply method of intelligent power amplifier

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant