Load detection circuit, chip and electronic equipment
Through the design of the load detection circuit, the logical combination of modulated signals and enable signals is solved, and the load detection effect with high reliability and low power consumption in the prior art is achieved.
Patent Information
- Application Number
- CN202310656571.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-05
- Publication Date
- 2024-12-06
AI Technical Summary
The prior art is used for load detection with poor practicality, high power consumption and cost, and the load power jump in the case of switching power supply leads to poor detection reliability.
A load detection circuit is designed to realize anti-interference and anti-interference and using a power output module, a load detection source module, a comparator, a flip-flop and a clock module through the logical combination of a modulation signal, a first enable signal and a second enable signal. Low-power load detection eliminates modulation signal interference and filters the jump of the comparator output results through the trigger.
It improves the reliability of load detection, reduces circuit power consumption, enhances anti-interference ability, and achieves low-cost and strong practical load detection effect.
Smart Images

Figure CN119087302A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a load detection circuit, a chip and an electronic device. Background Art
[0002] In physics, a load refers to an electronic component connected to both ends of a power supply in a circuit. It is a device that uses electrical energy to work, also known as an "electrical appliance". The function of a load is to convert electrical energy into other forms of energy, for example, a motor converts electrical energy into mechanical energy, a heating wire converts electrical energy into thermal energy, etc. The existing technology uses mechanical structures or complex circuits to detect whether a load is connected, which has poor practicality, high power consumption and high cost. Moreover, when using a switching power supply, the power of the load will constantly fluctuate, causing the load detection results to jump repeatedly, and the reliability is poor. Summary of the invention
[0003] The present application provides a load detection circuit, chip and electronic device, and the specific technical solutions are as follows: A load detection circuit, the load detection circuit comprising: a power output module, which supplies power to a load end based on a modulation signal; a load detection source module, which generates a corresponding voltage to be compared according to the access status of the load end; a comparator, which compares the magnitude of a reference voltage with the voltage to be compared, and then outputs a load detection flag signal; a switch, which connects the load detection source module and the load end, and is turned on or off based on a first enable signal. When the switch is turned on, the load detection source module generates a corresponding voltage to be compared according to the access status of the load end and transmits it to the comparator, so that the comparator outputs a load detection flag signal; a trigger, which is connected to the comparator and samples the load detection flag signal output by the comparator based on a second enable signal; and a clock module, which is connected to the comparator and samples the load detection flag signal output by the comparator based on a second enable signal. The trigger, the switch and the comparator are connected to generate a periodic first enable signal, and then control the switch and the comparator to be periodically opened or closed, and to generate a periodic second enable signal, and then control the trigger to periodically sample the load detection flag signal output by the comparator; a logic processing module is connected to the trigger, and is used to determine whether the load end is connected to the load according to the load detection flag signal sampled by the trigger; wherein the pulse width of the second enable signal is narrower than that of the first enable signal, and the falling edge of the second enable signal is synchronized with the falling edge of the first enable signal; wherein, the second enable signal controls the trigger to sample the load detection flag signal output by the comparator when and only when the modulation signal controls the power output module to be closed.
[0004] Furthermore, the power output module includes a power supply voltage source, a first MOS tube and a driving circuit, wherein the source of the first MOS tube is connected to the power supply voltage source, the drain is connected to the load end, and the gate is connected to the driving circuit, and the driving circuit is used to generate the modulation signal. When the modulation signal is at a low level, the first MOS tube is turned on, so that the power supply voltage source supplies power to the load end, and when the modulation signal is at a high level, the first MOS tube is turned off.
[0005] Furthermore, the load detection source module includes a constant current source, an input end of the constant current source is connected to the power supply voltage source, and an output end of the constant current source is connected to the switch.
[0006] Furthermore, the switch includes a second MOS tube, a source of the second MOS tube is connected to the output end of the constant current source, a drain is connected to the load end, a gate is connected to the clock module, and the gate is used to receive the first enable signal.
[0007] Furthermore, the comparator includes a positive end, a negative end, a first enable end and a signal output end, wherein the positive end is used to receive the reference voltage, the negative end is connected to the load end and is used to receive the voltage to be compared generated by the constant current source according to the access status of the load end, the first enable end is connected to the clock module and is used to receive the first enable signal, and the signal output end is connected to the trigger and is used to output a load detection flag signal.
[0008] Furthermore, the load detection circuit also includes a bandgap reference source, which is connected to the positive terminal of the comparator and is used to generate the reference voltage.
[0009] Further, the trigger includes a D trigger, which includes a signal sampling end, a second enable end and a result output end, wherein the signal sampling end is connected to the signal output end of the comparator, and is used to sample the load detection flag signal based on the second enable signal, the second enable end is connected to the clock module, and is used to receive the second enable signal, and the result output end is connected to the logic processing module, so that the logic processing module determines whether to connect the load.
[0010] Furthermore, the clock module includes a master clock, and the frequency of the master clock is 33KHz.
[0011] Furthermore, the clock module also includes a frequency divider and an AND gate, wherein the frequency divider includes a first frequency divider, a second frequency divider, a third frequency divider, a fourth frequency divider, a fifth frequency divider and a sixth frequency divider connected in sequence, and is used to divide the master clock into two steps at a time, and the AND gate includes a first AND gate and a second AND gate, the first AND gate is used to perform an AND operation on the output results of the fourth frequency divider, the fifth frequency divider and the sixth frequency divider to obtain the first enable signal, and the second AND gate is used to perform an AND operation on the output results of the second frequency divider, the third frequency divider and the first AND gate to obtain the second enable signal.
[0012] A chip comprises the load detection circuit.
[0013] An atomization device comprises the chip and a heating wire, wherein the heating wire is connected to a load end of the chip, and the chip is used to detect whether the heating wire is connected to the load end.
[0014] Furthermore, the atomization device also includes an indication module, and the indication module generates corresponding indications according to the access status of the heating wire.
[0015] The load detection circuit described in the present application makes a logical combination of the second enable signal and the modulation signal. When and only when the modulation signal controls the power output module to be turned off, the second enable signal controls the load detection flag signal output by the trigger sampling comparator, thereby eliminating the interference of the modulation signal on the load detection, and the reliability is strong. At the same time, the load detection circuit greatly reduces the power consumption of the circuit by periodically switching the load detection source module and the comparator, and enhances the anti-interference ability by filtering the jitter burrs of the comparator output result through the trigger. The load detection circuit realizes the anti-interference and low-power load detection effect by making a logical combination of the modulation signal, the first enable signal and the second enable signal. It is easy to implement and requires fewer components, and has the advantages of low cost and strong practicality. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of the structure of a load detection circuit according to an embodiment of the present application.
[0017] Figure 2 A waveform diagram of the main clock, the first enable signal and the second enable signal according to an embodiment of the present application.
[0018] Figure 3 A schematic diagram of the structure of a clock module according to an embodiment of the present application. Implementation
[0019] The following will describe the technical solutions in the embodiments of the present application in detail in conjunction with the accompanying drawings in the embodiments of the present application. It should be understood that the specific embodiments described below are only used to explain the present application and are not used to limit the present application.
[0020] In the following description, specific details are given to provide a thorough understanding of the embodiments. However, one of ordinary skill in the art will appreciate that the embodiments may be practiced without these specific details. For example, circuits may be shown in block diagrams so as not to obscure the embodiments in unnecessary detail. In other cases, well-known circuits, structures, and techniques may not be shown in detail in order not to obscure the embodiments.
[0021] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, the schemes between the various embodiments can be combined with each other to form different technical schemes, and those not shown belong to the prior art.
[0022] In physics, a load refers to an electronic component connected to both ends of a power supply in a circuit. It is a device that uses electrical energy to work, also known as an "electrical appliance". The function of a load is to convert electrical energy into other forms of energy, for example, a motor converts electrical energy into mechanical energy, a heating wire converts electrical energy into thermal energy, etc. The existing technology uses mechanical structures or complex circuits to detect whether a load is connected, which has poor practicality, high power consumption and high cost. Moreover, when using a switching power supply, the power of the load will constantly fluctuate, causing the load detection results to jump repeatedly, and the reliability is poor.
[0023] In order to solve the above problems, the present application provides a load detection circuit, which realizes anti-interference and low-power load detection effects by logically combining a modulation signal, a first enable signal and a second enable signal. The load detection circuit is easy to implement and requires fewer components, and has the advantages of low cost and strong practicality.
[0024] like Figure 1As shown, the load detection circuit includes: a power output module, which supplies power to the load end based on the modulation signal; a load detection source module, which generates a corresponding voltage to be compared according to the access status of the load end; a comparator, which is used to compare the reference voltage with the voltage to be compared, and then output a load detection flag signal; a switch, which is used to connect the load detection source module and the load end, and is turned on or off based on a first enable signal. When the switch is turned on, the load detection source module generates a corresponding voltage to be compared according to the access status of the load end and transmits it to the comparator, so that the comparator outputs a load detection flag signal; a trigger, which is connected to the comparator and samples the load detection flag signal output by the comparator based on a second enable signal; a clock module, which is connected to the trigger, respectively. The trigger, the switch and the comparator are connected to generate a periodic first enable signal, then control the switch and the comparator to be periodically turned on or off, and to generate a periodic second enable signal, then control the trigger to periodically sample the load detection flag signal output by the comparator; a logic processing module is connected to the trigger, and is used to determine whether the load end is connected to the load according to the load detection flag signal sampled by the trigger; wherein the pulse width of the second enable signal is narrower than that of the first enable signal, and the falling edge of the second enable signal is synchronized with the falling edge of the first enable signal; wherein the second enable signal controls the trigger to sample the load detection flag signal output by the comparator when and only when the modulation signal controls the power output module to be turned off.
[0025] As one of the implementation modes, the power output module includes a power supply voltage source VCC, a first MOS transistor POWERMOS and a driving circuit, wherein the source of the first MOS transistor is connected to the power supply voltage source, the drain is connected to the load end, and the gate is connected to the driving circuit, and the driving circuit is used to generate the modulation signal. When the modulation signal is at a low level, the first MOS transistor is turned on so that the power supply voltage source supplies power to the load end, and when the modulation signal is at a high level, the first MOS transistor is turned off. The modulation signal generated by the driving circuit can be any one of a PWM signal (pulse width modulation signal), a PFM signal (pulse frequency modulation signal) or a PSM signal (pulse cross-cycle modulation signal), and the driving circuit is a conventional circuit and is not described here. The first MOS transistor adopts any one of an NMOS tube or a PMOS tube.
[0026] It should be noted that Figure 1 The PAD in the chip is a metal area connected to the chip. It is the input and output interface of the chip. The circuit inside the chip and the external circuit can be connected through the PAD to realize the input and output functions. The power output of the power output module is sent from the PAD to the load outside the chip.
[0027] As one implementation method, the load detection source module includes a constant current source CCS (Constant Current Source), the input end of the constant current source is connected to the power supply voltage source, and the output end is connected to the switch. This embodiment uses a constant current source, and the power consumption is controllable. If a voltage divider resistor is used, the process deviation is generally large and the consistency is poor.
[0028] As one of the implementation modes, the switch SWITCH includes a second MOS tube, the source of the second MOS tube is connected to the output end of the constant current source, the drain is connected to the load end, the gate is connected to the clock module, and the gate is used to receive the first enable signal. The second MOS tube adopts any one of an NMOS tube or a PMOS tube. When the first enable signal is at a high level, the second MOS tube is turned on, and when the first enable signal is at a low level, the second MOS tube is turned off. The switch is periodically opened and closed by the first enable signal, so that the load detection source module does not consume unnecessary power due to being in a working state all the time, which greatly reduces the power consumption of the circuit. Among them, when the second MOS tube is turned on, the power output of the constant current source is sent from the PAD to the load outside the chip.
[0029] As one of the implementation modes, the comparator CMP includes a positive terminal +, a negative terminal -, a first enable terminal and a signal output terminal, wherein the positive terminal is used to receive the reference voltage VREF, the negative terminal is connected to the load terminal, and is used to receive the voltage to be compared generated by the constant current source according to the access status of the load terminal, the first enable terminal is connected to the clock module, and is used to receive the first enable signal, and the signal output terminal is connected to the trigger, and is used to output a load detection flag signal. When the load is not connected, the constant current source pulls the negative terminal voltage of the comparator to a high potential, which is higher than the reference voltage. At this time, the comparator outputs a load detection flag signal 0, indicating that the load is not connected. When the load is connected, the constant current source (the constant current source size is designed according to the load resistance) generates a voltage drop on the load, which is lower than the reference voltage. At this time, the comparator outputs a load detection flag signal 1, indicating that the load is connected. The use of a comparator in this embodiment can obtain a more accurate output and is not easily affected by temperature.
[0030] As one implementation, the load detection circuit further includes a bandgap reference source, which is connected to the positive terminal of the comparator and is used to generate the reference voltage. The bandgap reference source described in this embodiment has the advantage of being almost independent of process and temperature changes.
[0031] As one of the implementation modes, the trigger FILTER includes a D trigger, and the D trigger includes a signal sampling terminal D, a second enable terminal CLK and a result output terminal Q, wherein the signal sampling terminal is connected to the signal output terminal of the comparator, and is used to sample the load detection flag signal based on the second enable signal, the second enable terminal is connected to the clock module, and is used to receive the second enable signal, and the result output terminal is connected to the logic processing module LOGIC HANDLE, so that the logic processing module determines whether to connect the load.
[0032] like Figure 2 As shown, the pulse width of the second enable signal DET is narrower than that of the first enable signal EN, and the falling edge of the second enable signal is synchronized with the falling edge of the first enable signal. The load is detected at the rising edge of the first enable signal, and the trigger samples the load detection flag signal at the rising edge of the second enable signal. The second enable signal is a short pulse before the falling edge of the first enable signal, so the trigger samples the load detection flag signal at the end of the load detection. At the end of the load detection, the output of the comparator has stabilized, that is, the trigger used in this embodiment filters out the jitter glitches in the load detection result caused by the load being loose or in poor contact, thereby improving the anti-interference performance of the load detection circuit.
[0033] On the other hand, since the actual power of the load will constantly fluctuate during the power output process of the power output module, the second enable signal is logically combined with the modulation signal. When and only when the modulation signal controls the power output module to be turned off, that is, when the modulation signal is at a high level, the second enable signal generates a short pulse to control the load detection flag signal output by the trigger sampling comparator, thereby eliminating the interference of the modulation signal on the load detection, and having high reliability.
[0034] As one of the implementation methods, Figure 3 As shown, the clock module includes a main clock OSC, and the frequency of the main clock is 33KHz. The frequency of 33KHz is adopted to take into account both the speed of processing data and the power consumption.
[0035] As one of the implementation methods, Figure 3As shown, the clock module also includes a frequency divider and an AND gate, wherein the frequency divider includes a first frequency divider, a second frequency divider, a third frequency divider, a fourth frequency divider, a fifth frequency divider and a sixth frequency divider connected in sequence, for dividing the master clock by two in stages, and the AND gate includes a first AND gate and a second AND gate, wherein the first AND gate is used to perform an AND operation on the output results of the fourth frequency divider, the fifth frequency divider and the sixth frequency divider to obtain the first enable signal, and the second AND gate is used to perform an AND operation on the output results of the second frequency divider, the third frequency divider and the first AND gate to obtain the second enable signal. Wherein, the frequency divider can be any one of a D flip-flop or an SR flip-flop. In practical applications, the enable signal can be set according to demand, for example, it is set to open only one clock cycle in eight clock cycles, so that the power consumption is only one-eighth of the original. The cycle of the enable signal can be designed according to actual needs, so that the load detection circuit can be applied to more application scenarios and has strong practicality.
[0036] The present application also provides a chip, the chip comprising the above-mentioned load detection circuit. The chip realizes anti-interference and low-power load detection effects by logically combining the modulation signal, the first enable signal and the second enable signal, is easy to implement and requires fewer components, and has the advantages of low cost and strong practicality.
[0037] The present application also provides an electronic device, which includes the above-mentioned chip, and the electronic device can be any one of an atomization device and a power management architecture. In one embodiment, the electronic device is an atomization device, which includes the above-mentioned chip, and also includes a heating wire LOAD, which is connected to the load end of the chip, and the chip is used to detect whether the heating wire is connected to the load end. The heating wire is also connected in parallel with a parasitic capacitor C. The atomization device also includes an indication module, which generates a corresponding indication according to the access status of the heating wire. The indication module includes at least any one of an LED lamp and a vibration motor MOTOR. The atomization device realizes anti-interference and low-power consumption load detection effects by logically combining the modulation signal, the first enable signal and the second enable signal. It is easy to implement and requires fewer components. It has the advantages of low cost and strong practicality, that is, it improves the battery life and usage experience of the atomization device.
[0038] In another embodiment, the above-mentioned chip may also be provided for other electronic devices that need to detect loads, such as a power management architecture. The load detection circuit controls each wake-up source in the power management architecture to be turned on only part of the time by periodically switching the load detection source module and the comparator, thereby greatly reducing circuit power consumption, improving the robustness and yield of the power management architecture, and filtering the jitter glitches of the comparator output result by the trigger, thereby enhancing the anti-interference capability of the power management architecture.
[0039] Obviously, the above-mentioned embodiments are only a part of the embodiments of the present application, rather than all the embodiments, and the technical solutions between the various embodiments can be combined with each other. In addition, if the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside" and the like appear in the embodiments, the orientation or position relationship indicated is based on the orientation or position relationship shown in the accompanying drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. If the terms "first", "second", "third" and the like appear in the embodiments, it is to facilitate the distinction of related features and cannot be understood as indicating or implying their relative importance, order or number of technical features.
[0040] In addition, in the description of this application, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0041] Although the embodiments of the present application have been shown and described, it is understood by those skilled in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present application, and the scope of the present application is limited by the attached claims and their equivalents. The above is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A load detection circuit, characterized in that: The load detection circuit comprises: A power output module supplies power to the load end based on the modulated signal; A load detection source module generates a corresponding voltage to be compared according to the access status of the load end; A comparator, used for comparing the reference voltage with the voltage to be compared, and then outputting a load detection flag signal; A switch, used to connect the load detection source module and the load end, and is turned on or off based on a first enable signal. When the switch is turned on, the load detection source module generates a corresponding voltage to be compared according to the access status of the load end and transmits it to the comparator, so that the comparator outputs a load detection flag signal; A trigger, connected to the comparator, samples the load detection flag signal output by the comparator based on a second enable signal; A clock module, connected to the trigger, the switch and the comparator respectively, for generating a periodic first enable signal, and then controlling the switch and the comparator to be periodically turned on or off, and for generating a periodic second enable signal, and then controlling the trigger to periodically sample the load detection flag signal output by the comparator; A logic processing module, connected to the trigger, for determining whether the load end is connected to the load according to the load detection flag signal sampled by the trigger; Wherein, the pulse width of the second enable signal is narrower than that of the first enable signal, and the falling edge of the second enable signal is synchronized with the falling edge of the first enable signal; Wherein, when and only when the modulation signal controls the power output module to be turned off, the second enable signal controls the trigger to sample the load detection flag signal output by the comparator.
2. A load detection circuit according to claim 1, characterized in that: The power output module includes a power supply voltage source, a first MOS tube and a driving circuit, wherein: The source of the first MOS tube is connected to the power supply voltage source, the drain is connected to the load end, and the gate is connected to the driving circuit. The driving circuit is used to generate the modulation signal. When the modulation signal is at a low level, the first MOS tube is turned on so that the power supply voltage source supplies power to the load end. When the modulation signal is at a high level, the first MOS tube is turned off.
3. A load detection circuit according to claim 2, characterized in that: The load detection source module comprises a constant current source, an input end of the constant current source is connected to the power supply voltage source, and an output end of the constant current source is connected to the switch.
4. A load detection circuit according to claim 3, characterized in that: The switch includes a second MOS tube, a source of the second MOS tube is connected to the output end of the constant current source, a drain is connected to the load end, and a gate is connected to the clock module, and the gate is used to receive the first enable signal.
5. A load detection circuit according to claim 4, characterized in that: The comparator includes a positive terminal, a negative terminal, a first enable terminal and a signal output terminal, wherein: The positive terminal is used to receive the reference voltage. The negative terminal is connected to the load terminal and is used to receive the voltage to be compared generated by the constant current source according to the access condition of the load terminal. The first enable terminal is connected to the clock module and is used to receive the first enable signal. The signal output end is connected to the trigger and is used to output a load detection flag signal.
6. A load detection circuit according to claim 5, characterized in that: The load detection circuit also includes a bandgap reference source, which is connected to the positive terminal of the comparator and is used to generate the reference voltage.
7. A load detection circuit according to claim 5, characterized in that: The trigger comprises a D trigger, and the D trigger comprises a signal sampling terminal, a second enable terminal and a result output terminal, wherein: The signal sampling end is connected to the signal output end of the comparator, and is used to sample the load detection flag signal based on the second enable signal. The second enable terminal is connected to the clock module and is used to receive the second enable signal. The result output terminal is connected to the logic processing module, so that the logic processing module determines whether to connect to the load.
8. A load detection circuit according to claim 7, characterized in that: The clock module includes a main clock, and the frequency of the main clock is 33KHz.
9. A load detection circuit according to claim 8, characterized in that: The clock module also includes a frequency divider and an AND gate, wherein: The frequency divider includes a first frequency divider, a second frequency divider, a third frequency divider, a fourth frequency divider, a fifth frequency divider and a sixth frequency divider connected in sequence, and is used to divide the master clock into two frequency steps. The AND gate includes a first AND gate and a second AND gate, the first AND gate is used to perform an AND operation on the output results of the fourth frequency divider, the fifth frequency divider and the sixth frequency divider to obtain the first enable signal, and the second AND gate is used to perform an AND operation on the output results of the second frequency divider, the third frequency divider and the first AND gate to obtain the second enable signal.
10. A chip, characterized in that: The chip comprises the load detection circuit according to any one of claims 1 to 9.
11. An electronic device, characterized in that: The electronic device comprises the chip according to claim 10.
