Latch circuit and judgment method of low level fault signal

By combining the AND gate module and the OR gate module and combining the resistance, the existing fault latch circuit structure is solved and the accuracy of the output signal is poor, and the accurate latch and clearing of low-level fault signals is achieved, which simplifies the circuit structure And reduce costs.

CN112953508BActive Publication Date: 2024-11-01LEADRIVE TECH (SHANGHAI) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110345130.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-31
Publication Date
2024-11-01
Estimated Expiration
2041-03-31

AI Technical Summary

Technical Problem

The existing fault latch circuit has a complex structure and poor output signal accuracy. It is impossible to effectively latch low-level fault signals, and it is costly.

Method used

The AND gate module and the OR gate module are combined with a pull-down resistor and a pull-up resistor to latch the fault signal and clear the fault latch signal through the reset signal.

Benefits of technology

The circuit structure is simplified, the cost is reduced, and the accurate latch and clearance of low-level fault signals is achieved, the number of devices is small, and the signal relationship is clear.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112953508B_ABST
    Figure CN112953508B_ABST
Patent Text Reader

Abstract

The latch circuit of the low-level fault signal of the present invention belongs to the technical field of latch circuits, and solves the technical problem that the circuit of the prior art realizes the latch function with a complex structure and poor output signal accuracy. It includes: an AND gate module and an OR gate module, wherein: the output end of the fault signal circuit is connected to the first input end of the AND gate module, and the output end of the reset signal circuit is connected to the first input end of the OR gate module; the output end of the AND gate module is connected to the second input end of the OR gate module, and the output end of the OR gate module is respectively connected to the second input end of the AND gate module and the input end of the fault latch signal circuit; the output end of the reset signal circuit is connected to a first resistor; and the input end of the fault latch signal circuit is connected to a second resistor. The present invention is used to improve the function of the latch circuit and meet people's requirements for simple design and low cost of low-level fault signal latch circuits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of latch circuits, and in particular relates to a latch circuit and a judgment method for a low-level fault signal. Background Art

[0002] The fault latch circuit is a circuit that holds the fault signal when a fault occurs in the circuit. This prevents the failure to detect the fault due to the disappearance of the input low-level signal, or the system disorder caused by the frequent switching of the input signal between high and low levels.

[0003] The inventor of this case found that the existing product method has at least the following defects:

[0004] Prior art document CN109167596A discloses a fault latch circuit composed of a NAND gate and a triode. The circuit structure is relatively complex, and the fault output signal is in a suspended state. In particular, when the input signal is uncertain, the output signal state cannot be determined.

[0005] The prior art document CN205092846U discloses a fault latch circuit composed of MOSFET, equipped with a fault clearing signal. The disadvantages of this circuit are that the number of components is large, the structure is complex, the cost is high, and the economy is low;

[0006] Prior art document CN205336252U discloses a fault latch circuit composed of a NOR gate and a NOT gate, but the circuit can only adjust the time of fault signal output through the time constant of the RC circuit, cannot achieve true "latch", cannot actively control the reset signal of the fault signal, has high cost and low functionality.

[0007] In view of this, the present invention is proposed. Summary of the invention

[0008] The purpose of the present invention is to provide a latch circuit for a low-level fault signal, which solves the technical problem that the circuit in the prior art has a complex structure for implementing the latch function and has poor output signal accuracy. The technical solution of this case has many technical benefits, as described below:

[0009] On the one hand, the present invention provides a latch circuit for a low-level fault signal, including: an AND gate module and an OR gate module, wherein:

[0010] The output end of the fault signal circuit is connected to the first input end of the AND gate module, and the output end of the reset signal circuit is connected to the first input end of the OR gate module;

[0011] The output end of the AND gate module is connected to the second input end of the OR gate module, and the output end of the OR gate module is respectively connected to the second input end of the AND gate module and the input end of the fault latch signal circuit;

[0012] The output end of the reset signal circuit is connected to a first resistor; the input end of the fault latch signal circuit is connected to a second resistor.

[0013] In a preferred or optional implementation, the AND gate module includes a plurality of first input terminals and is respectively connected to output terminals of a plurality of fault signal circuits.

