Real-time clock power supply circuit in server and server
By designing a dual-channel real-time clock power supply circuit in the edge server and using voltage comparators and latches to realize automatic switching of power supply from the RTC battery, the problem of shortened RTC battery life is solved, extending the service life of the RTC and improving customer experience. .
Patent Information
- Application Number
- CN202410866573.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-18
AI Technical Summary
In edge servers, the service life of the RTC battery is shortened by the power supply from the BMC or voltage acquisition module, resulting in poor customer experience when replacing the battery, and it is difficult to effectively monitor and extend the service life of the RTC battery with existing technology.
A real-time clock power supply circuit in the server is designed. It adopts a dual-channel real-time clock power supply scheme. The first and second real-time clock power supplies automatically switch power supply when the main power supply is outage. It combines the voltage comparator and latch to realize real-time monitoring and control. switch to extend the service life of the RTC.
It realizes the dual-channel real-time clock power supply of the RTC battery in the edge server, monitors the voltage in real time and automatically switches the power supply line when the voltage is low, extending the service life of the RTC and improving the customer experience.
Smart Images

Figure CN118796015A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic circuits, and in particular to a real-time clock power supply circuit in a server and the server. Background Art
[0002] Servers, also known as servers, are core devices that provide computing or application services in the network. They can be divided into storage servers, cloud servers, AI servers, edge servers, etc. In edge servers, RTC (Real Time Clock) can provide a time reference for various electronic systems to ensure the normal operation of various modules of the server. However, the RTC power supply often not only powers the RTC chip, but also powers the GPS (Global Positioning System) module to provide real-time positioning. Under normal use, the service life of an RTC battery is about 2.2 years. When customers use it later, they need to disassemble the machine to replace the RTC battery, which is very inconvenient.
[0003] At present, most RTC circuits use voltage acquisition modules or BMC (Baseboard Management Controller) to directly collect voltage and then report it to the CPU (Central Processing Unit) or light up the LED (Light Emitting Diode) to issue a low voltage alarm. If a BMC module is used to collect voltage or power the GPS module, the battery life will be greatly reduced. It is very troublesome to disassemble the machine and replace the battery after the alarm. Therefore, in the edge server, the single-channel RTC power supply solution that detects the RTC battery voltage through the BMC or voltage acquisition module will affect the customer experience. Summary of the invention
[0004] In view of the above problems, the present invention proposes a real-time clock power supply circuit in a server and a server.
[0005] In a first aspect of the present invention, a real-time clock power supply circuit in a server is provided, characterized in that it includes: a main power supply, a real-time clock, a first voltage comparator, a first real-time clock power supply, and a second real-time clock power supply;
[0006] The main power supply is used to supply power to the real-time clock;
[0007] The first voltage comparator is connected to the real-time clock; the first input end of the first voltage comparator is connected to the first real-time clock power supply, and the second input end of the first voltage comparator is connected to the main power supply; the voltage of the first input end of the first voltage comparator is a first reference voltage; the first reference voltage is used to compare with the voltage of the first real-time clock power supply; the first real-time clock power supply is used to power the real-time clock when the voltage of the first real-time clock power supply is greater than the first reference voltage and the main power supply is powered off;
[0008] The second real-time clock power supply is connected to the real-time clock; the second real-time clock power supply is used to power the real-time clock when the voltage of the first real-time clock power supply is less than or equal to the first reference voltage and the main power supply is powered off.
[0009] Optionally, the real-time clock power supply circuit is further provided with a latch, an inverter, a first load switch, a second load switch, a first diode, and a second diode;
[0010] The input end of the latch is connected to the output end of the first voltage comparator, and the output end of the latch is connected to the input end of the first load switch;
[0011] The gate of the inverter is connected to the output end of the latch, the source of the inverter is connected to the input end of the second load switch, and the drain of the inverter is connected to the input end of the first load switch;
[0012] The output end of the first load switch and the output end of the second load switch are connected to the real-time clock;
[0013] The anode of the first diode is connected to the first real-time clock power supply, and the cathode of the first diode is connected to the input end of the first load switch;
[0014] An anode of the second diode is connected to the main power supply, and a cathode of the second diode is connected to an input end of the first load switch.
[0015] Optionally, when the main power supply supplies power to the real-time clock, the first diode is turned off and the second diode is turned on.
[0016] Optionally, when the first real-time clock power supply supplies power to the real-time clock, the first diode is turned on, the second diode is turned off, the first voltage comparator outputs a high-level voltage, the latch outputs a high-level voltage, the first load switch inputs a high-level voltage, the first load switch is turned on, the inverter outputs a low-level voltage, the second load switch inputs a low-level voltage, and the second load switch is turned off.
[0017] Optionally, the real-time clock power supply circuit is further provided with a latch, an inverter, a first load switch, a second load switch, a third diode, and a fourth diode;
[0018] The input end of the latch is connected to the output end of the first voltage comparator, and the output end of the latch is connected to the input end of the first load switch;
[0019] The gate of the inverter is connected to the output end of the latch, the source of the inverter is connected to the input end of the second load switch, and the drain of the inverter is connected to the input end of the first load switch;
[0020] The output end of the first load switch and the output end of the second load switch are connected to the real-time clock;
[0021] The anode of the third diode is connected to the second real-time clock power supply, and the cathode of the third diode is connected to the input end of the second load switch;
[0022] An anode of the fourth diode is connected to the main power supply, and a cathode of the fourth diode is connected to the input end of the second load switch.
[0023] Optionally, when the main power supply supplies power to the real-time clock, the third diode is turned on and the fourth diode is turned off.
[0024] Optionally, when the second real-time clock power supply supplies power to the real-time clock, the fourth diode is turned on, the third diode is turned off, the first voltage comparator outputs a low level voltage, the latch outputs a low level voltage, the first load switch inputs a low level voltage, and controls the first load switch to be disconnected; the inverter outputs a high level voltage, the second load switch inputs a high level voltage, and the second load switch is turned on.
[0025] Optionally, the real-time clock power supply circuit is provided with a delay circuit, and the delay circuit is connected to the first voltage comparator and the latch. The delay circuit is used to input the voltage state before the main power supply is powered off into the latch when the main power supply is powered off, so that the latch outputs the voltage state before the main power supply is powered off.
[0026] Optionally, the real-time clock power supply circuit is further provided with a second voltage comparator and a micro control unit;
[0027] The first input terminal of the second voltage comparator is connected to the second real-time clock power supply, and the second input terminal of the second voltage comparator is connected to the main power supply; the voltage of the first input terminal of the second voltage comparator is a second reference voltage; the second reference voltage is used for comparison with the voltage of the second real-time clock power supply;
[0028] The micro control unit is connected to the output end of the second voltage comparator; the micro control unit is used to output alarm information when the voltage of the second real-time clock power supply is less than or equal to the second reference voltage.
[0029] In a second aspect of the implementation of the present invention, a server is further provided, characterized in that the server has a power supply circuit as described in any one of the above items.
[0030] The embodiments of the present invention have the following advantages:
[0031] In an embodiment of the present invention, the main power supply is used to power the real-time clock, the first voltage comparator is connected to the real-time clock, the first input end of the first voltage comparator is connected to the first real-time clock power supply, the second input end of the first voltage comparator is connected to the main power supply, and the voltage of the first input end of the first voltage comparator is the first reference voltage; the first reference voltage is used to compare with the voltage of the first real-time clock power supply, the first real-time clock power supply is used to power the real-time clock when the main power supply is powered off and the voltage of the first real-time clock power supply is greater than the first reference voltage, the second real-time clock power supply is connected to the real-time clock, the second real-time clock power supply is used to power the real-time clock when the main power supply is powered off and the voltage of the first real-time clock power supply is less than or equal to the first reference voltage. The dual-channel real-time clock power supply of the real-time clock battery in the edge server is realized, the real-time clock voltage is monitored in real time, and the power supply line is automatically switched when the real-time clock battery is low voltage, thereby extending the service life of the RTC. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a schematic diagram of power supply relationships provided by some embodiments of the present invention;
[0033] Figure 2 It is a circuit diagram provided by some embodiments of the present invention. DETAILED DESCRIPTION
[0034] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0035] A server, also known as a server, is a core device that provides computing or application services in a network. It is usually composed of hardware and software such as a processor, a hard disk, and a memory, and has high reliability and powerful data processing capabilities. Depending on the application scenario and technical architecture, servers can be divided into various types, such as storage servers, cloud servers, AI servers, edge servers, etc. The server in the embodiment of the present application may be an edge server, and an edge server (Edge Server) refers to a server deployed at the edge of the network, close to the data source or user. This server is typically used to process and store data close to where the data is generated to reduce latency, increase response speed, and reduce the burden on the data center. Edge computing is a distributed computing framework that pushes computing resources and data storage to the edge of the network, closer to the data source.
[0036] Edge servers are usually equipped with an RTC, which is a hardware component responsible for maintaining accurate time and date information when the server is powered off or shut down. The RTC is usually powered by a small battery to ensure that time information is not lost even when the server is not running. In edge servers, the accuracy of the RTC is critical to ensure the correct operation of various applications and services. For example, in situations where the Network Time Protocol (NTP) is unavailable or inaccurate, the RTC can provide a reliable time reference. In addition, the accuracy of the RTC is particularly important for applications that require precise timestamps, such as financial transactions, scientific experiments, or security monitoring. Therefore, it is important to provide a reliable backup power supply for the RTC so that the RTC can continue to work.
[0037] Reference Figure 1-2In the server of the embodiment of the present invention, the real-time clock power supply circuit includes: a main power supply VCC, a real-time clock RTC, a first voltage comparator comparator1, a first real-time clock power supply RTC1, and a second real-time clock power supply RTC2; the main power supply VCC is used to power the real-time clock RTC; the first voltage comparator comparator1 is connected to the real-time clock RTC; the first input end of the first voltage comparator is connected to the first real-time clock power supply RTC1, and the second input end of the first voltage comparator comparator1 is connected to the main power supply VCC; the first voltage comparator comparator The voltage at the first input terminal of arator1 is a first reference voltage; the first reference voltage is used to compare with the voltage of the first real-time clock power supply RTC1; the first real-time clock power supply RTC1 is used to power the real-time clock RTC when the voltage of the first real-time clock power supply RTC1 is greater than the first reference voltage and the main power supply VCC is powered off; the second real-time clock power supply RTC2 is connected to the real-time clock RTC, and the second real-time clock power supply RTC2 is used to power the real-time clock RTC when the voltage of the first real-time clock power supply RTC1 is less than or equal to the first reference voltage and the main power supply VCC is powered off.
[0038] Specifically, a voltage comparator is an electronic circuit that compares the magnitude of two voltages and outputs a corresponding logic level based on the comparison result. The voltage comparator has two input terminals, usually marked as non-inverting input (+) and inverting input (-). The user applies the two voltages to be compared to these two input terminals respectively. The operational amplifier (Op-Amp) inside the voltage comparator will continuously compare the magnitudes of the two input voltages. If the voltage at the non-inverting input terminal is higher than the voltage at the inverting input terminal, the voltage comparator will output a high level voltage. If the voltage at the inverting input terminal is higher than the voltage at the non-inverting input terminal, the voltage comparator will output a low level voltage. By setting up a voltage comparator, the RTC battery voltage can be monitored in real time, which is more accurate than the method of regular monitoring to prevent continuous discharge of the RTC.
[0039] The power supply voltage of the main power supply when the edge server is working can be represented by VCC (Volt Current Condenser, power supply voltage), which can power the edge server. VCC is connected to RTC, and when the edge server is powered on, VCC can also power the RTC.
[0040] The embodiment of the present invention provides two power supply circuits for RTC, the first power supply circuit includes comparator 1 and RTC 1, and the second power supply circuit includes RTC 2. Comparator 1 is connected to RTC, the first input terminal of comparator 1 can be a non-inverting input terminal, the non-inverting input terminal of comparator 1 is connected to RTC 1, the second input terminal of comparator 1 can be an inverting input terminal, and the inverting input terminal of comparator 1 is connected to VCC.
[0041] The voltage at the inverting input terminal of comparator1 can be used as a reference voltage. The reference voltage refers to a reference voltage used for comparison with the input signal. In a voltage comparator circuit, the reference voltage is usually applied to the inverting input terminal of the comparator, while the non-inverting input terminal receives the input signal to be compared. In an embodiment of the present application, the first reference voltage can be set to the minimum voltage required for the RTC to work, that is, when the voltage of the RTC power supply is lower than the first reference voltage, it means that the RTC power supply voltage is too low and the RTC power supply is insufficient to power the RTC. Since VCC is generally higher than the minimum voltage of the RTC power supply to power the RTC, in the second power supply circuit, VCC needs to be divided so that the voltage at the inverting input terminal is the required reference voltage. VCC can be divided by setting two voltage-dividing resistors R1 and R2, and the size of R1 and R2 can be determined according to the required reference voltage.
[0042] In the embodiment of the present application, VCC can be connected to the inverting input terminal (-) of comparator1 after voltage division to obtain the first reference voltage value, and RTC1 can be connected to the non-inverting input terminal (+) of comparator1. When VCC is powered on, the magnitude relationship between the voltage of RTC1 and the first reference voltage can be determined to determine whether the voltage of RTC1 can power the RTC.
[0043] The first reference voltage can be used as a comparison reference and compared with the voltage of the first real-time clock power supply RTC1. When the voltage of RTC1 is greater than the first reference voltage, it means that RTC1 can power the RTC. When the edge server is powered on, the VCC of the edge server powers the RTC. When the edge server is powered off, that is, when the VCC is powered off, RTC1 can be used as a backup power supply of the RTC to power the RTC.
[0044] RTC2 is connected to RTC. If the voltage of RTC1 is not greater than the first reference voltage, it means that RTC1 is in a low voltage state and is insufficient to power RTC. When the edge server is powered on, the VCC of the edge server powers the RTC. When the edge server is powered off, that is, when the VCC is powered off, RTC2 can be used as a backup power supply for the RTC.
[0045] In the embodiment of the present application, when VCC is powered on, VCC supplies power to RTC, and at the same time, the power supply after VCC is powered off is determined, that is, after VCC is powered off, it is determined whether to supply power through RTC1 or RTC2.
[0046] It should be noted that the backup circuit of the edge server can also be set to multiple channels to better extend the power supply time for the RTC, which can be determined based on the motherboard space and actual needs.
[0047] Reference Figure 2 The server provided in the embodiment of the present invention may further include a latch U5, an inverter Q1, a first load switch Load Switch1, a second load switch Load Switch2, a first diode D1, and a second diode D2; the input end of the latch U5 is connected to the output end of the first voltage comparator comparator1, and the output end of the latch U5 is connected to the input end of the first load switch Load Switch1; the gate of the inverter Q1 is connected to the output end of the latch U5, the source of the inverter Q1 is connected to the input end of the second load switch Load Switch2, and the drain of the inverter Q1 is connected to the input end of the first load switch Load Switch1; the output end of the first load switch LoadSwitch1 and the output end of the second load switch Load Switch2 are connected to the real-time clock RTC; the anode of the first diode D1 is connected to the first real-time clock power supply RTC1, and the cathode of the first diode D1 is connected to the input end of the first load switch Load Switch1; the anode of the second diode D2 is connected to the main power supply VCC, and the cathode of the second diode D2 is connected to the input end of the first load switch Load Switch1.
[0048] Specifically, a latch is a basic digital circuit used to store 1-bit binary information (i.e., 0 or 1). It can receive an input signal at a certain moment and "latch" or "hold" the state of the signal until a new input is received or it is reset by an external signal. D is the input terminal of the latch; LE is the latch enable signal. When LE is a high-level voltage, the data at the input terminal D of the latch will be latched to the output terminal Q; Q is the output terminal of the latch, reflecting the data state currently latched by the latch; OE is the output enable signal. When OE is a low-level voltage, the output Q of the latch can be read by an external circuit. The latch can control the latching and output of data through the LE and OE signals to achieve temporary storage and protection of the data state. Table 1 is the truth table of the latch:
[0049] Table 1
[0050] Inputs Output OE LE D Q L H H H L H L L L L X no change H X X Z
[0051] Among them, Inputs represents the input level state; Output represents the output level state; L (Low) represents a low level voltage, usually corresponding to logic 0; H represents a high level voltage (High), usually corresponding to logic 1; X represents any state, indicating that the state of the logic bit can be a high level voltage or a low level voltage, which can be either 1 or 0; Z represents a high impedance state (High-Z) or a third state (Tri-State), indicating that the node presents a very high impedance to the rest of the circuit and absorbs almost no current; no change means that the level has not changed.
[0052] An inverter, also known as a NOT gate, inverts the logic state of an input signal, that is, converts a logic high voltage (usually represented as 1 or "true") to a logic low voltage (usually represented as 0 or "false"), and vice versa. In a digital circuit, a high voltage usually corresponds to a logic 1, and a low voltage corresponds to a logic 0. In some embodiments of the present invention, the inverter may be an NMOS tube (N-channel Metal-Oxide-Semiconductor Field-Effect Transistor), which may invert an enable signal.
[0053] An enable signal is a control signal used to activate or disable the function of an electronic circuit, module, or device. In digital circuits and systems, enable signals are often used to control data paths, sequential logic, memory access, power management, and the like. When the enable signal is a high-level voltage, it means that the signal is in an active state, usually indicating "enable" or "on", and when the enable signal is a low-level voltage, it means that the signal is in an inactive state, usually indicating "disable" or "off". Therefore, if the enable input of a circuit or module is designed to be valid at a high level voltage, then when a high-level voltage signal is input, the circuit or module will be activated, allowing it to perform the predetermined function; if the enable input of a circuit or module is designed to be valid at a low level voltage, then when a low-level voltage signal is input, the circuit or module will be activated, allowing it to perform the predetermined function.
[0054] The load switch is used to control the connection and disconnection of the power supply to the load (such as a circuit, device or system). The load switch is usually used in power management applications to realize the turning on, off, switching or protection of the power supply, and the turning on and off of the power supply is realized by the control pin. In an embodiment of the invention, the enable signal of the load switch is controlled by the output of the voltage comparator. When the voltage comparator outputs a high-level voltage, the enable signal of the load switch is high and the load switch is turned on. When the voltage comparator outputs a low-level voltage, the enable signal of the load switch is low and the load switch is turned off.
[0055] A diode is a basic semiconductor device that allows current to flow in only one direction, i.e., it has unidirectional conductivity. When the anode of the diode is at a positive voltage relative to the cathode, the diode is in a forward biased state and current can pass through. When the anode is at a negative voltage relative to the cathode, the diode is in a reverse biased state and current can hardly pass through.
[0056] In the embodiment of the invention, a latch U5 can be set in the circuit. When the edge server is powered off, that is, when VCC is 0, U5 can latch the input state of the edge server when it is powered on. For example, if the input of U5 is a high level voltage before power failure, then after power failure, U5 can latch the signal state and output a high level voltage. If the input of U5 is a low level voltage before power failure, then after power failure, the group can latch the signal state and output a low level voltage. Since the voltage of RTC1 is greater than the first reference voltage, comparator1 outputs a high level voltage, and U5 connected to comparator1 also outputs a high level voltage.
[0057] Latch U5 latches the high-level voltage state before power failure and outputs a high-level voltage. At this time, Load Switch1 connected to the output end of U5 inputs a high-level voltage, the enable signal of Load Switch1 is high, and Load Switch1 is turned on; Q1 connected to U5 inputs a high-level voltage, Q1 inverts the signal and outputs a low-level voltage, LoadSwitch2 connected to the output end of Q1 inputs a low-level voltage, the enable signal of Load Switch2 is low, and Load Switch2 is disconnected. At this time, RTC1 powers the RTC.
[0058] Further, when the main power source VCC supplies power to the real-time clock RTC, the first diode D1 is turned off, and the second diode D2 is turned on.
[0059] Specifically, in an embodiment of the present invention, when VCC is powered on, VCC may be 3.3V, and RTC1 is less than or equal to 3V. At this time, a forward voltage of 0.3V is applied across D2, and a reverse voltage of 0.3V is applied across D1. D2 is turned on, D1 is turned off, and RTC is powered by VCC.
[0060] Further, when the first real-time clock power supply RTC1 supplies power to the real-time clock RTC, the first diode D1 is turned on, the second diode D2 is turned off, the first voltage comparator comparator1 outputs U1 high-level voltage, the latch U5 outputs a high-level voltage, the first load switch Load Switch1 inputs a high-level voltage, the first load switch Load Switch1 is turned on, the inverter Q1 outputs a low-level voltage, the second load switch LoadSwitch2 inputs a low-level voltage, and the second load switch Load Switch1 is disconnected.
[0061] Specifically, when RTC1 supplies power to the RTC, VCC is in a power-off state, D1 is turned on, and D2 is turned off. RTC1 supplies power to the RTC, indicating that the RTC1 voltage is greater than the first reference voltage, comparator1 outputs a U1 high-level voltage, latch U5 also outputs a high-level voltage, Load Switch1 inputs a high-level voltage, and Load Switch1 is turned on; Q1 inverts the high-level voltage output by U5, U5 outputs a low-level voltage, Load Switch2 inputs a low-level voltage, and Load Switch2 is turned off. At this time, RTC1 supplies power to the RTC.
[0062] Reference Figure 2 The server provided in the embodiment of the present invention may also include a latch U5, an inverter Q1, a first load switch Load Switch1, a second load switch Load Switch2, a third diode D3, and a fourth diode D4; the input end of the latch U5 is connected to the output end of the first voltage comparator comparator1, and the output end of the latch U5 is connected to the input end of the first load switch Load Switch1; the gate of the inverter Q1 is connected to the output end of the latch U5, the source of the inverter Q1 is connected to the input end of the second load switch Load Switch2, and the drain of the inverter Q1 is connected to the input end of the first load switch Load Switch1; the output end of the first load switch LoadSwitch1 and the output end of the second load switch Load Switch2 are connected to the real-time clock RTC; the anode of the third diode D3 is connected to the second real-time clock power supply RTC2, and the cathode of the third diode D3 is connected to the input end of the second load switch Load Switch2; the anode of the fourth diode D4 is connected to the main power supply VCC, and the cathode of the fourth diode D4 is connected to the second load switch Load Switch2 input connection.
[0063] Specifically, in the embodiment of the invention, a latch U5 can be set in the circuit. When the edge server is powered off, that is, when VCC is 0, U5 can latch the input state of the edge server when it is powered on. For example, if the input of U5 is a high-level voltage before power failure, then after power failure, U5 can latch the signal state and output a high-level voltage. If the input of the latch is a low-level voltage before power failure, then after power failure, the latch can latch the signal state and output a low-level voltage. Since the voltage of RTC1 is greater than the first reference voltage, comparator1 outputs a high-level voltage, and U5 connected to comparator1 also outputs a high-level voltage.
[0064] Furthermore, when the main power source VCC supplies power to the real-time clock RTC, the third diode D3 is turned on and the fourth diode D4 is turned off.
[0065] Specifically, when VCC is powered on, VCC may be 3.3V, and RTC1 is less than or equal to 3V. At this time, a forward voltage of 0.3V is applied across D3, and a reverse voltage of 0.3V is applied across D4. D3 is turned on, D4 is turned off, and RTC is powered by VCC.
[0066] Furthermore, when the second real-time clock power supply RTC2 supplies power to the real-time clock RTC, the fourth diode D4 is turned on, the third diode D3 is turned off, the first voltage comparator comparator1 outputs a low level voltage, the latch U5 outputs a low level voltage, the first load switch Load Switch1 inputs a low level voltage, and the first load switch Load Switch1 is disconnected; the inverter Q1 outputs a high level voltage, the second load switch LoadSwitch2 inputs a high level voltage, and the second load switch Load Switch2 is turned on.
[0067] Specifically, U5 latches the low-level voltage state before power failure and outputs a low-level voltage. At this time, Load Switch1 connected to the output end of U5 inputs a low-level voltage, the enable signal of Load Switch1 is low, and Load Switch1 is disconnected; Q1 connected to U5 inputs a low-level voltage, Q1 inverts the signal, and outputs a high-level voltage, and the second load switch Load Switch2 connected to the output end of the inverter inputs a high-level voltage, the enable signal of Load Switch2 is high, and Load Switch1 is turned on. At this time, RTC2 supplies power to the RTC.
[0068] When RTC2 supplies power to RTC, D4 is turned on and D3 is turned off. Comparator1 outputs U1 low-level voltage, latch U5 is connected to comparator1 and also outputs low-level voltage, and then Load Switch1 inputs low-level voltage, LoadSwitch1 is disconnected, inverter Q1 inverts the input low-level voltage and outputs high-level voltage, Load Switch2 inputs high-level voltage, and Load Switch2 is disconnected.
[0069] Furthermore, in an embodiment of the present application, the real-time clock power supply circuit is provided with a delay circuit, and the delay circuit is connected to the first voltage comparator comparator1 and the latch U5. The delay circuit is used to input the voltage state of the main power supply VCC before power failure into the latch U5 when the main power supply VCC is powered off, so that the latch U5 outputs the voltage state of the main power supply VCC before power failure.
[0070] Specifically, a delay circuit is used to generate an output signal after a certain delay after the input signal arrives. This circuit is widely used in both digital and analog systems. For example, in timing control, signal processing, automatic control and communication systems, the delay circuit can achieve a delay of milliseconds to seconds or even longer. It should be noted that the delay circuit can be composed of a delay resistor and a delay capacitor. The delay time is determined by the resistance of the delay resistor and the capacitance of the delay capacitor. The specifications of the delay resistor and the delay capacitor can be selected according to the required delay time. When designing a delay circuit, it can be set as an adaptive delay circuit, which automatically adjusts the delay circuit according to the characteristics of the input signal to optimize system performance.
[0071] In the embodiment of the present invention, the delay circuit may be composed of a resistor R8 and a capacitor C3. When VCC is powered off, the voltage state before VCC is powered off is input into U5 through the delay circuit, and U5 outputs the voltage state before VCC is powered off.
[0072] For example, when Q is a low voltage, LE can still maintain a high voltage for a period of time, and Q outputs a high voltage. After the delay time, LE becomes low, and the Q output is latched, and will maintain a low voltage until LE becomes high again. The delay circuit can delay the signal state before power failure to input the latch, so that the latch latches the state before power failure and outputs a clear level state for the load switch or inverter to make corresponding logical judgments.
[0073] In other embodiments of the present invention, the first diode and the second diode are connected to the first filter capacitor C1, the third diode and the fourth diode are connected to the second filter capacitor C2, and the first filter capacitor C1 and the second filter capacitor C2 are used to filter the alternating current in the circuit.
[0074] Filter capacitors are mainly used to reduce voltage ripple, smooth output voltage, and provide a stable DC power supply. Filter capacitors are usually connected to the output end of the rectifier to filter out the rectified AC component, thereby obtaining a smoother DC voltage. The working principle of the filter capacitor is based on the charge and discharge characteristics of the capacitor. When the rectifier output voltage is higher than the voltage on the capacitor, the capacitor is charged; when the output voltage is lower than the voltage on the capacitor, the capacitor is discharged to provide current to the load. In this way, the capacitor is like an energy storage device that can release the stored charge when the voltage drops, thereby reducing voltage fluctuations. In an embodiment of the present invention, adding a filter capacitor to the circuit can filter the AC power in the circuit and provide a more stable DC power.
[0075] In an embodiment of the present invention, the main power supply is used to power the real-time clock, the first voltage comparator is connected to the real-time clock, the first input end of the first voltage comparator is connected to the first real-time clock power supply, the second input end of the first voltage comparator is connected to the main power supply, and the voltage of the first input end of the first voltage comparator is the first reference voltage; the first reference voltage is used to compare with the voltage of the first real-time clock power supply, the first real-time clock power supply is used to power the real-time clock when the main power supply is powered off and the voltage of the first real-time clock power supply is greater than the first reference voltage, the second real-time clock power supply is connected to the real-time clock, the second real-time clock power supply is used to power the real-time clock when the main power supply is powered off and the voltage of the first real-time clock power supply is less than or equal to the first reference voltage. The dual-channel real-time clock power supply of the real-time clock battery in the edge server is realized, the real-time clock voltage is monitored in real time, and the power supply line is automatically switched when the real-time clock battery is low voltage, thereby extending the service life of the RTC.
[0076] Reference Figure 2 The real-time clock power supply circuit provided by the embodiment of the present invention also includes a second voltage comparator and a micro control unit; the first input end of the second voltage comparator is connected to the second real-time clock power supply, and the second input end of the second voltage comparator is connected to the main power supply; the voltage of the first input end of the second voltage comparator is a second reference voltage; the second reference voltage is used to compare with the voltage of the second real-time clock power supply; the micro control unit is connected to the output end of the second voltage comparator; the micro control unit is used to output an alarm message when the voltage of the second real-time clock power supply is less than or equal to the second reference voltage.
[0077] In the embodiment of the present application, a second voltage comparator comparator2 is set in the second circuit, and the second reference voltage can be set to the lowest voltage that the RTC power supply can supply power to the RTC, that is, when the voltage of the RTC power supply is lower than the reference voltage, it indicates that the RTC power supply voltage is too low, and the RTC power supply is insufficient to supply power to the RTC. Since VCC is generally higher than the lowest voltage that the RTC power supply can supply power to the RTC, it is necessary to divide the voltage of VCC in the second power supply circuit, and the voltage of VCC can be divided by setting two voltage-dividing resistors R3 and R4, and the size of R3 and R4 can be determined according to the required reference voltage size.
[0078] In the embodiment of the present application, VCC can be connected to the inverting input terminal (-) of the second voltage comparator after voltage division to obtain the second reference voltage value, and RTC2 can be connected to the non-inverting input terminal (+) of the second voltage comparator comparator2. When the main power supply is powered on, the magnitude relationship between the voltage of RTC2 and the second reference voltage can be determined to determine whether the voltage of RTC2 can power the RTC.
[0079] If the voltage of RTC2 is not greater than the second reference voltage, it means that RTC2 is in a low voltage state and is insufficient to power the RTC. At this time, it means that the voltages of the two power supplies of the RTC are both lower than the minimum voltage required for the RTC to work. The second voltage comparator can output the low-level voltage to the microcontroller unit (MCU), and the MCU can output it through the serial port or feedback it to the user through the UART (Universal Asynchronous Receiver / Transmitter, serial communication protocol) channel between the BMC / CPU to remind the user to replace the power supply in time.
[0080] The embodiment of the present invention has the following advantages: the main power supply is used to power the real-time clock, the first voltage comparator is connected to the real-time clock, the first input end of the first voltage comparator is connected to the first real-time clock power supply, the second input end of the first voltage comparator is connected to the main power supply, and the voltage of the first input end of the first voltage comparator is the first reference voltage; the first reference voltage is used to compare with the voltage of the first real-time clock power supply, the first real-time clock power supply is used to power the real-time clock when the main power supply is powered off and the voltage of the first real-time clock power supply is greater than the first reference voltage, the second real-time clock power supply is connected to the real-time clock, and the second real-time clock power supply is used to power the real-time clock when the main power supply is powered off and the voltage of the first real-time clock power supply is less than or equal to the first reference voltage. The dual-channel real-time clock power supply of the real-time clock battery in the edge server is realized, the real-time clock voltage is monitored in real time, and the power supply line is automatically switched when the real-time clock battery is low in voltage, thereby extending the service life of the RTC, and the voltage alarm circuit is connected to the MCU, and the MCU or BMC can decide to report to the user end.
[0081] Reference Figure 1-2 , an embodiment of the present invention further provides a server, which has the power supply circuit in the above embodiment, including: a main power supply, a real-time clock, a first voltage comparator, a first real-time clock power supply, and a second real-time clock power supply; the main power supply is used to power the real-time clock; the first voltage comparator is connected to the real-time clock; the first input end of the first voltage comparator is connected to the first real-time clock power supply, and the second input end of the first voltage comparator is connected to the main power supply; the voltage of the first input end of the first voltage comparator is a first reference voltage; the first reference voltage is used to compare with the voltage of the first real-time clock power supply; the first real-time clock power supply is used to power the real-time clock when the voltage of the first real-time clock power supply is greater than the first reference voltage and the main power supply is powered off; the second real-time clock power supply is connected to the real-time clock, and the second real-time clock power supply is used to power the real-time clock when the voltage of the first real-time clock power supply is less than or equal to the first reference voltage and the main power supply is powered off.
[0082] The embodiment of the present invention has the following advantages: the main power supply is used to power the real-time clock, the first voltage comparator is connected to the real-time clock, the first input end of the first voltage comparator is connected to the first real-time clock power supply, the second input end of the first voltage comparator is connected to the main power supply, and the voltage of the first input end of the first voltage comparator is the first reference voltage; the first reference voltage is used to compare with the voltage of the first real-time clock power supply, the first real-time clock power supply is used to power the real-time clock when the main power supply is powered off and the voltage of the first real-time clock power supply is greater than the first reference voltage, the second real-time clock power supply is connected to the real-time clock, and the second real-time clock power supply is used to power the real-time clock when the main power supply is powered off and the voltage of the first real-time clock power supply is less than or equal to the first reference voltage. The dual-channel real-time clock power supply of the real-time clock battery in the edge server is realized, the real-time clock voltage is monitored in real time, and the power supply line is automatically switched when the real-time clock battery is low in voltage, thereby extending the service life of the RTC, and the voltage alarm circuit is connected to the MCU, and the MCU or BMC can decide to report to the user end.
[0083] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0084] It should be noted that when a component is referred to as being "fixed to" another component, it may be directly on the other component or there may also be a component centered. When a component is considered to be "connected to" another component, it may be directly connected to the other component or there may also be a component centered. When a component is considered to be "set on" another component, it may be directly set on the other component or there may also be a component centered. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0085] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
[0087] The real-time clock power supply circuit and the server in the server provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the structure of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A real-time clock power supply circuit in a server, characterized in that: include: A main power supply, a real-time clock, a first voltage comparator, a first real-time clock power supply, and a second real-time clock power supply; The main power supply is used to supply power to the real-time clock; The first voltage comparator is connected to the real-time clock; the first input end of the first voltage comparator is connected to the first real-time clock power supply, and the second input end of the first voltage comparator is connected to the main power supply; the voltage of the first input end of the first voltage comparator is a first reference voltage; The first reference voltage is used for comparison with the voltage of the first real-time clock power supply; the first real-time clock power supply is used for powering the real-time clock when the voltage of the first real-time clock power supply is greater than the first reference voltage and the main power supply is powered off; The second real-time clock power supply is connected to the real-time clock; the second real-time clock power supply is used to power the real-time clock when the voltage of the first real-time clock power supply is less than or equal to the first reference voltage and the main power supply is powered off.
2. The power supply circuit according to claim 1, characterized in that: The real-time clock power supply circuit is also provided with a latch, an inverter, a first load switch, a second load switch, a first diode, and a second diode; The input end of the latch is connected to the output end of the first voltage comparator, and the output end of the latch is connected to the input end of the first load switch; The gate of the inverter is connected to the output end of the latch, the source of the inverter is connected to the input end of the second load switch, and the drain of the inverter is connected to the input end of the first load switch; The output end of the first load switch and the output end of the second load switch are connected to the real-time clock; The anode of the first diode is connected to the first real-time clock power supply, and the cathode of the first diode is connected to the input end of the first load switch; An anode of the second diode is connected to the main power supply, and a cathode of the second diode is connected to an input end of the first load switch.
3. The power supply circuit according to claim 2, characterized in that: When the main power supply supplies power to the real-time clock, the first diode is turned off and the second diode is turned on.
4. The power supply circuit according to claim 2, characterized in that: When the first real-time clock power supply supplies power to the real-time clock, the first diode is turned on, the second diode is turned off, the first voltage comparator outputs a high-level voltage, the latch outputs a high-level voltage, the first load switch inputs a high-level voltage, the first load switch is turned on, the inverter outputs a low-level voltage, the second load switch inputs a low-level voltage, and the second load switch is turned off.
5. The power supply circuit according to claim 1, characterized in that: The real-time clock power supply circuit is also provided with a latch, an inverter, a first load switch, a second load switch, a third diode, and a fourth diode; The input end of the latch is connected to the output end of the first voltage comparator, and the output end of the latch is connected to the input end of the first load switch; The gate of the inverter is connected to the output end of the latch, the source of the inverter is connected to the input end of the second load switch, and the drain of the inverter is connected to the input end of the first load switch; The output end of the first load switch and the output end of the second load switch are connected to the real-time clock; The anode of the third diode is connected to the second real-time clock power supply, and the cathode of the third diode is connected to the input end of the second load switch; An anode of the fourth diode is connected to the main power supply, and a cathode of the fourth diode is connected to the input end of the second load switch.
6. The power supply circuit according to claim 5, characterized in that: When the main power supply supplies power to the real-time clock, the third diode is turned on and the fourth diode is turned off.
7. The power supply circuit according to claim 5, characterized in that: When the second real-time clock power supply supplies power to the real-time clock, the fourth diode is turned on, the third diode is turned off, the first voltage comparator outputs a low level voltage, the latch outputs a low level voltage, the first load switch inputs a low level voltage, and the first load switch is disconnected; the inverter outputs a high level voltage, the second load switch inputs a high level voltage, and the second load switch is turned on.
8. The power supply circuit according to claim 2 or 5, characterized in that: The real-time clock power supply circuit is provided with a delay circuit, which is connected to the first voltage comparator and the latch. The delay circuit is used to input the voltage state before the main power supply is powered off into the latch when the main power supply is powered off, so that the latch outputs the voltage state before the main power supply is powered off.
9. The power supply circuit according to claim 1, characterized in that: The real-time clock power supply circuit is also provided with a second voltage comparator and a micro control unit; The first input terminal of the second voltage comparator is connected to the second real-time clock power supply, and the second input terminal of the second voltage comparator is connected to the main power supply; the voltage of the first input terminal of the second voltage comparator is a second reference voltage; The second reference voltage is used for comparison with the voltage of the second real-time clock power supply; The micro control unit is connected to the output end of the second voltage comparator; the micro control unit is used to output alarm information when the voltage of the second real-time clock power supply is less than or equal to the second reference voltage.
10. A server, characterized in that: The server has the power supply circuit according to any one of claims 1 to 9.
