Power supply monitoring circuit, power supply monitoring method and electronic equipment
By designing a power supply monitoring circuit including an analog-to-digital converter ADC and a switching unit, the problem of the inability to simultaneously monitor the state of multiple power supply in the prior art is solved, and real-time monitoring and management of a large number of power supply is realized.
Patent Information
- Application Number
- CN202510198028.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-21
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, the number of power signal input ports of CPLD is limited, and the PG signal of a large number of multiple power supplies cannot be monitored simultaneously, and the need to monitor the state of multiple power supplies cannot be met at the same time.
A power monitoring circuit is designed, including an analog-to-digital converter ADC, an initial signal output unit, N target power supply and N switch units. The power supply signal is received through the switch unit and the switching state is changed. The ADC determines the voltage value according to the switching state, thereby monitoring the status of the target power supply.
It realizes the function of monitoring a large number of multi-channel power states at the same time, meets the real-time monitoring needs of multi-channel power states, and improves the flexibility and adaptability of the power management system.
Smart Images

Figure CN120065049A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of power supply monitoring, and particularly to a power supply monitoring circuit, a power supply monitoring method, and an electronic device. Background Art
[0002] In the power management system of electronic devices such as servers and switches, it is necessary to detect the power signal of the power supply to determine whether the power supply is operating normally.
[0003] In the prior art, a Complex Programmable Logic Device (CPLD for short) is used to detect the level of the Power Good (PG for short) signal of the power supply. When it is higher than a certain threshold, it is determined that the power supply of this path is present; when it is lower than a certain threshold, it is determined that the power supply of this path is abnormal and an alarm is generated.
[0004] However, in the above method, the number of power signal input ports of the CPLD is limited, and it is impossible to simultaneously monitor the PG signals of a relatively large number of multiple power supplies, and thus it is impossible to meet the requirement of simultaneously monitoring the states of a relatively large number of multiple power supplies. Summary of the Invention
[0005] The embodiments of this application provide a power supply monitoring circuit, a power supply monitoring method, and an electronic device, which can simultaneously monitor the states of a relatively large number of multiple power supplies.
[0006] In a first aspect, the embodiments of this application provide a power supply monitoring circuit, including: an analog-to-digital converter ADC, an initial signal output unit, N target power supplies, and N switch units, where N is an integer greater than or equal to 1; the first ends of the switch units are respectively connected to the initial signal output unit and the ADC; the second ends of the switch units are connected to the target power supplies; the third ends of the switch units are grounded;
[0007] The initial signal output unit is configured to output an initial signal to control the start of operation of each of the target power supplies;
[0008] The switch unit is configured to receive the power signal of the target power supply and change the switch state according to the power signal;
[0009] The ADC is configured to determine the voltage value of the received voltage signal according to the switch state of the switch unit; wherein, the voltage value is used to obtain the power supply state of each of the target power supplies.
[0010] In a possible implementation, the switch unit includes a switch module and a first pull-up resistor; a first end of the switch module is respectively connected to the initial signal output unit and the ADC through the first pull-up resistor; a second end of the switch module is connected to the target power supply; a third end of the switch module is grounded.
[0011] In a possible implementation, the switch module is an NMOS switch, or a MOS switch, or an IGBT switch.
[0012] In a possible implementation, when the switch module is an NMOS switch or a MOS switch, a first end of the switch module is a drain, a second end of the switch module is a gate, and a third end of the switch module is a source;
[0013] Or, when the switch module is an IGBT switch, a first end of the switch module is a collector, a second end of the switch module is a gate, and a third end of the switch module is an emitter.
[0014] In a possible implementation, the switch unit is configured to close in response to the power signal being a high-level signal, or to open in response to the power signal being a low-level signal.
[0015] In a possible implementation, the ADC includes a register; the ADC is specifically configured to:
[0016] Determine the voltage value of the received voltage signal according to the switch state of the switch unit;
[0017] Read the mapping value corresponding to the voltage value from the register according to the voltage value; wherein, the mapping value characterizes the power state of the target power supply.
[0018] In a possible implementation, the initial signal output unit includes an initial signal output terminal and a second pull-up resistor; the initial signal output terminal is connected to a first end of the switch unit through the second pull-up resistor.
[0019] In a possible implementation, the power supply monitoring circuit further includes: an operational amplifier; a first end of the switch unit is connected to the positive extreme of the operational amplifier; the negative extreme and the output end of the operational amplifier are both connected to the ADC;
[0020] The operational amplifier is configured to amplify the voltage signal.
[0021] In a possible implementation, the power supply monitoring circuit further includes a voltage follower; the negative extreme and the output end of the operational amplifier are both connected to the ADC through the voltage follower;
[0022] The voltage follower is used to provide a stable voltage signal to the ADC.
[0023] In a second aspect, an embodiment of the present application provides a power supply monitoring circuit. The method is applied to an analog-to-digital converter (ADC) in the power supply monitoring circuit. The power supply monitoring circuit further includes an initial signal output unit, N target power supplies, and N switching units, where N is an integer greater than or equal to 1. The first ends of the switching units are respectively connected to the initial signal output unit and the ADC. The second ends of the switching units are connected to the target power supplies. The third ends of the switching units are grounded. The method includes:
[0024] Receiving a voltage signal and determining the voltage value of the voltage signal. Wherein, the voltage signal is generated based on the switching state of the switching unit being changed according to the power supply signal of the target power supply. The power supply signal is generated based on the initial signal output by the initial signal output unit.
[0025] Determining the power supply states of the target power supplies according to the voltage value.
[0026] In a possible implementation manner, a register is included in the ADC. Determining the power supply states of the target power supplies according to the voltage value includes:
[0027] Reading, from the register, the mapping value corresponding to the voltage value according to the voltage value.
[0028] Determining the power supply states of the target power supplies according to the mapping value.
[0029] In a third aspect, an embodiment of the present application provides a power supply monitoring device. The device is applied to an analog-to-digital converter (ADC) in the power supply monitoring circuit. The power supply monitoring circuit further includes an initial signal output unit, N target power supplies, and N switching units, where N is an integer greater than or equal to 1. The first ends of the switching units are respectively connected to the initial signal output unit and the ADC. The second ends of the switching units are connected to the target power supplies. The third ends of the switching units are grounded. The device includes:
[0030] A first determination module, configured to receive a voltage signal and determine the voltage value of the voltage signal. Wherein, the voltage signal is generated based on the switching state of the switching unit being changed according to the power supply signal of the target power supply. The power supply signal is generated based on the initial signal output by the initial signal output unit.
[0031] A second determination module, configured to determine the power supply states of the target power supplies according to the voltage value.
[0032] In a possible implementation manner, a register is included in the ADC; the second determination module is specifically configured to: read, from the register, a mapping value corresponding to the voltage value according to the voltage value; and determine the power state of the target power supply according to the mapping value.
[0033] Fourthly, an embodiment of the present application provides an analog-to-digital converter (ADC), where the ADC includes a memory and a processor;
[0034] The memory stores computer-executable instructions;
[0035] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method described in the second aspect.
[0036] Fifthly, an embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the method described in the second aspect is implemented.
[0037] Sixthly, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described in the second aspect is implemented.
[0038] Seventhly, an embodiment of the present application provides an electronic device, including the power supply monitoring circuit described in the first aspect above or the analog-to-digital converter (ADC) described in the second aspect above.
[0039] The power supply monitoring circuit, power supply monitoring method, and electronic device provided by the embodiments of the present application. The power supply monitoring circuit includes: an analog-to-digital converter (ADC), an initial signal output unit, N target power supplies, and N switching units, where N is an integer greater than or equal to 1; the first end of each switching unit is respectively connected to the initial signal output unit and the ADC; the second end of each switching unit is directly connected to each target power supply, and the third end of each switching unit is grounded; the initial signal output unit is configured to output an initial signal to control each target power supply to start running, and each switching unit is configured to receive the power signal of the target power supply and change its own switching state according to the power signal; the ADC receives a voltage signal according to the switching state of each switching unit and determines the voltage value of the voltage signal, and the voltage value is used to obtain the power state of the target power supply. Furthermore, through the switching states of each switching unit in the power supply monitoring circuit, the ADC can simultaneously monitor different power signals to simultaneously determine the power states of each target power supply, achieving the effect of simultaneously monitoring a relatively large number of multiple power states. Description of the Drawings
[0040] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with this application and used together with the specification to explain the principles of this application.
[0041] Figure 1 Schematic structure of a power supply monitoring circuit provided for an embodiment of this application Figure 1 ;
[0042] Figure 2 Schematic structure of a power supply monitoring circuit provided for an embodiment of this application Figure 2 ;
[0043] Figure 3 Schematic structure of a power supply monitoring circuit provided for an embodiment of this application Figure 3 ;
[0044] Figure 4 Architecture diagram of a power signal processing method provided for an embodiment of this application;
[0045] Figure 5 Schematic of a power supply status monitoring process provided for an embodiment of this application Figure 1 ;
[0046] Figure 6 Schematic of a power supply status monitoring process provided for an embodiment of this application Figure 2 ;
[0047] Figure 7 Schematic of a power supply status monitoring process provided for an embodiment of this application Figure 3 ;
[0048] Figure 8 Schematic of a power supply status monitoring process provided for an embodiment of this application Figure 4 ;
[0049] Figure 9 Schematic of a power supply status monitoring process provided for an embodiment of this application Figure 5 ;
[0050] Figure 10 Schematic of a power supply status monitoring process provided for an embodiment of this application Figure 6 ;
[0051] Figure 11 Schematic of a power supply status monitoring process provided for an embodiment of this application Figure 7 ;
[0052] Figure 12 Schematic of a power supply status monitoring process provided for an embodiment of this application Figure 8 ;
[0053] Figure 13Flow schematic of a power supply monitoring method provided by an embodiment of the present application Figure 1 ;
[0054] Figure 14 Flow schematic of a power supply monitoring method provided by an embodiment of the present application Figure 2 ;
[0055] Figure 15 Structural schematic diagram of a power supply monitoring device provided by an embodiment of the present application;
[0056] Figure 16 Structural schematic diagram of an analog-to-digital converter provided by an embodiment of the present application.
[0057] Reference numerals:
[0058] Analog-to-digital converter ADC11; Initial signal output unit 12; Target power supply 13; Switch unit 14; Switch module 15; First pull-up resistor 16; Register 17; Initial signal output terminal 18; Second pull-up resistor 19; Operational amplifier 20; Voltage follower 21.
[0059] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Specific embodiments
[0060] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0061] Specific application scenarios of the present application include: In a power management system of electronic devices such as servers and switches, it is necessary to detect the power signal of the power supply to determine whether the power supply is operating normally.
[0062] Combined with the above scenarios, in the prior art, the level of the PG signal of the power supply is detected through a CPLD to determine whether the power supply of this path is abnormal; however, the number of power signal input ports of the CPLD is limited, and it is impossible to simultaneously monitor the PG signals of a relatively large number of multiple power supplies, and thus it is impossible to meet the requirement of simultaneously monitoring the states of a relatively large number of multiple power supplies.
[0063] The power supply monitoring circuit provided by the present application solves the technical problem that the requirement of simultaneously monitoring the states of a relatively large number of multiple power supplies cannot be met by setting an ADC, an initial signal output unit, N target power supplies, and N switching units in the power supply monitoring circuit, where N is an integer greater than or equal to 1; the first end of each switching unit is respectively connected to the initial signal output unit and the ADC; the second end of each switching unit is directly connected to each target power supply, and the third end of each switching unit is grounded; the initial signal output unit is used to output an initial signal to control the start of operation of each target power supply, and each switching unit is used to receive the power signal of the target power supply and change its own switching state according to the power signal; the ADC determines the voltage value of the received voltage signal according to the switching state of each switching unit, and this voltage value is used to obtain the power supply state of the target power supply.
[0064] The following uses specific embodiments to elaborate in detail on the technical solution of the present application and how the technical solution of the present application solves the above technical problems. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0065] Figure 1 Structural schematic of a power supply monitoring circuit provided by an embodiment of the present application Figure 1 , as Figure 1 shown, the power supply monitoring circuit includes: an analog-to-digital converter ADC11, an initial signal output unit 12, N target power supplies 13, and N switching units 14, where N is an integer greater than or equal to 1; the first end of the switching unit 14 is respectively connected to the initial signal output unit 12 and the ADC11; the second end of the switching unit 14 is connected to the target power supply 13; the third end of the switching unit 14 is grounded.
[0066] The initial signal output unit 12 is used to output an initial signal to control the start of operation of each target power supply 13.
[0067] The switching unit 14 is used to receive the power signal of the target power supply 13 and change the switching state according to the power signal.
[0068] The ADC11 is used to determine the voltage value of the received voltage signal according to the switching state of the switching unit 14; wherein, the voltage value is used to obtain the power supply state of each target power supply 13.
[0069] Exemplarily, in order to monitor the power supply states of N target power supplies 13, where N is an integer greater than or equal to 1, a power supply monitoring circuit is provided. The power supply monitoring circuit includes an analog-to-digital converter ADC11, an initial signal output unit 12, N target power supplies 13, and N switch units 14. Among them, the first end of each switch unit 14 is connected to the initial signal output unit 12, and the first end of each switch unit 14 is also connected to the ADC11, so that each switch unit 14 and the initial signal output unit 12 form a parallel circuit; the second end of each switch unit 14 is connected to each target power supply 13 to receive the power signal output by each target power supply 13; the third end of each switch unit 14 is grounded.
[0070] In this power supply monitoring circuit, the initial signal output unit 12 is used to output an initial signal, that is, an initial control signal, to each target power supply 13 to control each target power supply 13 to start running. Each target power supply 13 generates a power signal based on this initial signal. Different power supply states of the target power supply 13 correspond to different generated power signals. For example, a high-level signal for normal operation or a low-level signal for abnormal operation. Each switch unit 14 can receive the power signal of the corresponding connected target power supply 13 and change its own switch state based on this power signal. For example, each switch unit 14 controls its own switch state to be in the on state or the off state according to the signal value or frequency or waveform characteristics of the power signal. Since the voltage signals transmitted after each switch unit 14 is turned on are different, and the switch states of any one or more of the switch units 14 are different, the voltage signals of the parallel circuit between each switch unit 14 and the initial signal output unit are different. Therefore, the ADC11 can receive the voltage signals of the parallel circuit between all switch units 14 and the initial signal output unit 12 according to the switch states of each switch unit 14 and determine the voltage values of the received voltage signals; among them, different voltage values correspond to different switch states of each switch unit 14, that is, they correspond to different power supply states of different target power supplies 13. Furthermore, the ADC11 can obtain the power supply states of each target power supply 13 simultaneously according to the determined voltage values. If the ADC11 determines that there is any one or more target power supplies with abnormal operation among the power supply states of each target power supply 13, it can issue an alarm signal to prompt the user to process.
[0071] In this embodiment, a power supply monitoring circuit is provided. The power supply monitoring circuit includes: ADC11, an initial signal output unit, N target power supplies, and N switch units, where N is an integer greater than or equal to 1; the first end of each switch unit is respectively connected to the initial signal output unit and the ADC; the second end of each switch unit is directly connected to each target power supply, and the third end of each switch unit is grounded; the initial signal output unit is configured to output an initial signal to control the start of operation of each target power supply, and each switch unit is configured to receive the power signal of the target power supply and change its own switch state according to the power signal; the ADC receives a voltage signal and determines the voltage value of the voltage signal according to the switch state of each switch unit, and the voltage value is used to obtain the power supply state of the target power supply. Furthermore, the ADC in the power supply monitoring circuit simultaneously monitors different power signals to simultaneously determine the power supply state of each target power supply, achieving the effect of simultaneously monitoring a relatively large number of multiple power supply states; at the same time, in the case of no monitoring power supply, the ADC can be used to integrally replace the PG, improving the flexibility and adaptability of the power management system.
[0072] Figure 2 Schematic diagram of the structure of a power supply monitoring circuit provided by an embodiment of the present application Figure 2 , such as Figure 2 shown, the power supply monitoring circuit includes: an analog-to-digital converter ADC11, an initial signal output unit 12, N target power supplies 13, and N switch units 14, where N is an integer greater than or equal to 1; the first end of the switch unit 14 is respectively connected to the initial signal output unit 12 and the ADC11; the second end of the switch unit 14 is connected to the target power supply 13; the third end of the switch unit 14 is grounded.
[0073] The initial signal output unit 12 is configured to output an initial signal to control the start of operation of each target power supply 13.
[0074] The switch unit 14 is configured to receive the power signal of the target power supply 13 and change the switch state according to the power signal.
[0075] The ADC11 is configured to determine the voltage value of the received voltage signal according to the switch state of the switch unit 14; wherein, the voltage value is used to obtain the power supply state of each target power supply 13.
[0076] In a possible implementation manner, the switch unit 14 includes a switch module 15 and a first pull-up resistor 16; the first end of the switch module 15 is respectively connected to the initial signal output unit 12 and the ADC11 through the first pull-up resistor 16; the second end of the switch module 15 is connected to the target power supply 13; the third end of the switch module 15 is grounded.
[0077] Exemplarily, such as Figure 2As shown, in order to monitor the power supply status of N target power supplies 13, where N is an integer greater than or equal to 1, a power supply monitoring circuit is set up. The power supply monitoring circuit includes an analog-to-digital converter ADC11, an initial signal output unit 12, N target power supplies 13, and N switch units 14.
[0078] Among them, each switch unit 14 includes a switch module 15 and a first pull-up resistor 16. The first end of each switch module 15 is connected to one end of a corresponding first pull-up resistor 16. The other end of each first pull-up resistor 16 is connected to the initial signal output unit 12, and the other end of each first pull-up resistor 16 is also connected to the ADC11, so that each switch module 15, the first pull-up resistor 16, and the initial signal output unit 12 form a parallel circuit to output a voltage signal to the ADC11; the second end of each switch module 15 is connected to a corresponding target power supply 13; the third end of each switch module 15 is grounded.
[0079] In this power supply monitoring circuit, the initial signal output unit 12 is used to output an initial signal, that is, an initial control signal, to each target power supply 13 to control each target power supply 13 to start running. Each target power supply 13 generates a power signal based on this initial signal, such as a high-level signal during normal operation or a low-level signal during abnormal operation. The switch module 15 in each switch unit 14 can receive the power signal of the corresponding connected target power supply 13 and change its own switch state based on this power signal. For example, the switch module 15 in each switch unit 14 controls its own switch state to be in the on state or the off state according to the signal value, frequency, or waveform characteristics of the power signal. Since the voltage signals transmitted after the switch modules 15 in each switch unit 14 are turned on are different, and the switch states of any one or more switch modules 15 in each switch module 15 are different, the voltage signals of the parallel circuit between each switch unit 14 and the initial signal output unit 12 are different. Therefore, the ADC11 can receive the voltage signals of the parallel circuit between all switch units 14 and the initial signal output unit 12 according to the switch states of the switch modules 15 in each switch unit 14 and determine the voltage value of the received voltage signal; among them, different voltage values correspond to different switch states of the switch modules 15 in each switch unit 14, that is, they correspond to the power supply states of different target power supplies 13. Furthermore, the power supply states of each target power supply 13 can be obtained simultaneously according to the determined voltage value.
[0080] In a possible implementation, the switch module 15 is an NMOS switch, or a MOS switch, or an IGBT switch.
[0081] Exemplarily, each switch module 15 can be an N-type Metal-Oxide-Semiconductor (NMOS) switch, or a Metal-Oxide-Semiconductor (MOS) switch, or an Insulated Gate Bipolar Transistor (IGBT) switch. For example, the first end of each NMOS switch is connected to one end of a corresponding first pull-up resistor 16, the other end of each first pull-up resistor 16 is connected to the initial signal output unit 12, and the other end of each first pull-up resistor 16 is also connected to the ADC 11, so that each NMOS switch, the first pull-up resistors 16, and the initial signal output unit 12 form a parallel circuit to output a voltage signal to the ADC 11; the second end of each NMOS switch is connected to a corresponding target power supply 13; the third end of each NMOS switch is grounded.
[0082] It is worth adding that when the switch module 15 is an NMOS switch, the NMOS switch usually has a low on-resistance and a fast switching speed, which can reduce switching losses and improve system efficiency, which is beneficial for power monitoring in power management applications.
[0083] In a possible implementation, when the switch module 15 is an NMOS switch or a MOS switch, the first end of the switch module 15 is the drain, the second end of the switch module 15 is the gate, and the third end of the switch module 15 is the source.
[0084] Alternatively, when the switch module 15 is an IGBT switch, the first end of the switch module 15 is the collector, the second end of the switch module 15 is the gate, and the third end of the switch module 15 is the emitter.
[0085] Exemplarily, when the switch module 15 is an NMOS switch or a MOS switch, the first end of the switch module 15 is the drain, the second end of the switch module 15 is the gate, and the third end of the switch module 15 is the source; that is, the drain (Gate) of each NMOS switch or MOS switch is connected to the initial signal output unit 12, and the drain of each NMOS switch or MOS switch is also connected to the ADC 11, so that each NMOS switch or MOS switch, the first pull-up resistors 16, and the initial signal output unit 12 form a parallel circuit; the gate (Drain) of each NMOS switch or MOS switch is connected to each target power supply 13 to receive the power signal output by each target power supply 13; the source of each NMOS switch or MOS switch is grounded.
[0086] Alternatively, when the switching module 15 is an IGBT switch, the first end of the switching module 15 is the collector, the second end of the switching module 15 is the gate, and the third end of the switching module 15 is the emitter; that is, the collector of each IGBT switch is connected to the initial signal output unit 12, and the collector of each IGBT switch is also connected to the ADC 11, so that each IGBT switch, each first pull-up resistor 16, and the initial signal output unit 12 form a parallel circuit; the gate of each IGBT switch is connected to each target power supply 13 to receive the power signal output by each target power supply 13; the emitter of each IGBT switch is grounded.
[0087] In a possible implementation, the switching unit 14 is configured to close in response to the power signal being a high-level signal, or to open in response to the power signal being a low-level signal.
[0088] Exemplarily, each switching unit 14 can receive the power signal of the corresponding target power supply 13 connected thereto and change its own switching state based on the power signal. When the power signal received by each switching unit 14 is a high-level signal, for example, it is determined that the level of the power signal is greater than a certain threshold, the switching state of itself can be correspondingly controlled to be in the on state. Or, when the power signal received by each switching unit 14 is a low-level signal, for example, it is determined that the level of the power signal is less than a certain threshold, the switching state of itself can be correspondingly controlled to be in the off state. Furthermore, the design of this solution is simple, easy to implement, and has a low cost, and is applicable to power management and power monitoring in various scenarios.
[0089] In a possible implementation, the ADC 11 includes a register 17; the ADC 11 is specifically configured to: determine the voltage value of the received voltage signal according to the switching state of the switching unit 14; read the mapping value corresponding to the voltage value from the register 17 according to the voltage value; wherein, the mapping value represents the power state of the target power supply 13.
[0090] Exemplarily, refer to Figure 2, Since the voltage signals transmitted after each switch unit 14 is turned on are different, and the switch states of any one or more of the switch units 14 in each switch unit 14 are different, the voltage signals of the parallel circuits between each switch unit 14 and the initial signal output unit 12 are different. Therefore, a register 17 is provided in the ADC 11. According to the switch states of each switch unit 14, the ADC 11 can receive the voltage signals of the parallel circuits between all the switch units 14 and the initial signal output unit 12 and determine the voltage values of the received voltage signals. Among them, different voltage values correspond to different switch states of each switch unit 14, that is, according to the voltage value, the mapping value corresponding to the voltage value is read from the register 17, and this mapping value can correspond to the power supply states of different target power supplies 13. Furthermore, the power supply states of each target power supply 13 can be obtained simultaneously according to the determined voltage value. Furthermore, by using the register 17 in the ADC 11 chip to judge which power supply has a problem, the accuracy and reliability of power management are improved.
[0091] In a possible implementation manner, the initial signal output unit 12 includes an initial signal output terminal 18 and a second pull-up resistor 19; the initial signal output terminal 18 is connected to the first end of the switch unit 14 through the second pull-up resistor 19.
[0092] Exemplarily, referring to Figure 2 , the initial signal output unit 12 includes an initial signal output terminal 18 and a second pull-up resistor 19; the initial signal output terminal 18 is connected to one end of the second pull-up resistor 19, and the other end of the second pull-up resistor 19 is connected to the first end of each switch unit 14, so that the initial signal output terminal 18, the second pull-up resistor 19, and all the first switch units 14 form a parallel circuit to transmit voltage signals to the ADC 11.
[0093] In a possible implementation manner, the power supply monitoring circuit further includes: an operational amplifier 20; the first end of the switch unit 14 is connected to the positive extreme of the operational amplifier 20; both the negative extreme and the output end of the operational amplifier 20 are connected to the ADC 11.
[0094] The operational amplifier 20 is used to amplify the voltage signal.
[0095] Exemplarily, the power supply monitoring circuit further includes: an operational amplifier 20; the first end of each switch unit 14 is connected to the positive extreme of the operational amplifier 20; the negative extreme of the operational amplifier 20 is connected to the ADC 11, and the output end of the operational amplifier 20 is connected to the ADC 11. For example, Figure 3 is a structural schematic diagram of a power supply monitoring circuit provided by an embodiment of the present application Figure 3 , such as Figure 3As shown, the first end of the switch module 15 in each switch unit 14 is connected to the positive terminal of the operational amplifier 20 through a first pull-up resistor 16; the negative terminal and the output terminal of the operational amplifier 20 are both connected to the ADC 11.
[0096] The operational amplifier 20 can receive the voltage signal of the parallel circuit between each switch unit 14 and the initial signal output unit 12, and amplify the voltage signal to transmit the processed voltage signal to the ADC 11 for monitoring the power supply status of each target power supply 13.
[0097] In a possible implementation, the power supply monitoring circuit further includes a voltage follower 21; the negative terminal and the output terminal of the operational amplifier 20 are both connected to the ADC 11 through the voltage follower 21.
[0098] The voltage follower 21 is used to provide a stable voltage signal to the ADC 11.
[0099] Exemplarily, referring to Figure 3 , the power supply monitoring circuit further includes a voltage follower 21; the negative terminal and the output terminal of the operational amplifier 20 are connected to one end of the voltage follower 21, and the other end of the voltage follower 21 is connected to the ADC 11. In this scenario, the voltage follower 21 has two functions. One is for isolation; the other is to increase the input impedance and decrease the output impedance, which can reduce the signal distortion during long-distance signal transmission, ensure the signal quality, so that the voltage follower 21 processes the voltage signal output by the operational amplifier 20 to provide a stable voltage signal to the ADC 11.
[0100] For example, Figure 4 is an architecture diagram of a power signal processing method provided by an embodiment of the present application. As Figure 4 shown, by placing NMOS (Q1, Q2, Q3), where the Gate terminal of the NMOS is directly connected to the PG signal of the target power supplies VR1, VR2, VR3; the Drain terminal of the NMOS passes through its own pull-up resistors R1, R2, R3 and is uniformly pulled to the initial signal output terminal P3V3_AUX through the pull-up resistor R4, and the S terminal of the NMOS is connected to the ground. The Drain signal of the Drain terminal of the NMOS is pulled into an operational amplifier U1, and a ADC monitoring chip is used to judge the PG status of the target power supplies VR1, VR2, VR3.
[0101] Figure 5 is a schematic diagram of a power supply status monitoring process provided by an embodiment of the present application Figure 1 , as Figure 4 、 5As shown, when the voltages of the target power supplies VR1, VR2, and VR3 are normal and all three NMOS are conducting, the voltage value Vd of the voltage signal received by the ADC is Vd = 3.3 * (R1 || R2 || R3) / ((R1 || R2 || R3) + R4), corresponding to a value. At this time, a corresponding mapped value 1 is read from the register in the ADC to indicate that the power supply states of VR1, VR2, and VR3 are normal.
[0102] Figure 6 Schematic of a power supply state monitoring process provided by an embodiment of this application Figure 2 , such as Figure 4 , 6 As shown, when any one of the voltages of VR1, VR2, and VR3 is abnormal, for example, when the state of VR1 is abnormal, at this time the PG_VR1 signal is low, Q1 is not conducting, and Q2 and Q3 are conducting; at this time, Vd = 3.3 * (R2 || R3) / ((R2 || R3) + R4) corresponds to a value, and a corresponding mapped value 2 is read from the register in the ADC to indicate that the power supply of VR1 is abnormal and the power supplies of VR2 and VR3 are normal, and different abnormal VR states correspond to different mapped values.
[0103] Figure 7 Schematic of a power supply state monitoring process provided by an embodiment of this application Figure 3 , such as Figure 4 , 7 As shown, when the state of VR2 is abnormal, at this time the PG_VR2 signal is low, Q2 is not conducting, and Q1 and Q3 are conducting; at this time, Vd = 3.3 * (R1 || R3) / ((R1 || R3) + R4) corresponds to a value, and a corresponding mapped value 3 is read from the register in the ADC to indicate that the power supply of VR2 is abnormal and the power supplies of VR1 and VR3 are normal.
[0104] Figure 8 Schematic of a power supply state monitoring process provided by an embodiment of this application Figure 4 , such as Figure 4 , 8 As shown, when the state of VR3 is abnormal, at this time the PG_VR3 signal is low, Q3 is not conducting, and Q2 and Q1 are conducting; at this time, Vd = 3.3 * (R2 || R1) / ((R2 || R1) + R4) corresponds to a value, and a corresponding mapped value 4 is read from the register in the ADC to indicate that the power supply of VR3 is abnormal and the power supplies of VR2 and VR1 are normal.
[0105] Figure 9 Schematic of a power supply state monitoring process provided by an embodiment of this application Figure 5 , such as Figure 4 , 9As shown, when any two of VR1, VR2, and VR3 have abnormal voltages. For example, when VR1 and VR2 are in abnormal states, at this time, the signals of PG_VR1 and PG_VR2 are low, Q1 and Q2 are not conducting, and Q3 is conducting. At this time, Vd = 3.3 * R3 / (R3 + R4) corresponds to a value, and a corresponding mapping value 5 is read from the register in the ADC to represent that the power supplies of VR1 and VR2 are abnormal and the power supply of VR3 is normal, and different abnormal states of any two different VRs correspond to different values.
[0106] Figure 10 Schematic diagram of a power supply status monitoring process provided by an embodiment of the present application Figure 6 , such as Figure 4 , 10 As shown, when VR1 and VR3 are in abnormal states, at this time, the signals of PG_VR1 and PG_VR3 are low, Q1 and Q3 are not conducting, and Q2 is conducting. At this time, Vd = 3.3 * R2 / (R2 + R4) corresponds to a value, and a corresponding mapping value 6 is read from the register in the ADC to represent that the power supplies of VR1 and VR3 are abnormal and the power supply of VR2 is normal.
[0107] Figure 11 Schematic diagram of a power supply status monitoring process provided by an embodiment of the present application Figure 7 , such as Figure 4 , 11 As shown, when VR3 and VR2 are in abnormal states, at this time, the signals of PG_VR3 and PG_VR2 are low, Q3 and Q2 are not conducting, and Q1 is conducting. At this time, Vd = 3.3 * R1 / (R1 + R4) corresponds to a value, and a corresponding mapping value 7 is read from the register in the ADC to represent that the power supplies of VR3 and VR2 are abnormal and the power supply of VR1 is normal.
[0108] Figure 12 Schematic diagram of a power supply status monitoring process provided by an embodiment of the present application Figure 8 , such as Figure 4 , 12 As shown, when the voltages of VR1, VR2, and VR3 are all abnormal, at this time, the signals of PG_VR1, PG_VR2, and PG_VR3 are all low, and Q1, Q2, and Q3 are all not conducting. At this time, the voltage of Vd is 3.3V, and a corresponding mapping value 8 is read from the register in the ADC to represent that the power supplies of VR1, VR2, and VR3 are abnormal.
[0109] In this embodiment, on the basis of the above embodiment, on the one hand, by setting a voltage follower, the signal has strong anti-interference ability during long-distance transmission, is not easily distorted, and ensures the accuracy of monitoring; on the other hand, through the preset value in the early stage, in the later stage, the corresponding mapped value in the register is read by the ADC to determine which VR has an abnormal state, thereby realizing the simultaneous monitoring of the power supply states of a relatively large number of multiple power supplies, improving the integration and miniaturization of the power management system, and having higher precision, stronger flexibility and adaptability.
[0110] Figure 13 Schematic flow of a power supply monitoring method provided by an embodiment of the present application Figure 1 , such as Figure 13 shown, this method is applied to the analog-to-digital converter ADC in the power supply monitoring circuit. The power supply monitoring circuit further includes an initial signal output unit, N target power supplies, and N switch units, where N is an integer greater than or equal to 1; the first ends of the switch units are respectively connected to the initial signal output unit and the ADC; the second ends of the switch units are connected to the target power supplies; the third ends of the switch units are grounded; this method includes:
[0111] 201. Receive a voltage signal and determine the voltage value of the voltage signal; wherein, the voltage signal is generated based on the switch unit changing the switch state according to the power supply signal of the target power supply; the power supply signal is generated based on the initial signal output by the initial signal output unit.
[0112] Exemplarily, in combination with Figure 1 , 13, in order to monitor the power supply status of N target power supplies, where N is an integer greater than or equal to 1, a power supply monitoring circuit is set up. The power supply monitoring circuit includes an analog-to-digital converter ADC11, an initial signal output unit 12, N target power supplies 13, and N switch units 14. Among them, the first end of each switch unit 14 is connected to the initial signal output unit 12, and the first end of each switch unit 14 is also connected to ADC11, so that each switch unit 14 and the initial signal output unit 12 form a parallel circuit; the second end of each switch unit 14 is connected to each target power supply 13 to receive the power signal output by each target power supply 13; the third end of each switch unit 14 is grounded. In this power supply monitoring circuit, the initial signal output unit 12 is used to output an initial signal, that is, an initial control signal, to each target power supply 13 to control each target power supply 13 to start running. Each target power supply 13 generates a power signal based on this initial signal. Different power supply states of the target power supply 13 correspond to different generated power signals, such as a high-level signal during normal operation or a low-level signal during abnormal operation. Each switch unit 14 can receive the power signal of the corresponding connected target power supply 13 and change its own switch state based on this power signal. For example, each switch unit 14 controls its own switch state to be in the on state or the off state according to the signal value or frequency or waveform characteristics of the power signal. Since the voltage signals transmitted after each switch unit 14 is turned on are different, and the switch states of any one or more of the switch units 14 are different, the voltage signal of the parallel circuit between each switch unit 14 and the initial signal output unit is different. Therefore, ADC11 can receive the voltage signal of the parallel circuit between all switch units 14 and the initial signal output unit 12 according to the switch state of each switch unit 14 and determine the voltage value of the received voltage signal.
[0113] 202. Determine the power supply status of each target power supply according to the voltage value.
[0114] Exemplarily, in combination with Figure 1 , 13 , different voltage values correspond to different switch states of each switch unit 14, that is, they correspond to different power supply states of different target power supplies 13. Furthermore, ADC11 can obtain the power supply states of each target power supply 13 simultaneously according to the determined voltage value. If ADC11 determines that there is any one or more target power supplies with abnormal operation among the power supply states of each target power supply 13, it can issue an alarm signal to prompt the user to handle it.
[0115] In this embodiment, a power supply monitoring method is provided. By using an ADC to simultaneously monitor different power supply signals in a power supply monitoring circuit, the power supply status of each target power supply in the power supply monitoring circuit can be determined simultaneously, achieving the effect of simultaneously monitoring the power supply status of a relatively large number of multiple power supplies. At the same time, in the case of no monitoring power supply, the ADC can be used to integrally replace the PG, improving the flexibility and adaptability of the power management system.
[0116] Figure 14 Flow schematic of a power supply monitoring method provided by an embodiment of the present application Figure 2 , such as Figure 14 shown, this method is applied to an analog-to-digital converter ADC in a power supply monitoring circuit. The power supply monitoring circuit further includes an initial signal output unit, N target power supplies, and N switch units, where N is an integer greater than or equal to 1. The first ends of the switch units are respectively connected to the initial signal output unit and the ADC. The second ends of the switch units are connected to the target power supplies. The third ends of the switch units are grounded. This method includes:
[0117] 301. Receive a voltage signal and determine the voltage value of the voltage signal. Among them, the voltage signal is generated based on the switch unit changing the switch state according to the power supply signal of the target power supply. The power supply signal is generated based on the initial signal output by the initial signal output unit.
[0118] Exemplarily, refer to the content of step 201 for this step, which will not be elaborated here.
[0119] 302. According to the voltage value, read the mapping value corresponding to the voltage value from the register.
[0120] Among them, the ADC includes a register.
[0121] Exemplarily, in combination with Figure 2 , 14 , since the voltage signals transmitted after each switch unit 14 is turned on are different, and the switch states of any one or more of the switch units 14 are different, the voltage signals of the parallel circuits between each switch unit 14 and the initial signal output unit 12 are different. Therefore, a register 17 is set in the ADC11. The ADC11 can receive the voltage signals of the parallel circuits between all switch units 14 and the initial signal output unit 12 according to the switch states of each switch unit 14, and determine the voltage value of the received voltage signal. Among them, different voltage values respectively represent different switch states of each switch unit 14, that is, according to the voltage value, the mapping value corresponding to the voltage value is read from the register 17.
[0122] 303. According to the mapping value, determine the power supply status of the target power supply.
[0123] Exemplarily, each mapping value preset in the register can correspondingly represent the power states of different target power supplies 13. Further, the ADC can obtain the power states of the current respective target power supplies 13 according to the read mapping values. If the ADC11 determines that any one or more of the target power supplies have abnormal operations among the power states of the respective target power supplies 13, an alarm signal can be issued to prompt the user to handle it.
[0124] In this embodiment, on the basis of the above embodiment, on the one hand, by using the ADC to simultaneously monitor different power signals in the power monitoring circuit, the power states of each target power supply in the power monitoring circuit can be simultaneously judged, achieving the effect of simultaneously monitoring a relatively large number of multiple power states; on the other hand, by using the register 17 in the ADC11 chip to judge which power supply has a problem, the accuracy and reliability of power management are improved.
[0125] Figure 15 It is a schematic structural diagram of a power monitoring device provided by an embodiment of the present application. As Figure 15 shown, this device is applied to the analog-to-digital converter ADC in the power monitoring circuit. The power monitoring circuit further includes an initial signal output unit, N target power supplies, and N switching units, where N is an integer greater than or equal to 1; the first ends of the switching units are respectively connected to the initial signal output unit and the ADC; the second ends of the switching units are connected to the target power supplies; the third ends of the switching units are grounded; this device includes:
[0126] A first determination module 401, configured to receive a voltage signal and determine the voltage value of the voltage signal; wherein, the voltage signal is generated based on the switching unit changing the switching state according to the power signal of the target power supply; the power signal is generated based on the initial signal output by the initial signal output unit;
[0127] A second determination module 402, configured to determine the power states of the respective target power supplies according to the voltage value.
[0128] In a possible implementation manner, the ADC includes a register; the second determination module 402 is specifically configured to: read the mapping value corresponding to the voltage value from the register according to the voltage value; and determine the power state of the target power supply according to the mapping value.
[0129] The device of this embodiment can execute the technical solutions in the above method, and its specific implementation process and technical principle are the same, which will not be elaborated here.
[0130] Figure 16 It is a schematic structural diagram of an analog-to-digital converter provided by an embodiment of the present application. As Figure 16As shown in the figure, the analog-to-digital converter ADC includes: a memory 501 and a processor 502; the memory 501 is a memory for storing executable instructions of the processor 502.
[0131] Among them, the processor 502 is configured to execute the method provided in the above embodiment.
[0132] The ADC further includes a receiver 503 and a transmitter 504. The receiver 503 is used to receive instructions and data sent by other devices, and the transmitter 504 is used to send instructions and data to external devices.
[0133] For the specific implementation process of the processor, reference can be made to the above method embodiment, and its implementation principle and technical effect are similar, so they will not be elaborated here in this embodiment.
[0134] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions run on a computer, the computer executes the technical solutions in the above embodiments.
[0135] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium, and when at least one processor executes the computer program, the technical solutions in the above embodiments can be implemented.
[0136] An embodiment of the present application provides an electronic device, which includes a power monitoring circuit provided in the above embodiment or an ADC provided in the above embodiment.
[0137] The electronic device can be a server or a switch. In the power management system of the electronic device, a power monitoring circuit provided in the above embodiment is set to simultaneously monitor the power states of a relatively large number of multiple power supplies in the electronic device.
[0138] Finally, it should be noted that: those skilled in the art will easily think of other implementation schemes of the present invention after considering the specification and practicing the invention disclosed herein. The present invention aims to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed in the present invention. It is not limited to the exact structure described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A power supply monitoring circuit, characterized in that: The power monitoring circuit comprises: an analog-to-digital converter ADC, an initial signal output unit, N target power supplies and N switch units, where N is an integer greater than or equal to 1; a first end of the switch unit is connected to the initial signal output unit and the ADC respectively; a second end of the switch unit is connected to the target power supply; and a third end of the switch unit is grounded; The initial signal output unit is used to output an initial signal to control each of the target power supplies to start running; The switch unit is used to receive a power signal of the target power source and change a switch state according to the power signal; The ADC is used to determine the voltage value of the received voltage signal according to the switch state of the switch unit; wherein the voltage value is used to obtain the power state of each of the target power supplies.
2. The power monitoring circuit according to claim 1, characterized in that: The switch unit includes a switch module and a first pull-up resistor; the first end of the switch module is connected to the initial signal output unit and the ADC respectively through the first pull-up resistor; the second end of the switch module is connected to the target power supply; and the third end of the switch module is grounded.
3. The power monitoring circuit according to claim 2, characterized in that: The switch module is an NMOS switch, a MOS switch, or an IGBT switch.
4. The power monitoring circuit according to claim 3, characterized in that: When the switch module is an NMOS switch or a MOS switch, the first end of the switch module is a drain, the second end of the switch module is a gate, and the third end of the switch module is a source; Alternatively, when the switch module is an IGBT switch, the first end of the switch module is a collector, the second end of the switch module is a gate, and the third end of the switch module is an emitter.
5. The power monitoring circuit according to claim 1, characterized in that: The switch unit is used to close in response to the power signal being a high level signal, or to open in response to the power signal being a low level signal.
6. The power monitoring circuit according to claim 1, characterized in that: The ADC includes a register; the ADC is specifically used for: Determining a voltage value of the received voltage signal according to a switch state of the switch unit; According to the voltage value, a mapping value corresponding to the voltage value is read from the register; wherein the mapping value represents a power state of the target power source.
7. The power monitoring circuit according to claim 1, characterized in that: The initial signal output unit includes an initial signal output terminal and a second pull-up resistor; the initial signal output terminal is connected to the first terminal of the switch unit through the second pull-up resistor.
8. The power monitoring circuit according to any one of claims 1 to 7, characterized in that: The power supply monitoring circuit further includes: an operational amplifier; the first end of the switch unit is connected to the positive terminal of the operational amplifier; the negative terminal and the output terminal of the operational amplifier are both connected to the ADC; The operational amplifier is used to amplify the voltage signal.
9. The power monitoring circuit according to claim 8, characterized in that: The power supply monitoring circuit also includes a voltage follower; the negative terminal and the output terminal of the operational amplifier are both connected to the ADC through the voltage follower; The voltage follower is used to provide a stable voltage signal to the ADC.
10. A power supply monitoring method, characterized in that: The method is applied to an analog-to-digital converter ADC in a power monitoring circuit, wherein the power monitoring circuit further comprises an initial signal output unit, N target power supplies and N switch units, where N is an integer greater than or equal to 1; a first end of the switch unit is connected to the initial signal output unit and the ADC respectively; The second end of the switch unit is connected to the target power supply; The third terminal of the switch unit is grounded; and the method comprises: Receive a voltage signal and determine a voltage value of the voltage signal; wherein the voltage signal is generated after the switch unit changes the switch state according to the power signal of the target power source; and the power signal is generated based on the initial signal output by the initial signal output unit; The power state of each of the target power sources is determined according to the voltage value.
11. The method according to claim 10, characterized in that The ADC includes a register; determining the power state of each target power source according to the voltage value, including: According to the voltage value, reading a mapping value corresponding to the voltage value from the register; The power state of the target power source is determined according to the mapping value.
12. A power supply monitoring device, characterized in that: The device is applied to an analog-to-digital converter ADC in a power monitoring circuit, wherein the power monitoring circuit further comprises an initial signal output unit, N target power supplies and N switch units, where N is an integer greater than or equal to 1; a first end of the switch unit is connected to the initial signal output unit and the ADC respectively; The second end of the switch unit is connected to the target power supply; The third terminal of the switch unit is grounded; and the device comprises: A first determination module, configured to receive a voltage signal and determine a voltage value of the voltage signal; wherein the voltage signal is generated after the switch unit changes a switch state according to a power signal of the target power source; and the power signal is generated based on an initial signal output by the initial signal output unit; The second determining module is used to determine the power state of each of the target power sources according to the voltage value.
13. An analog-to-digital converter ADC, characterized in that: The ADC includes a memory and a processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to claim 10 or 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to claim 10 or 11 when executed by a processor.
15. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to claim 10 or 11 when being executed by a processor.
16. An electronic device, characterized in that: The method comprises the power supply monitoring circuit according to any one of claims 1 to 9 or the analog-to-digital converter ADC according to claim 10 or 11.