[0014] In a preferred or optional implementation, the first resistor is a pull-down resistor R3, one end of which is grounded, and the other end is connected to the output end of the reset signal circuit.

[0015] In a preferred or optional implementation, the second resistor is a pull-up resistor R4, one end of which is connected to a power supply, and the other end is connected to an input end of the fault latch signal circuit.

[0016] On the other hand, a method for latch circuit judgment of a low level fault signal, using a latch circuit as described in part or in whole above, the method comprising:

[0017] Obtain a fault signal, a reset signal, an input signal of the gate module, an output signal of the OR gate module, and a fault latch signal, and determine to latch the fault signal of the circuit.

[0018] In a preferred or optional embodiment, in the initial state, if the input fault signal is high level, the AND gate module outputs high level, and the OR gate module outputs high level, and it is determined whether the fault latch signal remains high level within a preset time. If so, the initial state of the circuit is normal, if not, the feedback circuit is damaged signal.

[0019] In a preferred or optional embodiment, the acquired fault signal is converted from a high level to a low level, and the reset signal is a low level, and it is determined whether the fault latch signal continues to be a low level. If so, there is a fault latch signal, and if not, the feedback circuit is damaged.

[0020] The acquired fault signal is converted from low level to high level, and the reset signal is low level, and it is determined whether the fault latch signal is low level. If so, the fault latch circuit has latched the fault signal. If not, the feedback circuit damages the signal.

[0021] In a preferred or optional implementation, the acquired fault signal is high level, and the reset signal is low level, and it is determined whether the fault latch circuit outputs a high level. If so, there is no fault latch signal; if not, the feedback circuit is damaged.

[0022] When the acquired fault signal is at a low level and the reset signal is at a low level, it is determined whether the output of the fault latch circuit is at a low level. If so, it indicates that there is a fault latch signal. If not, the feedback circuit is damaged.

[0023] In a preferred or optional embodiment, the acquired fault signal is a low level or a high level, and the reset signal is a high level, and it is determined whether the fault latch circuit outputs a high level. If so, it indicates that the fault latch signal is cleared and a clearing signal is fed back. If not, a circuit damage signal is fed back.

[0024] The beneficial effects of the invention are at least as follows:

[0025] In the latch circuit of this case, an OR gate, an AND gate and two resistors are used to realize the latching of the fault signal. The number of devices is very small, the structure is simple, the signal relationship between input and output is clear, and the fault latch signal can be cleared by a reset signal, which not only ensures the latching of the fault signal, but also greatly simplifies the circuit structure and reduces the circuit cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 The latch circuit diagram of the present invention;

[0028] Figure 2 A circuit diagram of an AND gate module in a latch circuit of the present invention;

[0029] Figure 3 A circuit diagram of an OR gate module in a latch circuit of the present invention. DETAILED DESCRIPTION

[0030] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.

[0031] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present invention, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.

[0032] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention. The drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0033] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that aspects can be practiced without these specific details. In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise stated, "multiple" means two or more.

[0034] like Figure 1 The latch circuit of the low-level fault signal shown includes: an AND gate module and an OR gate module, wherein:

[0035] The output end of the fault signal circuit is connected to the first input end of the AND gate module, and the output end of the reset signal circuit is connected to the first input end of the OR gate module;

[0036] The output end of the AND gate module is connected to the second input end of the OR gate module, and the output end of the OR gate module is respectively connected to the second input end of the AND gate module and the input end of the fault latch signal circuit;

[0037] The output end of the reset signal circuit is connected to the first resistor; the input end of the fault latch signal circuit is connected to the second resistor, wherein: the first resistor is a pull-down resistor R3, one end of which is grounded, and the other end is connected to the output end of the reset signal circuit; the second resistor is a pull-up resistor R4, one end of which is connected to the power supply, and the other end is connected to the input end of the fault latch signal circuit.

