Comparison circuits and electronic equipment
By configuring electronic components to form a detection circuit and a voltage divider circuit, setting the proportional coefficients and voltage divider coefficients of different gear positions, the problem of poor compatibility of the comparison circuit is solved, and the hardware design is simplified and cost reduction is achieved.
Patent Information
- Application Number
- CN202520034129.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2035-01-08
AI Technical Summary
The existing comparative circuits have poor compatibility, resulting in complex hardware design and high production and management costs.
By configuring electronic components to form a detection circuit and a voltage divider circuit, the proportional coefficients and voltage divider coefficients of different gears are set to be compatible with the input voltages of different voltage intervals, and the reference voltage can be adjusted.
The diversified functional customization of comparative circuits is realized, the hardware design is simplified, and the production and management costs are reduced.
Smart Images

Figure CN222706483U_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic circuits, and in particular, relates to a comparison circuit and an electronic device. Background Art
[0002] The relevant comparison circuit connects the input voltage and the reference voltage, and compares the input voltage with the reference voltage to output a comparison signal, thereby realizing high and low level detection.
[0003] However, when used in different working conditions, such as different engine ECUs and automotive electronic control systems, the input voltage and reference voltage are different, so multiple versions of hardware design are required, which makes the hardware design complex and has high management costs.
[0004] Therefore, the compatibility of the relevant comparison circuits is poor, resulting in complex hardware design and high production and management costs. Utility Model Content
[0005] In view of the above problems, the present application provides a comparison circuit and an electronic device, aiming to solve the problem that the related comparison circuits have poor compatibility, resulting in complex hardware design and high production and management costs.
[0006] In a first aspect, the present application provides an embodiment of the present application which provides a comparison circuit, including:
[0007] A first configuration module is used to configure electronic components to form a detection circuit; wherein the detection circuit is used to detect an input voltage to output a detection voltage;
[0008] A second configuration module is used to configure electronic components to form a voltage divider circuit; wherein the voltage divider circuit is used to divide the input reference voltage to output a reference voltage;
[0009] A comparison module is connected to the first configuration module and the second configuration module, and is used to compare the detection voltage with the reference voltage to output a comparison signal.
[0010] In the technical solution of the embodiment of the present application, by setting the first configuration module and the second configuration module with different gears, detection circuits with different proportional coefficients and voltage divider circuits with different voltage divider coefficients are obtained, so that input voltages in different voltage ranges can be compatible and the reference voltage is adjustable. Therefore, it is easier and more convenient to realize the diversified functional customization of the comparison circuit, simplify the hardware design, and reduce production costs and management costs.
[0011] In some embodiments, when the first configuration module forms a first detection circuit, the second configuration module forms a first voltage divider circuit;
[0012] In the case where the first configuration module forms a second detection circuit, the second configuration module forms a second voltage divider circuit;
[0013] Wherein, the voltage division coefficient of the first voltage division circuit is smaller than the voltage division coefficient of the second voltage division circuit;
[0014] The proportionality coefficient of the first detection circuit is greater than the proportionality coefficient of the second detection circuit;
[0015] The proportionality coefficient is the quotient of the detection voltage divided by the input voltage in the detection circuit;
[0016] The voltage division coefficient is a quotient of the reference voltage divided by the base voltage in the voltage division circuit.
[0017] By adopting the above scheme, a larger proportional coefficient and a smaller voltage division coefficient are used to make the comparison circuit compatible with input voltages with smaller values; at the same time, a smaller proportional coefficient and a larger voltage division coefficient are used to make the comparison circuit compatible with input voltages with larger values, thereby making it easier and more convenient to realize the diversified functional customization of the comparison circuit, simplifying the hardware design, and reducing the production cost and management cost.
[0018] In some embodiments, when forming a first detection circuit, the first configuration module includes a first resistor and a second resistor;
[0019] The first end of the first resistor serves as an input end of the first configuration module to access the input voltage;
[0020] The second end of the first resistor and the first end of the second resistor are used together as an output end of the first configuration module, and are connected to the comparison module to output the detection voltage;
[0021] The second end of the second resistor is connected to the power ground.
[0022] The first configuration module has a simple structure and low cost.
[0023] In some embodiments, when forming the second detection circuit, the first configuration module includes a first resistor, a second resistor, and a third resistor;
[0024] The first end of the third resistor and the first end of the first resistor are used together as an input end of the first configuration module to access the input voltage;
[0025] The second end of the first resistor and the first end of the second resistor are used together as an output end of the first configuration module, and are connected to the comparison module to output the detection voltage;
[0026] The second end of the second resistor and the second end of the third resistor are connected to the power ground
[0027] By adopting the above scheme, only one more third resistor needs to be set to realize a detection circuit with a smaller proportional coefficient; and the position of the third resistor can be set when performing printed circuit board layout and wiring. Under actual working conditions, it can be determined whether to mount the third resistor according to needs, so as to choose to implement the first detection circuit or the second detection circuit, which simplifies the hardware design, reduces the hardware version, and thus reduces production costs and management costs.
[0028] In some embodiments, when forming the first voltage divider circuit, the second configuration module includes a fourth resistor and a fifth resistor;
[0029] The first end of the fourth resistor serves as an input end of the second configuration module to access the reference voltage;
[0030] The second end of the fourth resistor and the first end of the fifth resistor are used together as an output end of the second configuration module, and are connected to the comparison module to output the reference voltage;
[0031] The second end of the fifth resistor is connected to the power ground.
[0032] The second configuration module has a simple structure and low cost.
[0033] In some embodiments, when forming a second voltage divider circuit, the second configuration module includes a fourth resistor and a sixth resistor;
[0034] The first end of the fourth resistor serves as an input end of the second configuration module to access the reference voltage;
[0035] The second end of the fourth resistor and the first end of the sixth resistor are used together as an output end of the second configuration module, and are connected to the comparison module to output the reference voltage;
[0036] The second end of the sixth resistor is connected to the power ground.
[0037] Through the above technical solution, it is only necessary to replace the fifth resistor with the sixth resistor to realize a voltage divider circuit with a smaller voltage divider coefficient; and the first voltage divider circuit and the second voltage divider circuit have the same printed circuit board layout and wiring. Under actual working conditions, the use of the fifth resistor or the sixth resistor can be determined according to needs, so that the first voltage divider circuit or the second voltage divider circuit can be selected to be implemented, which simplifies the hardware design, reduces the hardware version, and thus reduces production costs and management costs.
[0038] In some embodiments, the comparison module includes a comparator;
[0039] The non-inverting input terminal of the comparator is used as the first input terminal of the comparison module and is connected to the first configuration module to access the detection voltage;
[0040] The inverting input terminal of the comparator is used as the second input terminal of the comparison module and is connected to the second configuration module to access the reference voltage;
[0041] The output end of the comparator serves as the output end of the comparison module to output the comparison signal.
[0042] The comparison module has a simple structure and low cost.
[0043] In some embodiments, the comparison circuit further comprises:
[0044] an overvoltage protection circuit, connected to the first configuration module and the comparison module, and configured to perform overvoltage protection on the detection voltage;
[0045] The comparison module is specifically used to compare the detection voltage after overvoltage protection with the reference voltage to output the comparison signal.
[0046] Through the above technical solution, the safety and reliability of the comparison circuit are improved by performing overvoltage protection on the detection voltage.
[0047] In some embodiments, the comparison circuit further comprises:
[0048] The control circuit is connected to the comparison module and is used to take corresponding actions according to the comparison signal.
[0049] Through the above technical solution, by taking corresponding actions according to the comparison signal, the functions of the product are enriched.
[0050] In a second aspect, an embodiment of the utility model further provides an electronic device, wherein the electronic device comprises the above-mentioned comparison circuit.
[0051] By adopting the above solution, since the electronic device includes the comparison circuit of any of the above solutions, the safety and reliability of the comparison circuit can be improved, and it can be applied to high-power scenarios.
[0052] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings:
[0054] Figure 1 A schematic diagram of a comparison circuit provided in one embodiment of the present application;
[0055] Figure 2 Another structural schematic diagram of a comparison circuit provided in an embodiment of the present application;
[0056] Figure 3 Another structural schematic diagram of a comparison circuit provided in an embodiment of the present application;
[0057] Figure 4 Another structural schematic diagram of a comparison circuit provided in an embodiment of the present application;
[0058] Figure 5 Another structural schematic diagram of a comparison circuit provided in an embodiment of the present application;
[0059] Figure 6 A schematic diagram of a partial circuit example of a comparison circuit provided in one embodiment of the present application;
[0060] Figure 7 Another exemplary schematic diagram of a partial circuit of a comparison circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0063] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0064] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0065] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0066] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0067] At present, from the perspective of market development, the application of comparison circuits is becoming more and more extensive. Comparison circuits are widely used in transportation tools such as electric bicycles, motorcycles, and automobiles, as well as in aerospace and other fields. With the continuous expansion of the application field of comparison circuits, the market demand is also constantly expanding.
[0068] In order to solve the problems of poor compatibility and high cost, the applicant has discovered that electronic components can be configured in the design to detect the input voltage and output the detection voltage, to divide the reference voltage and output the reference voltage, and then to compare the detection voltage with the reference voltage to output a comparison signal; thereby improving compatibility and reducing production costs and management costs.
[0069] The comparison circuit disclosed in the embodiment of the present application can be used in an electric device. The electric device can be, but is not limited to, an electric toy, an electric tool, a battery car, an electric car, a ship, a spacecraft, etc. Among them, the electric toy can include a fixed or mobile electric toy, for example, a game console, an electric car toy, an electric ship toy, and an electric airplane toy, etc., and the spacecraft can include an airplane, a rocket, a space shuttle, and a spacecraft, etc.
[0070] According to some embodiments of the present application, referring to Figure 1 , Figure 1 A schematic diagram of the structure of a comparison circuit provided in an embodiment of the present application is shown. For the sake of convenience, only the part related to the present embodiment is shown, which is described in detail as follows:
[0071] The above comparison circuit includes a first configuration module 01 , a second configuration module 02 and a comparison module 03 .
[0072] The first configuration module 01 is used to configure electronic components to form a detection circuit; wherein the detection circuit is used to detect the input voltage connected to output a detection voltage;
[0073] The second configuration module 02 is used to configure electronic components to form a voltage divider circuit; wherein the voltage divider circuit is used to divide the input reference voltage to output a reference voltage;
[0074] The comparison module 03 is connected to the first configuration module 01 and the second configuration module 02, and is used to compare the detection voltage with the reference voltage to output a comparison signal.
[0075] It can be understood that, for different working conditions, detection circuits with different proportional coefficients can be formed by configuring electronic components, wherein the proportional coefficient is the quotient of the detection voltage divided by the input voltage in the detection circuit; or voltage divider circuits with different voltage divider coefficients can be formed by configuring electronic components, wherein the voltage divider coefficient is the quotient of the reference voltage divided by the reference voltage in the voltage divider circuit.
[0076] In the technical solution of the embodiment of the present application, by setting the first configuration module 01 and the second configuration module 02 with different gears, detection circuits with different proportional coefficients and voltage divider circuits with different voltage divider coefficients are obtained, so that input voltages in different voltage ranges can be compatible and the reference voltage is adjustable. Therefore, it is easier and more convenient to realize the diversified functional customization of the comparison circuit, simplify the hardware design, and reduce the production cost and management cost.
[0077] According to some embodiments of the present application, optionally, when the first configuration module 01 forms a first detection circuit, the second configuration module 02 forms a first voltage divider circuit; when the first configuration module 01 forms a second detection circuit, the second configuration module 02 forms a second voltage divider circuit.
[0078] Wherein, the voltage division coefficient of the first voltage division circuit is smaller than the voltage division coefficient of the second voltage division circuit.
[0079] The proportionality coefficient of the first detection circuit is greater than the proportionality coefficient of the second detection circuit.
[0080] The proportionality factor is the quotient of the sense voltage divided by the input voltage in the sense circuit.
[0081] The voltage division coefficient is the quotient of the reference voltage divided by the base voltage in the voltage division circuit.
[0082] It can be understood that, when the input voltage is relatively small, a first detection circuit and a first voltage divider circuit can be formed, thereby selecting a larger proportionality coefficient and a smaller voltage divider coefficient to be compatible with a smaller input voltage.
[0083] For example, the connected reference voltage is 5V, and a voltage divider circuit with a first voltage divider coefficient of 0.3 is selected to obtain a reference voltage of 1.5V. At the same time, a first detection circuit with a first proportional coefficient of 0.75 is selected; therefore, when the input voltage is greater than 2V, a detection voltage greater than 1.5V can be obtained, and the comparison module 03 outputs a high level; when the input voltage is less than 2V, a detection voltage less than 1.5V can be obtained, and the comparison module 03 outputs a low level.
[0084] When the input voltage is relatively large, a second detection circuit and a second voltage divider circuit may be formed, thereby selecting a smaller proportional coefficient and a larger voltage divider coefficient to be compatible with an input voltage having a relatively large value.
[0085] For example, the connected reference voltage is 5V, and the first voltage divider circuit with a first voltage divider coefficient of 0.72 is selected to obtain a reference voltage of 3.6V. At the same time, the first detection circuit with a first proportional coefficient of 0.5 is selected; therefore, when the input voltage is greater than 7.2V, a detection voltage greater than 3.6V can be obtained, and the comparison module 03 outputs a high level; when the input voltage is less than 7.2V, a detection voltage less than 3.6V can be obtained, and the comparison module 03 outputs a low level.
[0086] By adopting the above scheme, a larger proportional coefficient and a smaller voltage division coefficient are used to make the comparison circuit compatible with input voltages with smaller values; at the same time, a smaller proportional coefficient and a larger voltage division coefficient are used to make the comparison circuit compatible with input voltages with larger values, thereby making it easier and more convenient to realize the diversified functional customization of the comparison circuit, simplifying the hardware design, and reducing the production cost and management cost.
[0087] Please continue to refer to Figure 2 , Figure 2 A schematic diagram of the structure of a comparison circuit provided by another embodiment of the present application is shown. For the sake of convenience, only the part related to the present embodiment is shown, which is described in detail as follows:
[0088] The above comparison circuit is Figure 1 In addition to all the components and assemblies of the comparison circuit shown, the comparison circuit also includes a control circuit 04.
[0089] The control circuit 04 is connected to the comparison module 03 and is used to take corresponding actions according to the comparison signal.
[0090] The control circuit 04 may include a battery management system, a microprocessor, a programmable logic array, a digital signal processor (digital signal processing, DSP) and a field programmable gate array (field programmable gate array, FPGA).
[0091] In one embodiment, the battery management system stops outputting the discharge control signal according to the comparison signal to disconnect the output of the battery voltage.
[0092] Through the above technical solution, by taking corresponding actions according to the comparison signal, the functions of the product are enriched.
[0093] According to some embodiments of the present application, optionally, please continue to refer to Figure 3 , Figure 3 A schematic diagram of the structure of a comparison circuit provided by another embodiment of the present application is shown. For the sake of convenience, only the part related to the present embodiment is shown, which is described in detail as follows:
[0094] The above comparison circuit is Figure 1 In addition to all the components and assemblies of the comparison circuit shown, the comparison circuit also includes an overvoltage protection circuit 05.
[0095] The overvoltage protection circuit 05 is connected to the first configuration module 01 and the comparison module 03, and is used to perform overvoltage protection on the detection voltage.
[0096] The comparison module 03 is specifically used to compare the detection voltage after overvoltage protection with the reference voltage to output a comparison signal.
[0097] It is understandable that the overvoltage protection circuit 05 may include a first clamping circuit and / or a first transient voltage suppression circuit. The first clamping circuit is used to clamp the detection voltage; the first transient voltage suppression circuit is used to discharge the peak voltage in the detection voltage.
[0098] Through the above technical solution, the safety and reliability of the comparison circuit are improved by performing overvoltage protection on the detection voltage.
[0099] According to some embodiments of the present application, optionally, please continue to refer to Figure 4 , Figure 4 A schematic diagram of the structure of a comparison circuit provided by another embodiment of the present application is shown. For the sake of convenience, only the part related to the present embodiment is shown, which is described in detail as follows:
[0100] The above comparison circuit is Figure 1 In addition to all the components and assemblies of the comparison circuit shown, the comparison circuit also includes a power protection circuit 06.
[0101] The power protection circuit 06 is connected to the second configuration circuit and is used for performing voltage protection on the reference voltage.
[0102] It is understandable that the power protection circuit 06 may include a second clamping circuit and / or a second transient voltage suppression circuit. The second clamping circuit is used to clamp the reference voltage; the second transient voltage suppression circuit is used to discharge the peak voltage in the reference voltage.
[0103] By adopting the above solution and performing overvoltage protection on the reference voltage, the safety and reliability of the comparison circuit are improved.
[0104] According to some embodiments of the present application, optionally, please continue to refer to Figure 5 , Figure 5 A schematic diagram of the structure of a comparison circuit provided by another embodiment of the present application is shown. For the sake of convenience, only the part related to the present embodiment is shown, which is described in detail as follows:
[0105] The above comparison circuit is Figure 1 In addition to all the components and assemblies of the comparison circuit shown, the comparison circuit also includes a filter circuit 07.
[0106] The filter circuit 07 is connected with the first configuration module 01 and the comparison module 03 and is used for filtering the detection voltage.
[0107] The comparison module 03 is specifically used to compare the filtered detection voltage with the reference voltage to output a comparison signal.
[0108] It can be understood that the filter circuit 07 filters out the peak signal of the detection voltage, thereby making the detection voltage more stable.
[0109] By adopting the above solution, the detection voltage is filtered, thereby improving the accuracy of the comparison circuit.
[0110] In some embodiments, optionally, refer to Figure 6 When forming the first detection circuit, the first configuration module 01 includes a first resistor R1 and a second resistor R2.
[0111] The first end of the first resistor R1 serves as the input end of the first configuration module 01 to access the input voltage; the second end of the first resistor R1 and the first end of the second resistor R2 serve together as the output end of the first configuration module 01, and are connected to the comparison module 03 to output the detection voltage; the second end of the second resistor R2 is connected to the power ground.
[0112] It can be understood that the first proportionality coefficient of the first detection circuit is R2 / (R1+R2).
[0113] The first configuration module 01 has a simple structure and low cost.
[0114] In some embodiments, optionally, please continue to refer to Figure 6 In the case of forming the first voltage divider circuit, the second configuration module 02 includes a fourth resistor R4 and a fifth resistor R5.
[0115] The first end of the fourth resistor R4 serves as the input end of the second configuration module 02 to access the reference voltage; the second end of the fourth resistor R4 and the first end of the fifth resistor R5 serve as the output end of the second configuration module 02 and are connected to the comparison module 03 to output the reference voltage; the second end of the fifth resistor R5 is connected to the power ground.
[0116] It can be understood that the voltage division coefficient of the first voltage division circuit is R5 / (R4+R5).
[0117] The second configuration module 02 has a simple structure and low cost.
[0118] The comparison module includes a comparator U1; the non-inverting input terminal of the comparator U1 serves as the first input terminal of the comparison module 03, and is connected to the first configuration module 01 to access the detection voltage; the inverting input terminal of the comparator U1 serves as the second input terminal of the comparison module 03, and is connected to the second configuration module 02 to access the reference voltage; the output terminal of the comparator U1 serves as the output terminal of the comparison module 03 to output a comparison signal.
[0119] The comparison circuit 03 has a simple structure and low cost.
[0120] The voltage protection circuit includes a first voltage regulator tube Z1; the filter circuit 07 includes a first capacitor C1.
[0121] The power protection circuit 06 includes a second voltage regulator tube Z2, a third voltage regulator tube Z3 and a seventh resistor R7; the first end of the seventh resistor R7 serves as the input end of the power protection circuit 06 and the output end of the power protection circuit 06, and is connected to the second configuration module 02 to access the reference voltage and output the reference voltage after voltage protection; the second end of the seventh resistor R7 is connected to the negative electrode of the second voltage regulator tube Z2 and the positive electrode of the third voltage regulator tube Z3, the positive electrode of the second voltage regulator tube Z2 is connected to the power ground, and the negative electrode of the third voltage regulator tube Z3 is connected to the first power supply VBB.
[0122] Combine the following Figure 6 The circuit principle is explained as follows:
[0123] The input voltage VIN is connected, and the first resistor R1 and the second resistor R2 detect the input voltage VIN and output the detection voltage; the detection voltage is clamped by the first voltage regulator Z1 and filtered by the first capacitor C1, and then output to the non-inverting input terminal of the comparator U1; the reference voltage is clamped by the second voltage regulator Z2 and the third voltage regulator, and then divided by the fourth resistor R4 and the fifth resistor R5, and the reference voltage is output from the second end of the fourth resistor R4 and the first end of the fifth resistor R5 to the inverting input terminal of the comparator U1; the comparator U1 responds to the detection voltage being greater than or equal to the reference voltage, outputs a high-level comparison signal VCOMP, and responds to the detection voltage being less than the reference voltage, outputs a low-level comparison signal VCOMP.
[0124] In some embodiments, optionally, refer to Figure 7 In the case of forming the second detection circuit, the first configuration module 01 includes a first resistor R1, a second resistor R2 and a third resistor R3.
[0125] The first end of the third resistor and the first end of the first resistor R1 serve together as the input end of the first configuration module 01 to access the input voltage; the second end of the first resistor R1 and the first end of the second resistor R2 serve together as the output end of the first configuration module 01, connected to the comparison module 03 to output the detection voltage; the second end of the second resistor R2 and the second end of the third resistor R3 are connected to the power ground.
[0126] It can be understood that the second proportionality coefficient of the second detection circuit is smaller than R2 / (R1+R2), that is, the second proportionality coefficient is smaller than the first proportionality coefficient.
[0127] By adopting the above scheme, only one more third resistor needs to be set to realize a detection circuit with a smaller proportional coefficient; and the position of the third resistor can be set when performing printed circuit board layout and wiring. Under actual working conditions, it can be determined whether to mount the third resistor according to needs, so as to choose to implement the first detection circuit or the second detection circuit, which simplifies the hardware design, reduces the hardware version, and thus reduces production costs and management costs.
[0128] In some embodiments, optionally, please continue to refer to Figure 7 When forming the second voltage divider circuit, the second configuration module 02 includes a fourth resistor R4 and a sixth resistor R6.
[0129] The first end of the fourth resistor R4 serves as the input end of the second configuration module 02 to access the reference voltage; the second end of the fourth resistor R4 and the first end of the sixth resistor R6 serve together as the output end of the second configuration module 02, and are connected to the comparison module 03 to output the reference voltage; the second end of the sixth resistor R6 is connected to the power ground.
[0130] It is understandable that the voltage division coefficient of the first voltage division circuit can be smaller than the voltage division coefficient of the second voltage division circuit by setting the resistance value of the fifth resistor R5 to be smaller than the resistance value of the sixth resistor R6.
[0131] The comparison module includes a comparator U1; the non-inverting input terminal of the comparator U1 serves as the first input terminal of the comparison module 03, and is connected to the first configuration module 01 to access the detection voltage; the inverting input terminal of the comparator U1 serves as the second input terminal of the comparison module 03, and is connected to the second configuration module 02 to access the reference voltage; the output terminal of the comparator U1 serves as the output terminal of the comparison module 03 to output a comparison signal.
[0132] The comparison circuit 03 has a simple structure and low cost.
[0133] The voltage protection circuit includes a first voltage regulator tube Z1; the filter circuit 07 includes a first capacitor C1.
[0134] The power protection circuit 06 includes a second voltage regulator tube Z2, a third voltage regulator tube Z3 and a seventh resistor R7; the first end of the seventh resistor R7 serves as the input end of the power protection circuit 06 and the output end of the power protection circuit 06, and is connected to the second configuration module 02 to access the reference voltage and output the reference voltage after voltage protection; the second end of the seventh resistor R7 is connected to the negative electrode of the second voltage regulator tube Z2 and the positive electrode of the third voltage regulator tube Z3, the positive electrode of the second voltage regulator tube Z2 is connected to the power ground, and the negative electrode of the third voltage regulator tube Z3 is connected to the first power supply VBB.
[0135] Through the above technical solution, it is only necessary to replace the fifth resistor R5 with the sixth resistor R6 to realize a voltage divider circuit with a smaller voltage divider coefficient; and the first voltage divider circuit and the second voltage divider circuit have the same printed circuit board layout and wiring. Under actual working conditions, the use of the fifth resistor R5 or the sixth resistor R6 is determined according to needs, and the first voltage divider circuit or the second voltage divider circuit can be selected to implement, which simplifies the hardware design, reduces the hardware version, and thus reduces production costs and management costs.
[0136] Combine the following Figure 7 The circuit principle is explained as follows:
[0137] The input voltage VIN is connected, and the first resistor R1, the second resistor R2 and the third resistor R3 detect the input voltage VIN and output the detection voltage; the detection voltage is clamped by the first voltage regulator Z1 and filtered by the first capacitor C1, and then output to the non-inverting input terminal of the comparator U1; the reference voltage is clamped by the second voltage regulator Z2 and the third voltage regulator, and then divided by the fourth resistor R4 and the sixth resistor R6, and the reference voltage is output from the second end of the fourth resistor R4 and the first end of the sixth resistor R6 to the inverting input terminal of the comparator U1; the comparator U1 responds to the detection voltage being greater than or equal to the reference voltage, outputs a high-level comparison signal VCOMP, and responds to the detection voltage being less than the reference voltage, outputs a low-level comparison signal VCOMP.
[0138] It should be emphasized that Figure 6 The comparison circuit shown is compared to Figure 7 Since the comparison circuit shown in the figure is additionally provided with the third resistor R3, the proportionality coefficient of the first detection circuit is greater than the proportionality coefficient of the second detection circuit; since the resistance value of the sixth resistor R6 is greater than the resistance value of the fifth resistor R5, the voltage division coefficient of the first voltage division circuit is less than the voltage division coefficient of the second voltage division circuit; thus Figure 6 The comparison circuit shown can be applied to the working condition of small input voltage. Figure 7 The comparison circuit shown can be applied to the working condition where the input voltage is relatively large; and Figure 6 The comparison circuit shown and Figure 7 The comparison circuit shown can be realized using the same printed circuit board, just by patching different combinations of resistors.
[0139] According to some embodiments of the present application, the present application also provides an electronic device, comprising a comparison circuit of any of the above schemes.
[0140] Since the electronic device includes the comparison circuit of any of the above solutions, the compatibility of the comparison circuit can be improved, and the production cost and management cost can be reduced.
[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.
Claims
1. A comparison circuit, characterized in that: include: A first configuration module is used to configure electronic components to form a detection circuit; wherein the detection circuit is used to detect an input voltage to output a detection voltage; A second configuration module is used to configure electronic components to form a voltage divider circuit; wherein the voltage divider circuit is used to divide the input reference voltage to output a reference voltage; A comparison module is connected to the first configuration module and the second configuration module, and is used to compare the detection voltage with the reference voltage to output a comparison signal.
2. The comparison circuit according to claim 1, characterized in that: In the case where the first configuration module forms a first detection circuit, the second configuration module forms a first voltage divider circuit; In the case where the first configuration module forms a second detection circuit, the second configuration module forms a second voltage divider circuit; Wherein, the voltage division coefficient of the first voltage division circuit is smaller than the voltage division coefficient of the second voltage division circuit; The proportionality coefficient of the first detection circuit is greater than the proportionality coefficient of the second detection circuit; The proportionality coefficient is the quotient of the detection voltage divided by the input voltage in the detection circuit; The voltage division coefficient is a quotient of the reference voltage divided by the base voltage in the voltage division circuit.
3. The comparison circuit according to claim 2, characterized in that: In the case of forming a first detection circuit, the first configuration module includes a first resistor and a second resistor; The first end of the first resistor serves as an input end of the first configuration module to access the input voltage; The second end of the first resistor and the first end of the second resistor are used together as an output end of the first configuration module, and are connected to the comparison module to output the detection voltage; The second end of the second resistor is connected to the power ground.
4. The comparison circuit according to claim 2, characterized in that: In the case of forming the second detection circuit, the first configuration module includes a first resistor, a second resistor and a third resistor; The first end of the third resistor and the first end of the first resistor are used together as an input end of the first configuration module to access the input voltage; The second end of the first resistor and the first end of the second resistor are used together as an output end of the first configuration module, and are connected to the comparison module to output the detection voltage; The second end of the second resistor and the second end of the third resistor are connected to a power ground.
5. The comparison circuit according to claim 2, characterized in that: In the case of forming the first voltage divider circuit, the second configuration module includes a fourth resistor and a fifth resistor; The first end of the fourth resistor serves as an input end of the second configuration module to access the reference voltage; The second end of the fourth resistor and the first end of the fifth resistor are used together as an output end of the second configuration module, and are connected to the comparison module to output the reference voltage; The second end of the fifth resistor is connected to the power ground.
6. The comparison circuit according to claim 5, characterized in that: In the case of forming a second voltage divider circuit, the second configuration module includes a fourth resistor and a sixth resistor; The first end of the fourth resistor serves as an input end of the second configuration module to access the reference voltage; The second end of the fourth resistor and the first end of the sixth resistor are used together as an output end of the second configuration module, and are connected to the comparison module to output the reference voltage; The second end of the sixth resistor is connected to the power ground.
7. The comparison circuit according to claim 1, characterized in that: The comparison module includes a comparator; The non-inverting input terminal of the comparator is used as the first input terminal of the comparison module and is connected to the first configuration module to access the detection voltage; The inverting input terminal of the comparator is used as the second input terminal of the comparison module and is connected to the second configuration module to access the reference voltage; The output end of the comparator serves as the output end of the comparison module to output the comparison signal.
8. The comparison circuit according to any one of claims 1 to 7, characterized in that: The comparison circuit further comprises: an overvoltage protection circuit, connected to the first configuration module and the comparison module, and configured to perform overvoltage protection on the detection voltage; The comparison module is specifically used to compare the detection voltage after overvoltage protection with the reference voltage to output the comparison signal.
9. The comparison circuit according to any one of claims 1 to 7, characterized in that: The comparison circuit further comprises: The control circuit is connected to the comparison module and is used to take corresponding actions according to the comparison signal.
10. An electronic device, characterized in that: The electronic device comprises the comparison circuit according to any one of claims 1 to 9.