Hardware protection circuit
By using a comparator in the hardware protection circuit to quickly determine the sampling and protection voltage signals, the problem of software program judgment delay is solved, and fast circuit protection is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- XIAMEN COSTCO ELECTRONIC IND CO LTD
- Filing Date
- 2024-12-17
- Publication Date
- 2026-04-10
AI Technical Summary
The software program has a delay in judging the sampled signal, which leads to a large delay in the circuit protection of electronic products.
A hardware protection circuit is adopted, using a comparator as an operational amplifier. By comparing the sampled voltage signal and the protection voltage signal, the circuit protection is directly determined at the hardware level, reducing the impact of timing judgments within the software program.
It achieves rapid circuit protection, reduces software program judgment delay, and improves the protection efficiency of electronic products.
Smart Images

Figure CN224110864U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to electronic technical field especially a hardware protection circuit. BACKGROUND
[0002] In some electronic products with software, software program is used to perform overvoltage protection on the whole electronic product, in the process, generally, the signal needing protection is sampled first, and the sampling signal is sent to the software program to determine whether to take protection measures through the software program. SUMMARY
[0003] To solve the above technical problems, the embodiment of the utility model provides a hardware protection circuit.
[0004] The hardware protection circuit provided by the embodiment of the utility model comprises a comparator, and the comparator is an operational amplifier.
[0005] A first pin of the comparator is an inverting input end of the operational amplifier and is electrically connected with a sampling circuit to obtain a sampling voltage signal of the sampling circuit.
[0006] A second pin of the comparator is a noninverting input end of the operational amplifier and is electrically connected with a protection circuit to obtain a protection voltage signal of the protection circuit.
[0007] The comparator compares the sampling voltage signal and the protection voltage signal to obtain a comparison result.
[0008] A third pin of the comparator is an output end of the operational amplifier and is connected with a client of a preset software program to transmit the comparison result to the preset software program to determine whether to trigger circuit protection through the preset software program.
[0009] According to the embodiment of the utility model, the first pin of the comparator is electrically connected with the sampling circuit through a first resistor to obtain the sampling voltage signal of the sampling circuit, and the first pin of the comparator is also connected to a ground end through a capacitor for filtering.
[0010] According to the embodiment of the utility model, the second pin of the comparator is connected with the protection circuit through a preset voltage divider, the voltage divider comprises a second resistor and a third resistor, and the second resistor and the third resistor are in series.
[0011] According to the embodiment of the present application, the third pin of the comparator is connected with the second pin of the comparator through the fourth resistor to form a positive feedback circuit.
[0012] According to the embodiment of the present application, the third pin of the comparator is also connected with the protection circuit through the fifth resistor.
[0013] According to the embodiment of the present application, the third pin of the comparator and the client of the preset software program are also connected with a diode and a sixth resistor, so as to prevent reverse phase current through the diode and realize voltage pull-up through the sixth resistor.
[0014] Based on the technical scheme provided by the above embodiment of the present application, the hardware protection circuit can compare the sampling voltage signal and the protection voltage signal through the comparator to determine whether to trigger the circuit protection, so as to realize the rapid judgment at the hardware level, that is, to judge whether to protect from the outside of the software program, reduce the influence of the internal timing judgment of the software program, shorten the delay when triggering the protection, and trigger the protection more quickly, thereby better realizing the circuit protection of the electronic product.
[0015] The technical scheme of the present application will be further described in detail below by means of the drawings and embodiments. BRIEF DESCRIPTION OF DRAWINGS
[0016] The above and other objects, features and advantages of the present application will become more apparent from the following detailed description of the embodiments of the present application taken in conjunction with the accompanying drawings. The drawings provided in the present application are used to provide further understanding of the embodiments of the present application, and constitute a part of the specification, and are used to explain the present application together with the embodiments of the present application, and do not constitute a limitation of the present application. In the drawings, the same reference numerals generally represent the same components or steps.
[0017] Figure 1 is a circuit structure schematic diagram of a hardware protection circuit provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0018] Hereinafter, exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described herein.
[0019] It should be noted that: the relative arrangement, numerical expression and numerical value of the components and steps set forth in these embodiments do not limit the scope of the present application, unless otherwise specified.
[0020] Those skilled in the art can understand that the terms "first", "second" and the like in the embodiments of the present application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they represent the inevitable logical order between them.
[0021] It should also be understood that in the embodiments of the present application, "multiple" can mean two or more, and "at least one" can mean one, two or more.
[0022] It should also be understood that for any component, data or structure mentioned in the embodiments of the present application, one or more can be understood in general without explicit limitation or in the context of the opposite implications given by the preceding and subsequent texts.
[0023] In addition, the term "and / or" in the present application is only a description of the association relationship between the associated objects, which means that there can be three kinds of relationships, for example, A and / or B, which can represent the existence of A alone, the existence of A and B together, and the existence of B alone. In addition, the character " / " in the present application generally represents an "or" relationship between the front and rear associated objects.
[0024] It should also be understood that the description of the present application for each embodiment emphasizes the differences between each embodiment, and the same or similar parts can be referred to each other, and for the sake of brevity, it will not be repeated.
[0025] At the same time, it should be understood that in order to facilitate description, the size of each part shown in the drawings is not drawn according to the actual proportion relationship.
[0026] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way limiting to the present application and its applications or uses.
[0027] The techniques, methods, and devices known to those of ordinary skill in the relevant art can not be discussed in detail, but in appropriate cases, the techniques, methods, and devices should be considered as part of the specification.
[0028] It should be noted that: similar signs and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further discussed in the subsequent drawings.
[0029] Embodiments of the present application can be applied to terminal devices, computer systems, servers and other electronic devices, and can be operated with many other general-purpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with terminal devices, computer systems, servers and other electronic devices include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the above systems, and the like.
[0030] Terminal devices, computer systems, servers and other electronic devices can be described in the general context of computer system executable instructions, such as program modules, executed by a computer system. Generally, program modules can include routines, programs, objects, components, logic, data structures, and the like, which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, in which tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media, including storage devices.
[0031] In order for those skilled in the art to accurately and clearly understand the technical scheme of the present application, the technical scheme of the present application is described in detail by way of example.
[0032] Figure 1 is a circuit structure schematic diagram of a hardware protection circuit provided by an exemplary embodiment of the present application.
[0033] The hardware protection circuit provided by the present application can be applied to some electronic products with software, and the electronic products are configured with a micro control unit (MCU for short), and the hardware protection circuit of the present application can be connected with the micro control unit of the electronic product. As shown in Figure 1 The hardware protection circuit provided by the present application can include a comparator, wherein the comparator is an operational amplifier, and the hardware protection circuit provided by the present application can further include a resistor, a diode and a capacitor connected with the comparator. Figure 1The first pin (i.e. the pin marked as "2" of the operational amplifier U6A) of the comparator is the inverting input terminal of the operational amplifier, is connected with the sampling circuit (i.e. PV_OVS shown in the figure) to obtain the sampling voltage signal of the sampling circuit, and the second pin (i.e. the pin marked as "3" of the operational amplifier U6A) of the comparator is the non-inverting input terminal of the operational amplifier, is connected with the protection circuit to obtain the protection voltage signal (such as +3.3V_D shown in the figure) of the protection circuit. In the embodiment of the utility model, the operational amplifier is configured as the comparator, the obtained sampling voltage signal and the protection voltage signal are compared to obtain a comparison result, and further, the third pin (i.e. the pin marked as "1" of the operational amplifier U6A) of the comparator is the output terminal of the operational amplifier, is connected with the client of the preset software program to transmit the comparison result to the preset software program to determine whether to trigger the circuit protection through the preset software program.
[0034] That is, the embodiment of the utility model realizes the rapid judgment at the hardware level, that is, whether to protect is judged from the outside of the software program, the influence of the internal timing judgment of the software program is reduced, thereby shortening the delay when triggering protection, and the protection is triggered more quickly, and the circuit protection of the electronic product is better realized.
[0035] As an optional embodiment of the utility model, the first pin (i.e. the pin marked as "2" of the operational amplifier U6A) of the comparator is connected with the sampling circuit through a first resistor (such as the resistor R151 shown in the figure) to obtain the sampling voltage signal of the sampling circuit, and the first pin (i.e. the pin marked as "2" of the operational amplifier U6A) of the comparator can also be connected to the ground end through a capacitor (such as the capacitor C78 shown in the figure) for filtering and eliminating high-frequency noise.
[0036] As an optional embodiment of the utility model, the second pin (i.e. the pin marked as "3" of the operational amplifier U6A) of the comparator is connected with the protection circuit through a preset voltage divider, wherein the voltage divider comprises a second resistor (such as the resistor R111 shown in the figure) and a third resistor (such as the resistor R114 shown in the figure), the second resistor and the third resistor are in series connection, and the +3.3V_D voltage is divided and provided to the second pin (the non-inverting input terminal of the operational amplifier) of the comparator.
[0037] As an optional embodiment of the utility model, the third pin (i.e. the pin marked as "1" of the operational amplifier U6A) of the comparator is connected with the second pin (i.e. the pin marked as "2" of the operational amplifier U6A) of the comparator through a fourth resistor (such as the resistor R179 shown in the figure) to form a positive feedback circuit.
[0038] Further, the third pin of the comparator (i.e. the pin marked as "1" of the operational amplifier U6A) is also connected to the protection circuit through the fifth resistor (resistor R112 as shown in the figure).
[0039] As another optional embodiment of the utility model, on the basis of any embodiment, a diode (diode D33 as shown in the figure) and a sixth resistor (resistor R132 as shown in the figure) are further connected between the third pin of the comparator and the client of the preset software program (for example, connected to the MCU of the client), so as to prevent reverse current through the diode, thereby realizing circuit protection, and the sixth resistor (resistor R132 as shown in the figure) is connected to the +3.3V D power supply, thereby realizing voltage pull-up.
[0040] In order for those skilled in the art to accurately understand the technical scheme of the embodiments of the utility model, the functions of the embodiments of the utility model are described in detail below in combination with the foregoing circuit structure.
[0041] Exemplarily, the hardware protection short circuit of the embodiments of the utility model can include the following components: an operational amplifier (U6A), wherein the No. 2 pin of the operational amplifier is an inverting input end, the No. 3 pin is a non-inverting input end, and the No. 1 pin is an output end; resistors R151, R111, R114, R179, R112, R132 and a capacitor C78; a power supply: +3.3V_D, providing a 3.3V reference voltage; a diode D33.
[0042] Based on the above components, the circuit working principle of the hardware protection circuit provided by the embodiments of the utility model is as follows:
[0043] The sampling voltage signal (PV_OVS) enters the inverting input end (No. 2 pin) of the operational amplifier through the resistor R151; at the same time, the capacitor C78 is connected to the ground end for filtering and eliminating high-frequency noise.
[0044] The feedback network of the operational amplifier: the resistors R111 and R114 constitute a voltage divider, which divides the +3.3V_D voltage and provides it to the non-inverting input end (No. 3 pin) of the operational amplifier; the resistor R179 is connected to the output end (No. 1 pin) and the non-inverting input end (No. 3 pin) of the operational amplifier, forming a positive feedback network.
[0045] The output signal (PV_OVP): the output signal of the operational amplifier is directly output to PV_OVP; the diode D33 is used for circuit protection to prevent reverse current, and the resistor R132 is connected to the +3.3V_D power supply to provide a pull-up resistor, thereby ensuring that the PV_OVP output signal remains at a high level when the circuit protection is not triggered.
[0046] Exemplarily, taking the PV voltage overvoltage protection circuit as an example, wherein,Figure 1 PV_OVS is a PV sampling voltage signal, which is proportional to the input voltage PV, the operational amplifier U6A is configured as a comparator, and the 3.3V_D voltage is a reference voltage provided by the auxiliary circuit during normal operation. As an optional embodiment, when the circuit protection is not triggered, the 3-pin voltage of the operational amplifier is the 2-pin voltage is U2=U PV_OVS At this time, U2<U3, the comparator (1-pin of the operational amplifier) outputs a high level, and the voltage at the Break position in the figure is a positive voltage. Inputting the positive voltage into the client (for example, the MCU thereof) of the preset software program, the client of the preset software program judges that the circuit protection is not triggered according to the voltage. As another optional embodiment, when the circuit protection is triggered, U2>U3, the comparator (1-pin of the operational amplifier) outputs a low level (for example, 0V), at this time, the output end (1-pin of the operational amplifier) of the comparator is considered to be grounded, the voltage at the Break position in the figure is pulled down to a low level, and the client of the preset software program judges that the protection is triggered according to the voltage, and then takes the circuit protection measure.
[0047] In the embodiment of the utility model, when the circuit protection is triggered, the voltage value connected to the 3-pin of the operational amplifier changes, and the voltage value is lower than the original protection voltage signal, and then the voltage value is set as a recovery voltage (recovery point). If the operational amplifier detects that the sampling voltage signal is recovered to be lower than the protection voltage signal, the 1-pin (output port of the comparator) of the operational amplifier will generate a positive voltage, and the client (for example, the MCU thereof) of the preset software program detects the high voltage signal, and then controls the circuit to recover through the software program.
[0048] For example, the resistance voltage division relationship changes, and the 3-pin voltage of the operational amplifier changes to Comparing U3 and U'3, U3>U'3 can be obtained, and therefore, when the circuit protection is triggered, the 2-pin voltage of the operational amplifier needs a lower voltage than before triggering to achieve U2<U'3, so that the circuit recovers from the protection, thereby achieving the back difference in the protection circuit. After recovering from the protection process, the voltage of the 2-pin of the operational amplifier is lower than the voltage of the 3-pin of the operational amplifier, the output end (1-pin of the operational amplifier) of the comparator outputs a high level, thereby changing the resistance voltage division relationship, recovering to the initial state, and protecting and recovering the circuit.
[0049] In conclusion, the embodiment of the utility model realizes the quick judgment in the hardware level, that is, judges whether to protect from the outside of the software program, reduces the influence of the internal timing judgment of the software program, thereby shortens the delay when triggering the protection, thereby triggers the protection more quickly, better realizes the circuit protection of electronic product, and the circuit design is simple, and the cost is low.
[0050] The basic principle of the utility model is described above in combination with specific embodiments, however, it should be pointed out that the advantages, advantages, effects and the like mentioned in the utility model are only examples and not limitations, and these advantages, advantages, effects and the like cannot be considered as the must-haves of each embodiment of the utility model.
[0051] Each embodiment in the specification adopts a progressive manner, and each embodiment mainly explains the difference from other embodiments, and the same or similar parts of each embodiment can be mutually referred to.
[0052] The block diagram of the device, apparatus, equipment and system involved in the utility model is only an illustrative example and is not intended to require or imply that the connection, arrangement and configuration must be as shown in the block diagram. As those skilled in the art will recognize, these devices, apparatuses, equipment and systems can be connected, arranged and configured in any manner. Words such as "include", "contain", "have" and the like are open-ended words, which mean "include but not limited to", and can be used interchangeably. The words "or" and "and" used herein mean the word "and / or", and can be used interchangeably unless the context clearly indicates otherwise. The word "such as" used herein means the phrase "such as but not limited to", and can be used interchangeably.
[0053] The method and device of the utility model can be implemented in many ways. For example, the method and device of the utility model can be implemented by software, hardware, firmware or any combination of software, hardware and firmware. The above order of steps for the method is only for illustration, and the steps of the method of the utility model are not limited to the above specifically described order, unless specifically described otherwise. In addition, in some embodiments, the utility model can also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the utility model. Therefore, the utility model also covers the recording medium for storing the program for executing the method according to the utility model.
[0054] It should also be noted that the various components or steps in the devices, apparatuses and methods of the present application can be combined or integrated in various ways. Such combinations and integrations should be viewed in terms of their functionality under the claims and equivalence thereof and would not necessitate mutual physical or procedural combinations of parts.
[0055] The above description of the disclosed aspects is given to enable any person skilled in the art to make or use the application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein can be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0056] The above description has been given for the purposes of illustration and description. Furthermore, this description does not purport to be exhaustive or limit the application to the forms disclosed. Although a few example aspects and embodiments have been discussed, various modifications, substitutions, changes, additions and equivalents will be apparent to those skilled in the art from the foregoing description.
Claims
1. A hardware protection circuit, characterized by, The hardware protection circuit comprises a comparator, and the comparator is an operational amplifier; a first pin of the comparator is an inverting input terminal of the operational amplifier, and is electrically connected with a sampling circuit to obtain a sampling voltage signal of the sampling circuit; a second pin of the comparator is a non-inverting input terminal of the operational amplifier, and is electrically connected with a protection circuit to obtain a protection voltage signal of the protection circuit; the comparator compares the sampling voltage signal and the protection voltage signal to obtain a comparison result; a third pin of the comparator is an output terminal of the operational amplifier, and is connected with a client of a preset software program to transmit the comparison result to the preset software program to determine whether to trigger a circuit protection through the preset software program; the first pin of the comparator is electrically connected with the sampling circuit through a first resistor to obtain the sampling voltage signal of the sampling circuit, and the first pin of the comparator is also connected to a ground terminal through a capacitor for filtering; the second pin of the comparator is connected with the protection circuit through a preset voltage divider, and the voltage divider comprises a second resistor and a third resistor, and the second resistor and the third resistor are in series connection; the third pin of the comparator is connected with the second pin of the comparator through a fourth resistor to form a positive feedback circuit.
2. The hardware protection circuit of claim 1, wherein, The third pin of the comparator is also connected with the protection circuit through a fifth resistor.
3. A hardware protection circuit according to claim 1 or 2, characterized in that The third pin of the comparator and the client of the preset software program are further connected with a diode and a sixth resistor to prevent inverse phase current through the diode and to realize voltage pull-up through the sixth resistor.