[0038] The function of the pull-up resistor is to connect an uncertain signal (such as high or low level) to the power supply VCC through a resistor. The pull-up resistor can increase the current and fix the signal at a high level. Pull-down resistor: connect an uncertain signal (high or low level) to the ground GND through a resistor. The pull-down resistor is used to absorb current, fix the signal at a low level, and prevent the reset signal from being in an uncontrollable state during the initialization phase. Both are suitable for a certain range, and different models can meet different ranges. The overall value is determined according to the system design requirements.

[0039] The circuit structure can be applied to the latch circuit of the low-level effective fault signal, and can realize the latch of the fault signal. The device rarely uses the combination of AND gate module and OR gate module, and does not use the NOT gate module. The overall design structure is simple, and the input and output signal relationship is clear. The low-level effective fault signal latch circuit only uses one OR gate, one AND gate and two resistors to realize the latch of the fault signal, and the fault latch signal can be cleared by the reset signal, which not only ensures the latch of the fault signal, but also greatly simplifies the circuit structure and reduces the circuit cost.

[0040] Secondly, one input end of the AND gate module is the output end of the OR gate, that is, it can be understood as a closed-loop circuit. As a feedback loop, it can continuously output and ensure the stability of the latch signal.

[0041] Furthermore, the AND gate module can be provided with a plurality of first input terminals, which are respectively connected to the plurality of output terminals of the fault signal circuit. The plurality of first input terminals can input a plurality of different signals, such as a plurality of high levels and a plurality of low levels. The AND gate module performs an AND gate judgment and then outputs the signal, thereby increasing its functionality.

[0042] The AND gate module can adopt any AND gate circuit in the prior art, or the AND gate circuit provided in this case. Figure 2 The AND gate circuit shown has a simple structure and low cost, specifically:

[0043] It is composed of diodes VD1 and VD2, R1 and R2. The output end of R1 is connected to the anode of diode VD1, the input end of R2 is connected to the anode of diode VD2, the input end of R1 is connected to a 5V power supply, and the output end of R2 is grounded. A and B are the input ends of the AND gate module, and Y is the output end, which is output to the OR gate module. The +5V voltage is divided by R1 and R2 to obtain a 3V voltage at point E.

[0044] Working principle of OR gate circuit: When low level (0V) is input to both ends of AB at the same time, since the voltage at point E is 3V, diodes VD1 and VD2 are both turned on, and the voltage at point E immediately drops to 0.7V (low level). That is, when low level "0" is input to both ends of AB, the Y end outputs low level "0";

[0045] When the input of A terminal is low level (0V) and the input of B terminal is high level (5V), since the voltage of point E is 3V, the diode VD1 is immediately turned on and the voltage of point E drops to 0.7V. At this time, the voltage of the positive terminal of VD2 is 0.7V and the voltage of the negative terminal is 5V. VD2 is in the cut-off state, that is, when the input of A terminal is low level "0" and the input of B terminal is high level "1", the output of Y terminal is low level "0";

[0046] When the input of A terminal is high level (5V) and the input of B terminal is low level (0V), VD1 is cut off, VD2 is turned on, and the voltage of point E is 0.7V (low level). That is, when the input of A terminal is high level "1" and the input of B terminal is low level "0", the output of Y terminal is low level "0";

[0047] When high level (5V) is input to AB terminals at the same time, VD1 and VD2 cannot be turned on, and the voltage at point E is 3V (high level). That is, when high level "1" is input to A and BR terminals, the Y terminal outputs "1".

[0048] Only when high level is input to AB terminal at the same time, high level will appear at Y terminal.

[0049] OR gate module, such as Figure 3 As shown,

[0050] There are also four situations for the relationship between input and output voltage: (the conduction voltage of the diode is 0.7V)

[0051] ①When Uy=Uz=Ov, VD3 and VD4 are turned on due to forward bias, and Uf=(0-0.7)=-0.7V;

[0052] ②When Uf=0V, Uz=3v, VD2 is turned on, VD1 is reverse biased and cut off, Uf=(3-0.7)=2.37;

[0053] ③When Uy=3V、Uz=0v, VD1 is on, VD2 is reverse biased and cut off, Uf=(3-0.7)=2.3V;

[0054] ④When Uy=Uz=3V, VD1 and VD2 are both partially turned on, and Uf=(3-0.7)=2.3V.

