Latch circuit and latch system
By using the flip-flop chip and the central processor in the latch circuit to control the initial invalid state of the latch output enable end, ensuring that it is in a valid state after the initial power-on, the problem of the latch's initial power-on output being uncontrollable is solved. , achieving controllability of the latch output level.
Patent Information
- Application Number
- CN202311375991.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-10-20
AI Technical Summary
The output state of the latch is uncontrollable when initially powered on, causing problems during application.
Design a latch circuit. By connecting the output end of the flip-flop chip to the output enable end of the latch chip, it makes it in an inactive state when it is initially powered on, and makes it in its effective state after the power on is completed. The processor and voltage monitoring chip control the output of the flip-flop chip to ensure that the latch output enable is in an inactive state during initial power-on and becomes effective after the power-on is stable.
It realizes that the latch output state is at a controllable level during initial power-on, ensuring that the output state is a certain value after the initial power-on is completed, and solves the problem that the latch output is uncontrollable at initial power-on.
Smart Images

Figure CN117544160B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of circuit technology, and in particular to a latch circuit and a latch system. Background Art
[0002] A latch is a storage unit that is sensitive to pulse levels. Its output state is updated according to the input state only when the latch enable is valid, and when the latch enable is invalid, it maintains the output state when the latch enable was valid at the last moment. This feature enables the latch to latch the input level and maintain this state level output without following the state changes of the input terminal in real time. The latch is controlled to change the latched level only when necessary, and then output.
[0003] However, at the initial power-on, the output state value of the latch is unknown and uncontrollable due to the characteristics of the circuit components and the limitations of the power supply stability. This will cause problems in the application process for those applications that have strict requirements on the initial power-on output state.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a latch circuit and a latch system in view of the above-mentioned defects of the prior art, aiming to solve the problem in the prior art that the latch output state of the latch is uncontrollable when the latch is initially powered on.
[0006] The technical solution adopted by the present invention to solve the technical problem is as follows: a latch circuit is provided, the latch circuit comprising: a latch chip and a trigger chip connected to the latch chip; the output enable terminal of the latch chip is connected to an output terminal of the trigger chip, which is used to make the output enable terminal of the latch chip in an invalid state during the initial power-on process, and is also used to make the output enable terminal of the latch chip in a valid state after the initial power-on is completed.
[0007] According to a further configuration of the present invention, the latch circuit further includes: a central processing unit connected to the latch chip and the trigger chip respectively.
[0008] According to a further configuration of the present invention, the latch circuit further includes: a first resistor, one end of the first resistor is configured to be connected to the output end of the latch.
[0009] According to a further configuration of the present invention, a clock terminal of the trigger chip is grounded.
[0010] According to a further configuration of the present invention, the latch circuit also includes: a voltage monitoring chip connected to the trigger chip; the output end of the voltage monitoring chip is connected to the clear end of the trigger chip, and an input end of the voltage monitoring chip is connected to the power supply voltage; during the initial power-on process, the output end of the voltage monitoring chip outputs a first level signal to the clear end of the trigger chip; after the initial power-on is completed, the output end of the voltage monitoring chip outputs a second level signal to the clear end of the trigger chip.
[0011] According to a further configuration of the present invention, the latch circuit also includes: a voltage monitoring chip connected to the trigger chip; the output end of the voltage monitoring chip is connected to the preset end of the trigger chip, and an input end of the voltage monitoring chip is connected to the power supply voltage; during the initial power-on process, the output end of the voltage monitoring chip outputs a first level signal to the preset end of the trigger chip; after the initial power-on is completed, the output end of the voltage monitoring chip outputs a second level signal to the preset end of the trigger chip.
[0012] According to a further configuration of the present invention, the first output terminal of the central processing unit is connected to the latch enable terminal of the latch chip, so as to write data to the latch enable terminal of the trigger chip; the second output terminal of the central processing unit is connected to the data input terminal of the latch chip, so as to write data to the data input terminal of the trigger chip; the third output terminal of the central processing unit is connected to the preset terminal of the trigger chip, so as to write data to the preset terminal of the trigger chip.
[0013] According to a further configuration of the present invention, the first output terminal of the central processing unit is connected to the latch enable terminal of the latch chip, so as to write data to the latch enable terminal of the trigger chip; the second output terminal of the central processing unit is connected to the data input terminal of the latch chip, so as to write data to the data input terminal of the trigger chip; the third output terminal of the central processing unit is connected to the clear terminal of the trigger chip, so as to write data to the clear terminal of the trigger chip.
[0014] According to a further configuration of the present invention, the trigger chip is an edge trigger chip.
[0015] Based on the same inventive concept, the present invention also provides a latch system, which includes one or more latch circuits.
[0016] Beneficial effect: The present invention discloses a latch circuit and a latch system. The latch circuit comprises: a latch chip and a trigger chip connected to the latch chip; the output enable end of the latch chip is connected to an output end of the trigger chip, which is used to make the output enable end of the latch chip in an invalid state during the initial power-on process, and also used to make the output enable end of the latch chip in a valid state after the initial power-on ends. The present invention allows an output end of the trigger chip to control the output enable end of the latch chip to be in an invalid state during the initial power-on process of the system, that is, to turn off the output enable of the latch chip; and after the initial power-on ends, first control the latch enable end and the data input end of the latch chip to make its internal latch value a known value, and then allow an output end of the trigger chip to control the output enable end of the latch chip to be in a valid state, that is, to turn on the output enable of the latch chip, thereby obtaining a known and determined latch output state value, and finally achieving the effect that the output level of the latch chip during the initial power-on process is controllable. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the circuit structure of a latch circuit provided in an embodiment of the present invention.
[0018] Figure 2 for Figure 1 Truth table of the flip-flop chip.
[0019] Figure 3 for Figure 1 Timing diagram of the power-on process of the latch circuit described in .
[0020] Figure 4 for Figure 1 Schematic diagram of the circuit structure when the output end of the latch chip in the latch circuit described in is pulled down.
[0021] Figure 5 for Figure 4 Timing diagram of the power-on process of the latch circuit described in .
[0022] Figure 6 for Figure 1 A schematic diagram of the circuit structure when the trigger chip in the latch circuit described in the embodiment is connected to the latch chip through the Q terminal.
[0023] Figure 7 A schematic diagram of the circuit structure when the output end of the voltage monitoring chip in the latch circuit provided by an embodiment of the present invention is connected to the preset end of the trigger chip.
[0024] Figure 8 for Figure 7 The trigger chip in the latch circuit described in Schematic diagram of circuit structure when the terminal is connected to the latch chip
[0025] Explanation of reference numerals: U1, latch chip; U2, trigger chip; U3, voltage monitoring chip; U4, central processing unit; R1, first resistor; N, inverter. DETAILED DESCRIPTION
[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] In the following description, "some embodiments" are mentioned, which describe a subset of all possible embodiments, but it is understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict. In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0028] A latch is a memory, a storage unit that is sensitive to pulse levels. Its output state is updated according to the input state only when the latch enable is valid, and when the latch enable is invalid, it maintains the output state when the latch enable was valid at the last moment. This feature enables the latch to latch the input level and maintain this state level output without following the state change of the input terminal in real time. The latch is controlled to change the latched level only when necessary, and then output.
[0029] However, the uncontrollable initial power-on output state of the latch is a potential problem, especially for applications that have requirements for the initial power-on output state, this is a fatal problem. In order to solve this problem, the prior art introduces a solution, that is, adding a cache channel after the latch output. The function of this cache channel is equivalent to connecting an output switch or output enable in series. In the design, the output enable can be in an invalid state at the initial power-on. At this time, the latch output level is determined by the external resistor pull-up or pull-down. After the power-on process is completed, the state of the latch is controllable, and then the output enable is turned on to obtain the desired output state value.
[0030] There are two key points in the application of this technology. First, it is necessary to ensure that the output enable of the latch is invalid and stable during the initial power-on process. Second, after the initial power-on is completed, it is necessary to be able to control the change of the output enable signal so that it changes from invalid to valid and stable. In actual design, for applications with a main control chip (such as a single-chip microcomputer, MCU), these two key points are relatively easy to implement. The main control chip can be used to control the output enable signal, and components such as pull-up / down resistors can be used to ensure that the output enable is invalid and stable during the initial power-on, and the output enable is controlled to be valid after the initial power-on is completed. However, not all designs have a main control chip. For those who do not have a main control chip and want to achieve controllable latch output status, other solutions need to be adopted.
[0031] Based on the above technical problem, the present invention provides a latch circuit and a latch system.
[0032] Please refer to the following Figure 1-Figure 8 , to illustrate a latch circuit and a latch system provided by an embodiment of the present invention.
[0033] like Figure 1 As shown, the latch circuit includes: a latch chip U1 and a trigger chip U2 connected to the latch chip U1; an output enable terminal of the latch chip U1 is connected to an output terminal of the trigger chip U2, and is used to enable the output enable terminal of the latch chip U1 It is in an invalid state during the initial power-on process and is also used to enable the output enable terminal of the latch chip U1. After the initial power-on is completed, the state is valid. In this embodiment, the power supply voltage is 5V for illustration.
[0034] In the embodiments of the present invention, "initial power-on" refers to the moment or process when a circuit or device is just powered on. It represents the transition of the circuit or device from a no-power state to a stable powered state. Figure 3 and Figure 5 As shown in the figure, the process starts from t1 when the power is connected to t2 when the initial power-on ends and the system enters a stable power-on state.
[0035] In this way, the output enable terminal of the latch chip U1 Connected to an output end of the trigger chip U2, by controlling an output end of the trigger chip U2 to output a stable level signal when the latch circuit is initially powered on, the output enable end OC of the latch chip U1 connected to an output end of the trigger chip U2 is always in an invalid state when initially powered on, so as to turn off the latch output of the latch chip U1. In this way, an output end of the trigger chip U2 can control the output enable of the latch chip U1 to be invalid, so as to turn off the output of the latch chip U1. In this embodiment, the output enable end OC of the latch chip U1 is connected to an output end of the trigger chip U2 to output a stable level signal when the latch circuit is initially powered on, so as to turn off the latch output of the latch chip U1. When it is a high level, the output enable of the latch chip U1 is in an invalid state for explanation.
[0036] After the initial power-on is completed, the latch enable terminal LE and the data input terminal Dn of the latch chip U1 are first controlled to make its internal latch value a known value, and then the output enable terminal of the latch chip U1 is controlled. In the effective state, the latch chip U1 can control the output normally. In this embodiment, the output enable terminal of the latch chip U1 is When it is low level, the output enable of the latch chip U1 is in a valid state. In this way, at the initial power-on, the trigger chip U2 always outputs a fixed level signal to ensure that the output enable of the latch chip U1 is in an invalid state. After the power-on is stable, the latch chip U1 is first controlled to make the internal latch value a known value, and then the output enable of the latch chip U1 is turned on by the trigger chip U2, so that the latch chip U1 can normally control the output (data output is performed through the output end of the latch chip U1), and a known and determined latch output state of the latch chip U1 output can be obtained.
[0037] That is, in this embodiment, during the initial power-on process, an output terminal of the trigger chip U2 is used to The output enable terminal of the latch chip U1 is controlled by the terminal At a high level, the output enable of the latch chip U1 is turned off; and after the initial power-on is completed, the latch enable terminal LE and the data input terminal Dn of the latch chip U1 are first controlled, and then an output terminal of the trigger chip U2 is used to control the latch enable terminal LE and the data input terminal Dn of the latch chip U1. The output enable terminal of the latch chip U1 is controlled by the terminal At a low level, the output enable of the latch chip U1 is turned on, and a certain output state of the latch chip U1 can be obtained, thereby achieving the effect that the output level of the latch chip U1 during the initial power-on process is controllable.
[0038] Specifically, the latch chip U1 can be set as a 74HC573PW chip; the trigger chip U2 can be set as a rising edge trigger, specifically, a SN74LS74ADR chip.
[0039] Please continue reading Figure 1 The latch circuit further includes: a central processing unit (CPU) U4 connected to the latch chip U1 and the trigger chip U2, a voltage monitoring chip U3 connected to the trigger chip U2, and a first resistor R1. The clock terminal CLK of the trigger chip U2 is grounded, and one end of the first resistor R1 is connected to the output terminal of the latch chip U1. The voltage monitoring chip U3 may be a CAT809STB I chip.
[0040] In a possible implementation, the output terminal of the voltage monitoring chip U3 The clear terminal of the trigger chip U2 The voltage monitoring chip U3 has an input terminal (VCC) connected to the power supply voltage. During the initial power-on process, the output terminal of the voltage monitoring chip U3 is connected to the power supply voltage. Output the first level signal to the clear terminal of the trigger chip U2 After the initial power-on, the output terminal of the voltage monitoring chip U3 Output the second level signal to the clear terminal of the trigger chip U2
[0041] The first level signal is a low level signal, and the second level signal is a high level signal.
[0042] The first output terminal of the central processor U4 is connected to the latch enable terminal LE of the latch chip U1, and is used to write data to the latch enable terminal LE of the latch chip U1; the second output terminal of the central processor U4 is connected to the data input terminal Dn of the latch chip U1, and is used to write data to the data input terminal Dn of the latch chip U1; the third output terminal of the central processor U4 is connected to the preset terminal of the trigger chip U2. connection, used to preset the trigger chip U2 Write data.
[0043] The central processor U4 has three output ports. The first output terminal of the central processor U4 is connected to the latch enable terminal LE of the latch chip U1, the second output terminal of the central processor U4 is connected to the data input terminal Dn of the latch chip U1, and the third output terminal of the central processor U4 is connected to the preset terminal Dn of the trigger chip U2. In this way, the central processor U4 can send a transient pulse in the form of writing data to activate the latch enable terminal LE of the latch chip U1, the data input terminal Dn of the latch chip U1 and the preset terminal Dn of the trigger chip U2. Perform level control.
[0044] Please refer to Figure 1 and Figure 2 , because it is an output terminal of the trigger chip U2, that is The output enable terminal of the latch chip U1 is controlled by the And the output enable terminal of the latch chip U1 is to be At the time of power-on, it is necessary to ensure that the trigger chip is at a high level at the time of initial power-on. The terminal is kept at a high level. After the initial power-on is completed, a pulse signal is given to make the trigger chip The terminal outputs a low level, that is, the output enable of the latch chip U1 is turned on so that it can control the output normally.
[0045] Then according to the truth table of the trigger chip U2, at the preset terminal of the trigger chip U2 and the clear terminal of the trigger chip U2 When both are low level, the configuration is unstable, that is, the preset terminal of the trigger chip U2 cannot be and the clear terminal of the trigger chip U2 Therefore, in this embodiment, in order to make the trigger chip U2 The preset terminal of the trigger chip U2 is high during the initial power-on process. is high, and the clear terminal of the trigger chip U2 is low level.
[0046] At the same time, because it is necessary to open the latch output enable of the latch chip U1 after the initial power-on is completed, that is, the output enable terminal of the latch chip U1 To convert from high level to low level, the trigger chip U2 The terminal also needs to change its level from high to low after the initial power-on is completed. Therefore, after the initial power-on is completed, the preset terminal of the trigger chip U2 needs to be is high level, and at the same time the clear terminal of the trigger chip U2 Therefore, in order to achieve this design requirement, the voltage monitoring chip U3 connected to the trigger chip U2 is provided in the latch circuit.
[0047] Please refer to Figure 1-Figure 5 The timing diagram of the voltage monitoring chip during power-on is as follows: Figure 3 As shown. Then, for the voltage monitoring chip U3, from the beginning of power-on to the voltage rising to V TH Before, the output terminal of the voltage monitoring chip U3 Keep low level all the time, when the voltage rises to V TH After that, the output of U3 After another 140ms delay, the voltage level changes from low to high. In practical applications, the voltage monitoring chip U3 can also be used to determine the threshold V TH This parameter, select the appropriate model according to the needs.
[0048] Correspondingly, such as Figure 1 As shown, because the clear terminal of the trigger chip U2 The output terminal of the voltage monitoring chip U3 Therefore, during the power-on process, the clear terminal of the trigger chip U2 The timing of the voltage monitoring chip U3 output The same, that is, the clear terminal of the trigger chip U2 It remains at a low level during the initial power-on process and changes from a low level to a high level after the initial power-on is completed.
[0049] Also, please refer to Figure 2 In the process that the clear terminal of the trigger chip U2 changes from low level to high level, an output terminal of the trigger chip U2 Therefore, the clock terminal CLK of the trigger chip U2 needs to be grounded to keep the clock terminal CLK of the trigger chip U2 at a low level, and finally make an output terminal of the trigger chip U2 The previous output level is maintained at the Figure 2 middle and Q0 represents the output state at the previous moment), that is, an output terminal of the trigger chip U2 The terminal remains high after initial power-on.
[0050] So far, during the entire power-on process, the trigger chip U2 The terminal is always kept at a high level, so that the output of the latch chip U1 is turned off. At this time, if you want to turn on the latch output enable of the latch chip U1, you only need to use the central processor U4 to give the preset terminal of the trigger chip U2 A negative pulse signal causes the preset terminal of the trigger chip U2 to Converts from high level to low level to control the trigger chip U2 The output enable terminal of the latch chip U1 is converted to a low level, so that the output enable terminal of the latch chip U1 A low level turns on the latch output enable.
[0051] For further information, please refer to Figure 1 , the output enable terminal of the latch chip U1 When the level is high, it is in high impedance state. Here, the output terminal Qn of the latch chip U1 can be designed to be pulled up or down according to the requirements. Figure 1 As shown in FIG. 1 , in a possible implementation, the output terminal Qn of the latch chip U1 is connected to one end of the first resistor R1, and the other end of the first resistor R1 is connected to the power supply voltage for pull-up. In this way, during the power-on process, the level of the output terminal Qn of the latch chip U1 is determined by the pull-up resistor and is a high level. Then, as Figure 3 As shown, the latch enable terminal LE of the latch chip U1 and the data input terminal Dn of the latch chip U1 are controlled by the central processor U4 to perform a write data operation before the output enable of the latch chip U1 is turned on, so that the internal latch value of the latch chip U1 is high (because the latch chip U1 already has a value during the initial power-on process, but this value is uncertain whether it is high or low, but at this time because the output enable terminal of the latch chip U1 is It is not turned on, so this uncertain value is not output from the output terminal Qn of the latch chip U1, so it is necessary to perform a write data operation before the output enable is turned on) to achieve that after the initial power-on is completed, the output terminal Qn of the latch chip U1 still maintains a high level output, and finally achieves a stable high level output from the output terminal Qn of the latch chip U1 during the entire power-on process.
[0052] Of course, if Figure 4 and Figure 5As shown, in a possible implementation, the latch chip U1 can also be implemented such that, when initially powered on, the output terminal Qn of the latch chip U1 outputs a low-level signal. That is, by grounding the other end of the first resistor R1, the output terminal Qn of the latch chip U1 is pulled down, and then the central processor U4 performs a write low-level data operation on the latch enable terminal LE of the latch chip U1 and the data input terminal Dn of the latch chip U1, and then turns on the output enable of the latch chip U1, so that the output terminal Qn of the latch chip U1 can stably output a low-level signal.
[0053] In addition, in this embodiment, the connection position between the central processing unit U4 and the voltage monitoring chip U3 may also be adjusted.
[0054] like Figure 2 and Figure 6 As shown, in a possible implementation, the trigger chip U2 can also control the latch chip U1 through the Q terminal. Specifically, the output enable terminal of the latch chip U1 The output enable terminal of the latch chip U1 is connected to the other output terminal Q of the trigger chip U2 through an inverter N. Of course, in other embodiments, the output enable terminal of the latch chip U1 The other output terminal Q of the trigger chip U2 can also be connected through a three-stage tube. The other parts are the same as the previous implementation method, and will not be repeated here. Among them, the inverter can be a 74HC14PW inverter.
[0055] like Figure 2 , Figure 3 , Figure 7 and Figure 8 As shown, in a possible implementation, the output terminal of the voltage monitoring chip U3 The preset terminal of the trigger chip U2 The voltage monitoring chip U3 has an input terminal VCC connected to the power supply voltage. During the initial power-on process, the output terminal of the voltage monitoring chip U3 is connected to the power supply voltage. Output the first level signal to the preset end of the trigger chip U2 After the initial power-on, the output terminal of the voltage monitoring chip U3 Output the second level signal to the preset end of the trigger chip U2
[0056] The first output terminal of the central processor U4 is connected to the latch enable terminal LE of the latch chip U1, and is used to write data to the latch enable terminal LE of the latch chip U1; the second output terminal of the central processor U4 is connected to the data input terminal Dn of the latch chip U1, and is used to write data to the data input terminal Dn of the latch chip U1; the third output terminal of the central processor U4 is connected to the clear terminal of the trigger chip U2. connection for the clear terminal of the trigger chip U2 The CPU U4 clears the trigger chip U2 through the third output terminal when it is initially powered on. Input low pulse signal.
[0057] That is, compared to Figure 1 The implementation method in Figure 7 In the implementation method, the voltage monitoring chip U3 and the central processor U4 are switched relative to the connection position of the trigger chip U2. Then, the output enable terminal of the latch chip U1 is connected to the Q terminal of the trigger chip U2. Of course, Figure 8 As shown, the trigger chip U2 can also be terminal and the output enable terminal of the latch chip U1 Add an inverter N between the two to control the trigger chip The output enable terminal of the latch chip U1 Take control.
[0058] In this way, the latch circuit provided in this embodiment does not have a main control chip in the entire circuit scheme, and all available signals of the central processor U4 are transient pulse signals, that is, when the output signal of the central processor U4 cannot be kept at a fixed level, the latch chip U1 can also be effectively controlled so that the circuit system can output a high / low level signal after initial power-on. The present application combines the voltage monitoring chip U3 and the edge trigger chip U2 to make the output signal (such as The level of the signal output from the terminal is fixed at the initial power-on, and the output signal level can be changed subsequently by a pulse signal.
[0059] Based on the above-mentioned latch circuit, the present invention also provides a latch system, which includes one or more latch circuits. The latch system can be applied to functions such as data storage, timing control, data synchronization, signal buffering or digital signal processing. Since the latch circuit has been described in detail above, it will not be repeated here.
[0060] In summary, the present invention provides a latch circuit and a latch system having the following beneficial effects.
[0061] The present invention controls the output enable terminal of the latch chip to be in an invalid state through an output terminal of the trigger chip during the initial power-on process, thereby turning off the output lock of the latch chip; and after the initial power-on is completed, firstly controls the latch enable terminal and the data input terminal of the latch chip to make its internal latch value a known value, and then controls the output enable terminal of the latch chip to be in a valid state through an output terminal of the trigger chip, and turns on the output lock of the latch chip to obtain a certain output state of the latch chip, thereby achieving the effect that the output level of the latch chip during the initial power-on process is controllable.
[0062] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A latch circuit, characterized in that: The latch circuit comprises: a latch chip and a trigger chip connected to the latch chip; The output enable terminal of the latch chip is connected to an output terminal of the trigger chip, and is used to make the output enable terminal of the latch chip in an invalid state during the initial power-on process, and is also used to make the output enable terminal of the latch chip in a valid state after the initial power-on is completed; The latch circuit further includes: a voltage monitoring chip connected to the trigger chip; The output terminal of the voltage monitoring chip is connected to the clear terminal of the trigger chip, and an input terminal of the voltage monitoring chip is connected to the power supply voltage; During the initial power-on process, the output terminal of the voltage monitoring chip outputs a first level signal to the clear terminal of the trigger chip; After the initial power-on is completed, the output end of the voltage monitoring chip outputs a second level signal to the clear end of the trigger chip; The latch circuit further includes: a central processing unit connected to the latch chip and the trigger chip respectively; The first output terminal of the central processing unit is connected to the latch enable terminal of the latch chip, and is used to write data to the latch enable terminal of the latch chip; The second output terminal of the central processing unit is connected to the data input terminal of the latch chip, and is used to write data to the data input terminal of the latch chip; The third output terminal of the central processing unit is connected to the preset terminal of the trigger chip and is used to write data to the preset terminal of the trigger chip.
2. The latch circuit according to claim 1, characterized in that: The latch circuit further includes: a first resistor, one end of which is connected to the output end of the latch chip.
3. The latch circuit according to claim 2, characterized in that: The clock terminal of the trigger chip is grounded.
4. The latch circuit according to claim 1, wherein: The latch circuit further includes: a voltage monitoring chip connected to the trigger chip; The output end of the voltage monitoring chip is connected to the preset end of the trigger chip, and an input end of the voltage monitoring chip is connected to the power supply voltage; During the initial power-on process, the output terminal of the voltage monitoring chip outputs a first level signal to the preset terminal of the trigger chip; After the initial power-on is completed, the output end of the voltage monitoring chip outputs a second level signal to the preset end of the trigger chip.
5. The latch circuit according to claim 4, characterized in that: The first output terminal of the central processing unit is connected to the latch enable terminal of the latch chip, and is used to write data to the latch enable terminal of the latch chip; The second output terminal of the central processing unit is connected to the data input terminal of the latch chip, and is used to write data to the data input terminal of the latch chip; The third output terminal of the central processing unit is connected to the clear terminal of the trigger chip and is used to write data to the clear terminal of the trigger chip.
6. The latch circuit according to claim 1, characterized in that: The trigger chip is an edge trigger chip.
7. A latch system, characterized in that: The latch system comprises one or more latch circuits according to any one of claims 1 to 6.
