Voltage state detection circuit
By designing a voltage state detection circuit, the voltage is compared and counted using two comparators and delay modules, and the two-bit logic levels are output, which solves the problem that a single comparator cannot recognize the voltage overvoltage and undervoltage, and realizes the power supply Accurate detection and interference removal of voltage status.
Patent Information
- Application Number
- CN202323603779.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2033-12-28
AI Technical Summary
A single comparator cannot effectively identify and output the voltage overvoltage and undervoltage states in power supply voltage or other scenarios, and cannot realize logic signal characterization.
Design a voltage state detection circuit, including two comparators and a delay module, output two-bit logic levels through the counter to characterize the voltage state, use two comparators to compare the input voltage, and output the delay signal through the delay module and pulse signals, eliminate voltage glitch interference, and distinguish between three states of voltage.
It realizes effective detection of the power supply voltage state, can distinguish between normal, undervoltage and overvoltage states of the voltage, and is suitable for power supply voltage detection, eliminating interference caused by voltage glitches.
Smart Images

Figure CN221978906U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the field of electronic circuits, and in particular relates to a voltage state detection circuit. Background Art
[0002] The voltage state detection circuit is a circuit module in an integrated circuit that compares the voltage with the reference voltage and then outputs a logic level to represent the voltage state. It is usually implemented using a comparator module. For power supply voltage or other application scenarios, voltage detection requires identifying the voltage overvoltage and undervoltage states and outputting logic signals, and a single comparator cannot achieve this function. Utility Model Content
[0003] In order to overcome the defects in the prior art, the utility model discloses a voltage state detection circuit.
[0004] The voltage state detection circuit of the utility model comprises a first comparator and a second comparator, one input end of the two comparators is respectively connected to different reference voltages, the other input end is connected to the input end, the output end of the comparator is connected to a delay module, the delay signal output end of the delay module is connected to the input end of a register, the pulse output end of the delay module is connected to a counter, and the output end of the counter is connected to a data latch control end of the register;
[0005] The function of the delay module is: when the voltage at the comparator output terminal changes, a signal following the delay change of the comparator output terminal is output at the delay signal output terminal, and a pulse signal generated by the delay is output at the pulse output terminal.
[0006] Preferably, the delay module includes an even number of inverters connected in series, the input end of the inverter string is connected to the signal input end of the delay module, the output end of the inverter string and the signal input end are connected to two input ends of a NOR gate, the output end of the NOR gate is connected, the signal input end and the output end of the inverter string are connected to the input end of a three-input NAND gate, the output end of the inverter string and the output end of the three-input NAND gate serve as the delayed signal output end and the pulse output end respectively, and a capacitor is connected between the output end of one or more inverters in the inverter string and the ground.
[0007] Preferably, the counter is formed by cascading a plurality of D flip-flops.
[0008] The voltage state detection circuit of the utility model uses two comparators to compare the input voltage, and outputs two-bit logic levels after counting delay to represent the input voltage state. This can eliminate the interference caused by voltage glitches and distinguish the three states of voltage, and is suitable for application in the detection of power supply voltage state. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1A schematic diagram of a specific implementation of the voltage state detection circuit of the utility model;
[0010] Figure 2 This is a schematic diagram of a specific implementation of the delay module of the utility model;
[0011] Figure 3 This is a schematic diagram of a typical logic timing waveform of the input and output signals of the delay module of the utility model, in which the waveform abscissa is time and the ordinate is voltage. Implementation
[0012] The specific implementation of the utility model is further described in detail below in conjunction with the accompanying drawings.
[0013] The voltage state detection circuit of the utility model comprises a first comparator and a second comparator, one input end of the two comparators is respectively connected to different reference voltages, the other input end is connected to the input end, the output end of the comparator is connected to a delay module, the delay signal output end of the delay module is connected to the input end of a register, the pulse output end of the delay module is connected to a counter, and the output end of the counter is connected to a data latch control end of the register;
[0014] The function of the delay module is: when the voltage at the comparator output terminal changes, a signal following the delay change of the comparator output terminal is output at the delay signal output terminal, and a pulse signal generated by the delay is output at the pulse output terminal.
[0015] A typical application scenario of the utility model is to detect the state of the power supply voltage. For example, if the power supply voltage is lower than 1.5V, it is an undervoltage state, and if it is higher than 5.5V, it is an overvoltage state. Then, the first reference voltage VREF1 and the second reference voltage VREF2 connected to one input end of the first comparator COMP1 and the second comparator COMP2 are set to 1.5V and 5.5V respectively. When the voltage value of the input end VIN decreases from higher than 1.5V to lower than 1.5V, the output signal of the first comparator changes from a low level to a high level. After the input end of the delay module receives the change of the first comparator, the signal that follows the delay change of the comparator output end is output at the delay signal output end, and the pulse signal generated by the delay is output at the pulse output end.
[0016] Similarly, when the voltage value of the input VIN increases from less than 5.5V to more than 5.5V, the output signal of the second comparator changes from low level to high level. After the input end of the delay module receives the change of the second comparator, the delay signal output end outputs a signal that follows the delay change of the comparator output end, and the pulse signal generated by the delay is output at the pulse output end.
[0017] After receiving the pulse signal, the counter starts counting. The clock signal of the counter can be input from the external clock input terminal CLK. After the set counting cycle, the latch signal is output to the data latch control terminal of the register. The register reads the data output by the delay signal output terminal of the delay module and stores it.
[0018] If the output level of the first comparator changes again within the set counting cycle, the data read by the register at this time may be the same as the data stored previously, and the register output will not change.
[0019] The counter can be implemented by cascading N D flip-flops in the prior art, and the counting period is 2 to the Nth power clock periods.
[0020] Two registers are used to output two bits of data representing the voltage. For example, the first output terminal OUT1 and the second output terminal OUT2 both output a low level 00, indicating that the voltage is working normally, neither overvoltage nor undervoltage. The first output terminal OUT1 and the second output terminal OUT2 output 10, indicating that it is working in an undervoltage state. The first output terminal OUT1 and the second output terminal OUT2 output 01, indicating that it is working in an overvoltage state. Since overvoltage and undervoltage cannot occur at the same time, there is no 11 state. Figure 1 In the specific implementation shown, the register output signal is shaped and then outputted through two NOR gates NOR2.
[0021] like Figure 2 As shown, a specific implementation of the delay module is given, including an even number of inverters INV connected in series, the input end of the inverter string is connected to the signal input end IN of the delay module, the output end and the signal input end of the inverter string are connected to the two input ends of the NOR gate NOR2, the output end of the NOR gate is connected, the signal input end and the output end of the inverter string are connected to the input end of the three-input NAND gate NAND3, the output end of the inverter string and the output end of the three-input NAND gate serve as the delay signal output end DELAY and the pulse output end PULSE respectively, and a capacitor is connected between the output end of one or more inverters in the inverter string and the ground.
[0022] Through the above circuit combination, it can be achieved that when the voltage of the signal input terminal IN connected to the comparator output terminal changes, the delayed signal output terminal DELAY outputs a signal that follows the delayed change of the comparator output terminal, and the pulse output terminal PULSE outputs a pulse signal generated by the delay; Figure 3 A logical timing diagram of the input and output signals of the delay module is given.
[0023] The voltage state detection circuit of the utility model uses two comparators to compare the input voltage, and outputs two-bit logic levels after counting delay to represent the input voltage state. This can eliminate the interference caused by voltage glitches and distinguish the three states of voltage, and is suitable for application in the detection of power supply voltage state.
[0024] The foregoing describes various preferred embodiments of the utility model. If the preferred implementation modes in various preferred embodiments are not obviously self-contradictory or are based on a certain preferred implementation mode, various preferred implementation modes can be arbitrarily superimposed and used in combination. The embodiments and specific parameters in the embodiments are only for clearly describing the utility model verification process of the utility model owner, and are not used to limit the patent protection scope of the utility model. The patent protection scope of the utility model is still based on its claims. All equivalent structural changes made using the description and drawings of the utility model should be included in the protection scope of the utility model.
Claims
1. A voltage state detection circuit, characterized in that: It includes a first comparator and a second comparator, one input end of the two comparators is respectively connected to different reference voltages, the other input end is connected to the input end, the output end of the comparator is connected to a delay module, the delay signal output end of the delay module is connected to the input end of a register, the pulse output end of the delay module is connected to a counter, and the output end of the counter is connected to a data latch control end of the register; The function of the delay module is: when the voltage at the comparator output terminal changes, a signal following the delay change of the comparator output terminal is output at the delay signal output terminal, and a pulse signal generated by the delay is output at the pulse output terminal.
2. The voltage state detection circuit according to claim 1, characterized in that: The delay module includes an even number of inverters connected in series, the input end of the inverter string is connected to the signal input end of the delay module, the output end of the inverter string and the signal input end are connected to the two input ends of the NOR gate, the output end of the NOR gate is connected, the signal input end and the output end of the inverter string are connected to the input end of the three-input NAND gate, the output end of the inverter string and the output end of the three-input NAND gate serve as the delayed signal output end and the pulse output end respectively, and a capacitor is connected between the output end of one or more inverters in the inverter string and the ground.
3. The voltage state detection circuit according to claim 1, characterized in that: The counter is formed by cascading a plurality of D flip-flops.