[0055] That is, if only one of the inputs is high level, Uf outputs high level.

[0056] In the above, the output of the OR gate is connected to the input of the AND gate to form a closed-loop judgment logic, that is, a feedback loop, which ensures output stability and realizes the latching of the fault signal, and the fault latch signal can be cleared by the reset signal.

[0057] When used, the fault signal is a low-level valid signal, and the reset signal is a high-level valid signal.

[0058] When the fault signal is high and the reset signal is low, the fault latch circuit outputs a high level, indicating that there is no fault latch signal;

[0059] When the fault signal is at a low level and the reset signal is at a low level, the fault latch circuit outputs a low level, representing a fault latch signal;

[0060] When the fault signal is at a low level or a high level and the reset signal is at a high level, the fault latch circuit outputs a high level, indicating that the fault latch signal is cleared.

[0061] Furthermore, when the reset signal is at a low level and the fault signal jumps from a low level to a high level, the latch circuit outputs a low level, indicating that the fault signal is latched.

[0062] On the other hand, a method for determining a latch circuit of a low-level fault signal is provided, using part or all of the latch circuits described above, the method comprising:

[0063] Obtain a fault signal, a reset signal, an AND gate module input and input signal, an OR gate module output signal and a fault latch signal, and determine to latch the circuit fault signal.

[0064] Initially judge whether the circuit is normal. In the initial state, if the input fault signal is high level, the AND gate module outputs high level, and the OR gate module outputs high level, and judge whether the fault latch signal remains high level within the preset time. If so, the initial state of the circuit is normal. If not, the circuit damage signal is fed back. Specifically:

[0065] In the initial state, the fault signal input is high level, the reset signal is connected to the ground by the pull-down resistor R3, and the reset signal input is low level. The fault latch signal is connected to the power supply by the pull-up resistor R4, and the fault latch signal is high level. Therefore, the AND gate U1 outputs high level, the OR gate U2 outputs high level, and the fault latch signal remains at a high level.

[0066] When working, the acquired fault signal is converted from high level to low level, and the reset signal is low level, and it is judged whether the fault latch signal is continuously at low level. If so, there is a fault latch signal, if not, the feedback circuit is damaged signal;

[0067] Specifically, the AND gate U1 outputs a low level, and the OR gate U2 outputs a low level, and the fault latch signal outputs a low level. Through the feedback loop, the second input terminal of the AND gate U1 becomes a low level. Therefore, the AND gate U1 continuously outputs a low level, the first input terminal and the second output terminal of the OR gate U2 are both low levels, and the output of the OR gate U2 is always a low level, thereby realizing the latching of the fault signal.

[0068] The acquired fault signal is converted from low level to high level, and the reset signal is at low level, and it is determined whether the fault latch signal is at low level. If so, the fault latch circuit has latched the fault signal. If not, the feedback circuit damages the signal.

[0069] Specifically, the second input terminal of the AND gate U1 inputs a low level, and the output terminal of the gate U1 is a low level. Therefore, the first input terminal and the second output terminal of the OR gate U2 are both low levels, and the output of the OR gate U2 is a low level. The second input terminal of the AND gate U1 is a low level, forming a closed-loop logic judgment, and then the two input terminals of the OR gate U2 are both low levels, and then the output terminal of the OR gate U2 continuously outputs a low level, that is, the fault latch signal is a low level, and the fault latch circuit realizes the latching of the fault signal.

[0070] The acquired fault signal is high level, and the reset signal is low level, and it is determined whether the fault latch circuit outputs high level. If yes, there is no fault latch signal, if not, the feedback circuit is damaged, and it needs to be replaced or repaired. Similarly, if the output end of gate U1 is low level, or the output end of gate U2 outputs low level, latching is realized, that is, there is no fault latch signal.

[0071] When the acquired fault signal is at a low level and the reset signal is at a low level, it is determined whether the output of the fault latch circuit is at a low level. If so, it indicates that there is a fault latch signal. If not, the feedback circuit is damaged.

