Disclosure of Invention
The invention provides a driving circuit with temperature detection based on a buzzer, which aims to overcome the defect that a chip is damaged or the buzzer or even the whole system is damaged when the temperature of the chip is overhigh in the traditional driving circuit of the buzzer.
In order to solve the above technical problems, the present invention provides a buzzer-based driving circuit with temperature detection, comprising a current limiting device, a diode D1, an amplifier, a frequency generating circuit, a gate control circuit, and a driving NMOS, wherein V1 is a reference voltage signal line, one end of the current limiting device is connected to a ground line, the other end of the current limiting device is connected to a signal line V2, the anode of the diode D1 is connected to a power line, the cathode of the diode D1 is connected to V2, the negative input end of the amplifier is connected to a signal line V2, the positive input end of the amplifier is connected to a signal line V1, the output end of the amplifier is connected to a signal line Y, the frequency generating circuit outputs a signal line F, one input end of the gate control circuit is connected to a signal line F, the other input end of the gate control circuit is connected to a signal line Y, the gate of the gate control, the source electrode of the drive NMOS tube is connected with the grounding wire, and the substrate of the drive NMOS tube is connected with the grounding wire.
With reference to fig. 1, the circuit parameters are properly designed, if the chip temperature is in the normal range, so that the voltage of the signal line V1 is greater than the voltage of the signal line V2, the output Y of the amplifier is at a high level, which indicates that the chip temperature is normal, and if the chip temperature is too high, since the diode forward voltage drop is a negative temperature coefficient, so that the voltage of the signal line V2 is greater than the voltage of the signal line V1, the output Y of the amplifier is at a low level, which indicates that the chip temperature is too high; it can be seen that, in the connection of the signal line V1 and the signal line V2 shown in fig. 1, the output Y of the amplifier is at a low level, which indicates that the chip temperature is too high. If the signal line V1 and the signal line V2 are connected to the positive input end and the negative input end of the amplifier in a reversed position, namely the signal line V1 is connected with the negative input end of the amplifier, the signal line V2 is connected with the positive input end of the amplifier, and the connection relations between the signal line V1 and the signal line V2 and other devices and modules are unchanged, the output Y of the amplifier is high level, which indicates that the temperature of the chip is too high. When the output of the amplifier indicates that the temperature of the chip is normal, the grid control circuit enables the output signal F of the frequency generation circuit to normally pass through, and drives the NMOS tube to normally drive the buzzer; when the output of the amplifier shows that the temperature of the chip is too high, the grid control circuit outputs a signal line G to cut off the drive NMOS tube, so that the power consumption of the circuit is reduced, and the chip and the system are prevented from being damaged. The circuit is simple to realize and has the advantages of high reliability and low cost.
Preferably, the substrate of the drive NMOS tube is connected with a ground wire or connected with the source electrode of the drive NMOS tube.
Preferably, the current limiting device may be a resistor, or may also be an active device such as a current source or a MOS transistor, or a combination thereof.
Preferably, the diode D1 may be replaced by a device with temperature coefficient, such as a series-parallel combination of more than one diode, or a diode-connected MOS transistor, or a series-parallel combination of more than one diode-connected MOS transistor, or a diode-connected triode, or a series-parallel combination of more than one diode-connected triode.
Preferably, the driving NMOS transistor may be replaced by an NPN transistor, that is, the NPN transistor is used as the driving transistor of the buzzer.
The invention has the following beneficial effects: according to the driving circuit with the temperature detection function based on the buzzer, the NMOS tube is turned off when the temperature of the chip is too high, so that the power consumption of the chip is reduced, the chip is prevented from being damaged, or the buzzer or even the whole system is prevented from being damaged.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, the present invention provides a driving circuit based on temperature detection of a buzzer, including a current limiting device, a diode D1, an amplifier, a frequency generating circuit, a gate control circuit, and a driving NMOS, wherein V1 is a reference voltage signal line, one end of the current limiting device is connected to a ground, the other end of the current limiting device is connected to a signal line V2, the anode of the diode D1 is connected to a power line, the cathode of the diode D1 is connected to V2, the negative input end of the amplifier is connected to a signal line V2, the positive input end of the amplifier is connected to a signal line V1, the output end of the amplifier is connected to a signal line Y, the frequency generating circuit outputs a signal line F, one input end of the gate control circuit is connected to a signal line F, the other input end of the gate control circuit is connected to a signal line Y, the gate of the gate control circuit is connected to a signal line G, the substrate of the drive NMOS tube is connected with a grounding wire.
With reference to fig. 1, the circuit parameters are properly designed, if the chip temperature is in the normal range, so that the voltage of the signal line V1 is greater than the voltage of the signal line V2, the output Y of the amplifier is at a high level, which indicates that the chip temperature is normal, and if the chip temperature is too high, since the diode forward voltage drop is a negative temperature coefficient, so that the voltage of the signal line V2 is greater than the voltage of the signal line V1, the output Y of the amplifier is at a low level, which indicates that the chip temperature is too high; it can be seen that, in the connection of the signal line V1 and the signal line V2 shown in fig. 1, the output Y of the amplifier is at a low level, which indicates that the chip temperature is too high. If the signal line V1 and the signal line V2 are connected to the positive input end and the negative input end of the amplifier in a reversed position, namely the signal line V1 is connected with the negative input end of the amplifier, the signal line V2 is connected with the positive input end of the amplifier, and the connection relations between the signal line V1 and the signal line V2 and other devices and modules are unchanged, the output Y of the amplifier is high level, which indicates that the temperature of the chip is too high. When the output of the amplifier indicates that the temperature of the chip is normal, the grid control circuit enables the output signal F of the frequency generation circuit to normally pass through, and drives the NMOS tube to normally drive the buzzer; when the output of the amplifier shows that the temperature of the chip is too high, the grid control circuit outputs a signal line G to cut off the drive NMOS tube, so that the power consumption of the circuit is reduced, and the chip and the system are prevented from being damaged.
A first embodiment of the present invention, as shown in fig. 2, in conjunction with fig. 1, the current limiting device in fig. 1 is a resistor R1 in fig. 2, and the operation principle is the same as that in fig. 1.
A second embodiment of the present invention is shown in fig. 3, and with reference to fig. 1, the current limiting device in fig. 1 is a resistor R1 in fig. 3, and the diode D1 in fig. 1 is replaced by a PNP transistor Q1 in fig. 3, and the operation principle is the same as that in fig. 1.
The third embodiment of the present invention, as shown in fig. 4, comprises a current limiting device, an NMOS transistor N1, an amplifier, a frequency generating circuit, a gate control circuit, a driving NMOS transistor, the power supply circuit comprises a voltage reference signal line V1, a current limiting device, a signal line V2, an NMOS tube N1 drain electrode, a grid electrode, an NMOS tube N1 source electrode, a substrate, a signal line V2, an amplifier negative input end, a signal line V2, an amplifier positive input end, a signal line V1, an amplifier output end, a signal line Y, a frequency generation circuit output signal line F, a grid control circuit output signal line Y, a grid control circuit output signal line G, a drive NMOS tube grid electrode, a drive NMOS tube drain electrode, an output OUT, a drive NMOS tube source electrode, and a drive NMOS tube substrate.
With reference to fig. 4, the circuit parameters are properly designed, if the chip temperature is in the normal range, so that the voltage of the signal line V2 is lower than the voltage of the signal line V1, the output Y of the amplifier is at a high level, which indicates that the chip temperature is normal, and if the chip temperature is too high, since the threshold voltage of the NMOS transistor is a negative temperature coefficient, so that the voltage of the signal line V2 is higher than the voltage of the signal line V1, the output Y of the amplifier is at a low level, which indicates that the chip temperature is too high; it can be seen that, in the connection of the signal line V1 and the signal line V2 shown in fig. 4, the output Y of the amplifier is at a low level, which indicates that the chip temperature is too high. If the signal line V1 and the signal line V2 are connected to the positive input end and the negative input end of the amplifier in a reversed position, namely the signal line V1 is connected with the negative input end of the amplifier, the signal line V2 is connected with the positive input end of the amplifier, and the connection relations between the signal line V1 and the signal line V2 and other devices and modules are unchanged, the output Y of the amplifier is high level, which indicates that the temperature of the chip is too high. When the output of the amplifier indicates that the temperature of the chip is normal, the grid control circuit enables the output signal F of the frequency generation circuit to normally pass through, and drives the NMOS tube to normally drive the buzzer; when the output of the amplifier shows that the temperature of the chip is too high, the grid control circuit outputs a signal line G to cut off the drive NMOS tube, so that the power consumption of the circuit is reduced, and the chip and the system are prevented from being damaged.
As shown in fig. 4 in conjunction with fig. 1, diode D1 in fig. 1 is replaced by NMOS transistor N1 in fig. 4, and the operation principle is similar to that of fig. 1.
In a fourth embodiment of the present invention, as shown in fig. 5, a resistor R1, a PMOS transistor P1, an amplifier, a frequency generation circuit, a gate control circuit, and a driving NMOS transistor, wherein V1 is a reference voltage signal line, one end of the resistor R1 is connected to a ground line, the other end of the resistor R1 is connected to a signal line V2, a source of a PMOS transistor P1 and a substrate are connected to a power line, a drain of the PMOS transistor P1 and a gate of the PMOS transistor are connected to the signal line V2, a negative input end of the amplifier is connected to the signal line V2, a positive input end of the amplifier is connected to the signal line V1, an output end of the amplifier is connected to the signal line Y, an output signal line F of the frequency generation circuit is connected to one input end of the gate control circuit, another input end of the gate control circuit is connected to the signal line Y, an output signal line G of the gate control.
With reference to fig. 5, the circuit parameters are properly designed, if the chip temperature is within the normal range, so that the voltage of the signal line V2 is lower than the voltage of the signal line V1, the output Y of the amplifier is at a high level, which indicates that the chip temperature is normal, and if the chip temperature is too high, since the absolute value of the threshold voltage of the PMOS transistor is a negative temperature coefficient, the voltage of the signal line V2 is higher than the voltage of the signal line V1, and the output Y of the amplifier is at a low level, which indicates that the chip temperature is too high; it can be seen that, in the connection of the signal line V1 and the signal line V2 shown in fig. 5, the output Y of the amplifier is at a low level, which indicates that the chip temperature is too high. If the signal line V1 and the signal line V2 are connected to the positive input end and the negative input end of the amplifier in a reversed position, namely the signal line V1 is connected with the negative input end of the amplifier, the signal line V2 is connected with the positive input end of the amplifier, and the connection relations between the signal line V1 and the signal line V2 and other devices and modules are unchanged, the output Y of the amplifier is high level, which indicates that the temperature of the chip is too high. When the output of the amplifier indicates that the temperature of the chip is normal, the grid control circuit enables the output signal F of the frequency generation circuit to normally pass through, and drives the NMOS tube to normally drive the buzzer; when the output of the amplifier shows that the temperature of the chip is too high, the grid control circuit outputs a signal line G to cut off the drive NMOS tube, so that the power consumption of the circuit is reduced, and the chip and the system are prevented from being damaged.
As shown in fig. 5 in conjunction with fig. 1, the current limiting device in fig. 1 is resistor R1 in fig. 5, and diode D1 in fig. 1 is replaced by PMOS transistor P1 in fig. 5.
In summary, the driving circuit with temperature detection based on the buzzer, provided by the invention, can turn off the driving tube to reduce power consumption when the temperature of the chip is too high, so as to prevent the chip and the system from being damaged.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.