[0072] When the fault signal is converted from high level to low level and the reset signal is low level, the AND gate U1 outputs a low level, the OR gate U2 outputs a low level, and the fault latch signal outputs a low level. Through the feedback loop, the second input terminal of the AND gate U1 becomes a low level. Therefore, the output terminal of the AND gate U1 always outputs a low level, and the two inputs of the OR gate U2 are both low levels. The output of the OR gate U2 is always a low level, and there is a fault latch signal.

[0073] The acquired fault signal is low level or high level, and the reset signal is high level. It is determined whether the fault latch circuit outputs a high level. If so, it means that the fault latch signal is cleared and a clearing signal is fed back. If not, a circuit damage signal is fed back. Specifically:

[0074] The signal at the first input terminal of the OR gate U2 is always at a high level, and its output signal is always at a high level, so that the fault latch signal can be cleared and reset.

[0075] The above is a detailed introduction to the product provided by the present invention. Specific examples are used in this article to illustrate the principle and implementation method of the present invention. The description of the above embodiments is only used to help understand the core idea of ​​the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of invention, several improvements and modifications can be made to the invention, and these improvements and modifications also fall within the scope of protection of the invention claims.

Claims

1. A latch circuit for a low level fault signal, characterized in that: include: AND gate module and OR gate module, where: The output end of the fault signal circuit is connected to the first input end of the AND gate module, and the output end of the reset signal circuit is connected to the first input end of the OR gate module; The output end of the AND gate module is connected to the second input end of the OR gate module, and the output end of the OR gate module is respectively connected to the second input end of the AND gate module and the input end of the fault latch signal circuit; The output terminal of the reset signal circuit is connected to a first resistor; the input terminal of the fault latch signal circuit is connected to a second resistor; The first resistor is a pull-down resistor R3, one end of which is grounded and the other end is connected to the output end of the reset signal circuit; The second resistor is a pull-up resistor R4, one end of which is connected to a power supply, and the other end is connected to the input end of the fault latch signal circuit.

2. The latch circuit according to claim 1, characterized in that: The AND gate module includes a plurality of first input terminals and is respectively connected to the output terminals of a plurality of fault signal circuits.

3. A method for determining a latch circuit of a low-level fault signal, characterized in that: Using the latch circuit according to any one of claims 1 to 2, the method comprises: Obtain a fault signal, a reset signal, an input signal of the gate module, an output signal of the OR gate module, and a fault latch signal, and determine to latch the fault signal of the circuit.

4. The method for determining a latch circuit of a low level fault signal according to claim 3, characterized in that: In the initial state, if the input fault signal is high level, the AND gate module outputs high level, and the OR gate module outputs high level, and determines whether the fault latch signal remains high level within the preset time. If so, the initial state of the circuit is normal, if not, the feedback circuit is damaged signal.

5. The method for determining a latch circuit of a low level fault signal according to claim 3, characterized in that: The acquired fault signal is converted from high level to low level, and the reset signal is low level, and it is judged whether the fault latch signal is continuously at low level. If so, there is a fault latch signal, if not, the feedback circuit is damaged signal; The acquired fault signal is converted from low level to high level, and the reset signal is low level, and it is determined whether the fault latch signal is low level. If so, the fault latch circuit has latched the fault signal. If not, the feedback circuit damages the signal.

6. The method for determining a latch circuit of a low level fault signal according to claim 3, characterized in that: The acquired fault signal is high level, and the reset signal is low level, and it is determined whether the fault latch circuit outputs a high level. If so, there is no fault latch signal, and if not, the feedback circuit is damaged signal; When the acquired fault signal is at a low level and the reset signal is at a low level, it is determined whether the output of the fault latch circuit is at a low level. If so, it indicates that there is a fault latch signal. If not, the feedback circuit is damaged.

7. The method for determining a latch circuit of a low-level fault signal according to claim 3, characterized in that: The acquired fault signal is low level or high level, and the reset signal is high level, and it is judged whether the fault latch circuit outputs a high level. If so, it means that the fault latch signal is cleared and the feedback clear signal is fed back. If not, the feedback circuit is damaged. It indicates that the fault latch signal is cleared and the feedback clear signal is fed back. If not, the feedback circuit is damaged.