Intelligent computer power supply monitoring system based on single-chip microcomputer

By introducing a microcontroller into the computer power supply and building an intelligent monitoring system, the complexity and inefficiency of traditional measurement and control methods are solved, high-precision power management and communication are achieved, and the level of intelligence is improved.

CN119757842APending Publication Date: 2025-04-04BEIJING INST OF COMP TECH & APPL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411616755.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

Traditional computer power supply measurement and control methods have complex connections, low efficiency, low accuracy, and cannot realize online configuration parameters.

Method used

An intelligent computer power monitoring system based on a microcontroller is adopted, including DC/DC module circuit, voltage detection circuit, current detection circuit, voltage digital regulation circuit, digital switch remote control circuit, microcontroller core circuit and SCI communication interface circuit, so as to realize the management and communication of computer power through a microcontroller.

Benefits of technology

It realizes high-precision detection and control of computer power supply, simplifies the measurement and control process, has the ability to configure parameters online, and improves the intelligence level of computer power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119757842A_ABST
    Figure CN119757842A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent computer power supply monitoring system based on a single-chip microcomputer, which comprises a DC / DC module circuit, a voltage detection circuit, a current detection circuit, a voltage digital regulation circuit, a digital switch remote control circuit, a single-chip microcomputer core circuit and an SCI communication interface circuit, the output end of the DC / DC module circuit is connected with the input end of the voltage detection circuit and the input end of the current detection circuit, and the output end of the voltage digital adjusting circuit and the output end of the digital switch remote control circuit are connected with the input end of the DC / DC module circuit. The output end of the voltage detection circuit and the output end of the current detection circuit are connected with the input end of the single-chip microcomputer core circuit, and the output end of the single-chip microcomputer core circuit is connected with the input end of the voltage digital adjusting circuit, the input end of the digital switch remote control circuit and the input end of the SCI communication interface circuit. The output end of the SCI communication interface circuit is connected with the input end of the single-chip microcomputer core circuit. The method has the advantages of high detection precision, high control precision and high anti-interference capability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of computer power supply monitoring system circuit design, and specifically discloses an intelligent computer power supply monitoring system based on a single chip microcomputer. Background Art

[0002] Intelligence is a development trend of electronic products and an important means to improve the performance of weapon systems. With the continuous development of modern weapon systems, the demand for intelligent power supplies in the field of military computer power supplies is increasing. The measurement and control methods of traditional computer power supplies are complex, inefficient, and not accurate, and cannot realize online configuration of parameters. Summary of the invention

[0003] The purpose of the present invention is to provide an intelligent computer power supply monitoring system based on a single-chip microcomputer, so as to solve the problems of complex wiring, low efficiency, low precision and inability to realize online configuration parameters of traditional computer power supply measurement and control methods. By introducing a single-chip microcomputer to realize the management and communication of computer power supply, the demand for intelligent design of computer power supply can be met.

[0004] The present invention provides an intelligent computer power supply monitoring system based on a single-chip microcomputer, comprising a DC / DC module circuit, a voltage detection circuit, a current detection circuit, a voltage digital adjustment circuit, a digital switch remote control circuit, a single-chip microcomputer core circuit and an SCI communication interface circuit, wherein the output end of the DC / DC module circuit is connected to the input end of the voltage detection circuit and the input end of the current detection circuit, the output end of the voltage digital adjustment circuit and the output end of the digital switch remote control circuit are connected to the input end of the DC / DC module circuit, the output end of the voltage detection circuit and the output end of the current detection circuit are connected to the input end of the single-chip microcomputer core circuit, the output end of the single-chip microcomputer core circuit is connected to the input end of the voltage digital adjustment circuit, the input end of the digital switch remote control circuit and the input end of the SCI communication interface circuit, and the output end of the SCI communication interface circuit is connected to the input end of the single-chip microcomputer core circuit.

[0005] Further, the DC / DC module circuit includes a filter capacitor C1, a filter capacitor C2, a DC / DC power module G1, a filter capacitor C3 and a filter capacitor C4, wherein the +Vin end of the DC / DC power module G1 serves as an input high end Vi+, the -Vin end of the DC / DC power module G1 serves as an input low end Vi-, the filter capacitor C1 is connected in parallel between the input high end Vi+ and the input low end Vi-, the filter capacitor C3 is connected in parallel between the input low end Vi- and the casing ground, the filter capacitor C4 is connected in parallel between the output low end Vo- and the casing ground, the Vo1 end of the DC / DC power module G1 serves as an output high end Vo+, the GND end of the DC / DC power module G1 serves as an output low end Vo-, and the filter capacitor C2 is connected in parallel between the output high end Vo+ and the output low end Vo-.

[0006] Further, the voltage detection circuit includes a potentiometer VR1, a filter capacitor C9, a filter resistor R2, a filter capacitor C10, a filter capacitor C11, an operational amplifier U2A, a filter resistor R3 and a filter capacitor C12, wherein a fixed end of the potentiometer VR1 is used as an input high end Vo+, another fixed end of the potentiometer VR1 is used as a signal ground, an adjustable end of the potentiometer VR1 is connected to one end of the filter capacitor C9 and one end of the filter resistor R2, the other end of the filter capacitor C9 is connected to the signal ground, and the other end of the filter resistor R2 is connected to one end of the filter capacitor C10 and the operational amplifier U 2A is connected to the non-inverting input terminal of the operational amplifier U2A, the other end of the filter capacitor C10 is connected to the signal ground, the inverting input terminal of the operational amplifier U2A is connected to the output terminal of the operational amplifier U2A, the positive power supply terminal of the operational amplifier U2A is connected to the power supply VCC and one end of the filter capacitor C11, the other end of the filter capacitor C11 is connected to the signal ground, the negative power supply terminal of the operational amplifier U2A is connected to the signal ground, the output terminal of the operational amplifier U2A is connected to one end of the filter resistor R3, the other end of the filter resistor R3 is connected to one end of the filter capacitor C12 and serves as the output terminal ADC0, and the other end of the filter capacitor C12 is connected to the signal ground.

[0007] Furthermore, the current detection circuit includes a Hall current sensor chip U3, a filter capacitor C13, a filter capacitor C14, a filter capacitor C15, a voltage divider resistor R4 and a voltage divider resistor R5, wherein the IP+ end of the Hall current sensor chip U3 serves as an input end Vo, the IP- end of the Hall current sensor chip U3 serves as an output end Vom, the Vcc end of the Hall current sensor chip U3 is connected to the power supply VCC and one end of the filter capacitor C13, the other end of the filter capacitor C13 is connected to the signal ground, the FILTER end of the Hall current sensor chip U3 is connected to one end of the filter capacitor C14, the other end of the filter capacitor C14 is connected to the signal ground and the GND end of the Hall current sensor chip U3, the Vout end of the Hall current sensor chip U3 is connected to one end of the voltage divider resistor R4, the other end of the voltage divider resistor R4 is connected to one end of the voltage divider resistor R5 and serves as the output end ADC1, the other end of the voltage divider resistor R5 is connected to the signal ground, and the filter capacitor C15 is connected in parallel with the voltage divider resistor R5.

[0008] Furthermore, the voltage digital regulation circuit includes an operational amplifier U2B, a filter resistor R6, a filter capacitor C16, a filter resistor R7, a filter capacitor C17, a proportional amplification resistor R8, a potentiometer VR2, a proportional amplification resistor R9, a filter capacitor C18 and a current limiting resistor R10, wherein one end of the filter resistor R6 is used as an input high-end PWM, the other end of the filter resistor R6 is connected to one end of the filter capacitor C16 and one end of the filter resistor R7, the other end of the filter capacitor C16 is connected to a signal ground, the other end of the filter resistor R7 is connected to the in-phase input end of the operational amplifier U2B and one end of the filter capacitor C17, and the other end of the filter capacitor C17 is connected to the signal ground , one end of the proportional amplifying resistor R8 is connected to the signal ground, one end of the proportional amplifying resistor R8 is connected to the signal ground, the other end of the proportional amplifying resistor R8 is connected to the adjustable end of the potentiometer VR2 and a fixed end of the potentiometer VR2, the other fixed end of the potentiometer VR2 is connected to the inverting input end of the operational amplifier U2B, one end of the proportional amplifying resistor R9 is connected to the inverting input end of the operational amplifier U2B, the other end of the proportional amplifying resistor R9 is connected to the output end of the operational amplifier U2B, the filter capacitor C18 is connected in parallel at both ends of the proportional amplifying resistor R9, one end of the current limiting resistor R10 is connected to the output end of the operational amplifier U2B, and the other end of the current limiting resistor R10 serves as the output high end Vt.

[0009] Furthermore, the digital switch remote control circuit includes a current limiting resistor R11, a current limiting resistor R12, a transistor S1, an isolation optocoupler B1 and a diode D2, wherein one end of the current limiting resistor R12 serves as an input high end IO, the other end of the current limiting resistor R12 is connected to the base of the transistor S1, the emitter of the transistor S1 is connected to the signal ground, the collector of the transistor S1 is connected to the cathode of the light-emitting diode of the isolation optocoupler B1, one end of the current limiting resistor R11 is connected to the anode of the light-emitting diode of the isolation optocoupler B1, the other end of the current limiting resistor R11 is connected to the power supply VCC, the cathode of the diode D2 is connected to the collector of the isolation optocoupler B1 receiving transistor, the anode of the diode D2 serves as an output high end REM, and the emitter of the isolation optocoupler B1 receiving transistor serves as an output low end Vi-.

[0010] Furthermore, the core circuit of the single-chip microcomputer includes a single-chip microcomputer U1, an ISP program download interface JP1, a crystal oscillator Y1, a starting capacitor C5, a starting capacitor C6, a filter capacitor C7, a pull-up resistor R1, a diode D1, a button switch SW and a filter capacitor C8, wherein the PC0 end of the single-chip microcomputer U1 is used as an input high-end ADC0, the PC1 end of the single-chip microcomputer U1 is used as an input high-end ADC1, the PD0 end of the single-chip microcomputer U1 is used as an input high-end mRXD, the VCC end of the single-chip microcomputer U1 is connected to the power supply VCC, the GND end of the single-chip microcomputer U1 is connected to the signal ground, the filter capacitor C7 is connected in parallel between the VCC end and the signal ground of the single-chip microcomputer U1, the PB3 end of the single-chip microcomputer U1 is connected to the 1st pin of the ISP program download interface JP1, the PB4 end of the single-chip microcomputer U1 is connected to the 9th pin of the ISP program download interface JP1, the PB5 end of the single-chip microcomputer U1 is connected to the 7th pin of the ISP program download interface JP1, the 2nd pin of the ISP program download interface JP1 is connected to the power supply VCC, and the ISP program Pins 4, 6, 8, and 10 of the ISP program download interface JP1 are connected to the signal ground. Pin 5 of the ISP program download interface JP1 is connected to the PC6 terminal of the microcontroller U1. The crystal oscillator Y1 is connected in parallel between the PB6 terminal of the microcontroller U1 and the PB7 terminal of the microcontroller U1. One end of the starting capacitor C5 is connected to the PB6 terminal of the microcontroller U1, and the other end of the starting capacitor C5 is connected to the signal ground. One end of the starting capacitor C6 is connected to the PB7 terminal of the microcontroller U1, and the other end of the starting capacitor C6 is connected to the signal ground. The diode The cathode of D1 and one end of the pull-up resistor R1 are connected to the power supply VCC, the anode of the diode D1 and the other end of the pull-up resistor R1 are connected to the PC6 terminal of the microcontroller U1, the push button switch SW is connected in parallel between the PC6 terminal of the microcontroller U1 and the signal ground, the filter capacitor C8 is connected in parallel between the two ends of the push button switch SW, the PB1 terminal of the microcontroller U1 is used as an output high-end PWM, the PB2 terminal of the microcontroller U1 is used as an output high-end IO, and the PD1 terminal of the microcontroller U1 is used as an output high-end mTXD.

[0011] Further, the SCI communication interface circuit includes an RS232 interface chip U4, a filter capacitor C20, a filter capacitor C19, a filter capacitor C21, a filter capacitor C22 and a filter capacitor C23, wherein the T1IN terminal of the RS232 interface chip U4 is used as an input high-end mTXD, the Vcc terminal of the RS232 interface chip U4 is connected to a power supply VCC, the GND terminal of the RS232 interface chip U4 is connected to a signal ground, the filter capacitor C20 is connected in parallel between the Vcc terminal of the RS232 interface chip U4 and the signal ground, and the filter capacitor C21 is connected to the signal ground. Capacitor C19 is connected in parallel between the power supply VCC and the V+ terminal of the RS232 interface chip U4, the filter capacitor C21 is connected in parallel between the signal ground and the V- terminal of the RS232 interface chip U4, the filter capacitor C22 is connected in parallel between the C1+ terminal of the RS232 interface chip U4 and the C1- terminal of the RS232 interface chip U4, the filter capacitor C23 is connected in parallel between the C2+ terminal of the RS232 interface chip U4 and the C2- terminal of the RS232 interface chip U4, and the R1OUT terminal of the RS232 interface chip U4 serves as the output high end mRXD.

[0012] The present invention manages and communicates with computer power supplies by introducing a single-chip microcomputer, thereby realizing the design requirements of intelligent monitoring of computer power supplies, having high detection accuracy, control accuracy and anti-interference capability, making traditional computer power supplies have the advantages of simple measurement and control, accurate control, etc., and improving the intelligence level of computer power supplies. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a principle block diagram of the present invention;

[0014] Figure 2 The schematic diagram of the DC / DC module circuit of the present invention;

[0015] Figure 3 It is the principle diagram of the voltage detection circuit of the present invention;

[0016] Figure 4 is a schematic diagram of a current detection circuit of the present invention;

[0017] Figure 5 This is a schematic diagram of a voltage digital regulation circuit of the present invention;

[0018] Figure 6 This is a schematic diagram of a digital switch remote control circuit of the present invention;

[0019] Figure 7 The core circuit schematic diagram of the single chip microcomputer of the present invention;

[0020] Figure 8 The schematic diagram of the SCI communication interface circuit of the present invention;

[0021] Fig. 9It is a flow chart of the single chip microcomputer software initialization program of the present invention;

[0022] Fig.10 It is the main program flow chart of the single chip microcomputer software of the present invention;

[0023] Fig.11 It is a flow chart of the sampling and filtering subroutine of the single-chip microcomputer software of the present invention;

[0024] Fig.12 The present invention is a flow chart of the single-chip microcomputer software serial communication subroutine. DETAILED DESCRIPTION

[0025] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.

[0026] In the present invention, the power supply is intelligentized by introducing a single chip microcomputer to manage and communicate with the power supply in the design. Aiming at the demand for intelligence in the field of military computer power supply, the intelligent design focuses on power supply parameter testing, control design and adding configuration functions.

[0027] In a specific embodiment of the present invention, the intelligent computer power monitoring system is as follows: Figure 1 As shown, it includes a DC / DC module circuit (1), a voltage detection circuit (2), a current detection circuit (3), a voltage digital adjustment circuit (4), a digital switch remote control circuit (5), a single chip microcomputer core circuit (6) and an SCI communication interface circuit (7).

[0028] Among them, the DC / DC module circuit is as follows Figure 2 As shown, it includes a filter capacitor C1, a filter capacitor C2, a DC / DC power supply module G1, a filter capacitor C3, and a filter capacitor C4.

[0029] Voltage detection circuit such as Figure 3 As shown, it includes a potentiometer VR1, a filter capacitor C9, a filter resistor R2, a filter capacitor C10, a filter capacitor C11, an operational amplifier U2A, a filter resistor R3, and a filter capacitor C12.

[0030] Current detection circuit such as Figure 4 As shown, it includes a Hall current sensor chip U3, a filter capacitor C13, a filter capacitor C14, a filter capacitor C15, a voltage divider resistor R4, and a voltage divider resistor R5.

[0031] Voltage digital regulation circuit such as Figure 5 As shown, it includes an operational amplifier U2B, a filter resistor R6, a filter capacitor C16, a filter resistor R7, a filter capacitor C17, a proportional amplifying resistor R8, a potentiometer VR2, a proportional amplifying resistor R9, a filter capacitor C18, and a current limiting resistor R10.

[0032] Digital switch remote control circuit such as Figure 6 As shown, it includes a current limiting resistor R11, a current limiting resistor R12, a transistor S1, an isolation optocoupler B1, and a diode D2.

[0033] The core circuit of the microcontroller is as follows Figure 7 As shown, it includes a single chip microcomputer U1, an ISP program download interface JP1, a crystal oscillator Y1, an oscillator starting capacitor C5, an oscillator starting capacitor C6, a filter capacitor C7, a pull-up resistor R1, a diode D1, a push button switch SW, and a filter capacitor C8.

[0034] SCI communication interface circuit Figure 8 As shown, it includes RS232 interface chip U4, filter capacitor C20, filter capacitor C19, filter capacitor C21, filter capacitor C22, and filter capacitor C23.

[0035] The output end of the DC / DC module circuit (1) is connected to the input end of the voltage detection circuit (2) and the input end of the current detection circuit (3); the output end of the voltage digitization regulation circuit (4) and the output end of the digital switch remote control circuit (5) are connected to the input end of the DC / DC module circuit (1); the output end of the voltage detection circuit (2) and the output end of the current detection circuit (3) are connected to the input end of the single-chip microcomputer core circuit (6); the output end of the single-chip microcomputer core circuit (6) is connected to the input end of the voltage digitization regulation circuit (4), the input end of the digital switch remote control circuit (5) and the input end of the SCI communication interface circuit (7); and the output end of the SCI communication interface circuit (7) is connected to the input end of the single-chip microcomputer core circuit (6).

[0036] In the DC / DC module circuit, the +Vin end of the DC / DC power module G1 serves as the input high end Vi+, the -Vin end of the DC / DC power module G1 serves as the input low end Vi-, the filter capacitor C1 is connected in parallel between the input high end Vi+ and the input low end Vi-, the filter capacitor C3 is connected in parallel between the input low end Vi- and the chassis ground, the filter capacitor C4 is connected in parallel between the output low end Vo- and the chassis ground, the Vo1 end of the DC / DC power module G1 serves as the output high end Vo+, the GND end of the DC / DC power module G1 serves as the output low end Vo-, and the filter capacitor C2 is connected in parallel between the output high end Vo+ and the output low end Vo-.

[0037] In the voltage detection circuit, one fixed end of the potentiometer VR1 serves as the input high end Vo+, the other fixed end of the potentiometer VR1 serves as the signal ground, the adjustable end of the potentiometer VR1 is connected to one end of the filter capacitor C9 and one end of the filter resistor R2, the other end of the filter capacitor C9 is connected to the signal ground, the other end of the filter resistor R2 is connected to one end of the filter capacitor C10 and the in-phase input end of the operational amplifier U2A, the other end of the filter capacitor C10 is connected to the signal ground, the inverting input end of the operational amplifier U2A is connected to the output end of the operational amplifier U2A, the positive power supply end of the operational amplifier U2A is connected to the power supply VCC and one end of the filter capacitor C11, the other end of the filter capacitor C11 is connected to the signal ground, the negative power supply end of the operational amplifier U2A is connected to the signal ground, the output end of the operational amplifier U2A is connected to one end of the filter resistor R3, the other end of the filter resistor R3 is connected to one end of the filter capacitor C12 and serves as the output end ADC0, and the other end of the filter capacitor C12 is connected to the signal ground.

[0038] In the current detection circuit, the IP+ end of the Hall current sensor chip U3 serves as an input end Vo, the IP- end of the Hall current sensor chip U3 serves as an output end Vom, the Vcc end of the Hall current sensor chip U3 is connected to the power supply VCC and one end of the filter capacitor C13, the other end of the filter capacitor C13 is connected to the signal ground, the FILTER end of the Hall current sensor chip U3 is connected to one end of the filter capacitor C14, the other end of the filter capacitor C14 is connected to the signal ground and the GND end of the Hall current sensor chip U3, the Vout end of the Hall current sensor chip U3 is connected to one end of the voltage divider resistor R4, the other end of the voltage divider resistor R4 is connected to one end of the voltage divider resistor R5 and serves as the output end ADC1, the other end of the voltage divider resistor R5 is connected to the signal ground, and the filter capacitor C15 is connected in parallel with the voltage divider resistor R5.

[0039] In the voltage digital regulation circuit, one end of the filter resistor R6 is used as the input high-end PWM, the other end of the filter resistor R6 is connected to one end of the filter capacitor C16 and one end of the filter resistor R7, the other end of the filter capacitor C16 is connected to the signal ground, the other end of the filter resistor R7 is connected to the in-phase input end of the operational amplifier U2B and one end of the filter capacitor C17, the other end of the filter capacitor C17 is connected to the signal ground, one end of the proportional amplification resistor R8 is connected to the signal ground, one end of the proportional amplification resistor R8 is connected to the signal ground, the other end of the proportional amplification resistor R8 is connected to the adjustable end of the potentiometer VR2 and a fixed end of the potentiometer VR2, the other fixed end of the potentiometer VR2 is connected to the inverting input end of the operational amplifier U2B, one end of the proportional amplification resistor R9 is connected to the inverting input end of the operational amplifier U2B, the other end of the proportional amplification resistor R9 is connected to the output end of the operational amplifier U2B, the filter capacitor C18 is connected in parallel to the two ends of the proportional amplification resistor R9, one end of the current limiting resistor R10 is connected to the output end of the operational amplifier U2B, and the other end of the current limiting resistor R10 is used as the output high-end Vt.

[0040] In the digital switch remote control circuit, one end of the current limiting resistor R12 serves as the input high end IO, the other end of the current limiting resistor R12 is connected to the base of the transistor S1, the emitter of the transistor S1 is connected to the signal ground, the collector of the transistor S1 is connected to the cathode of the light emitting diode of the isolation optocoupler B1, one end of the current limiting resistor R11 is connected to the anode of the light emitting diode of the isolation optocoupler B1, the other end of the current limiting resistor R11 is connected to the power supply VCC, the cathode of the diode D2 is connected to the collector of the receiving transistor of the isolation optocoupler B1, the anode of the diode D2 serves as the output high end REM, and the emitter of the receiving transistor of the isolation optocoupler B1 serves as the output low end Vi-.

[0041] In the core circuit of the single-chip microcomputer, the PC0 end of the single-chip microcomputer U1 is used as an input high-end ADC0, the PC1 end of the single-chip microcomputer U1 is used as an input high-end ADC1, the PD0 end of the single-chip microcomputer U1 is used as an input high-end mRXD, the VCC end of the single-chip microcomputer U1 is connected to the power supply VCC, the GND end of the single-chip microcomputer U1 is connected to the signal ground, the filter capacitor C7 is connected in parallel between the VCC end and the signal ground of the single-chip microcomputer U1, the PB3 end of the single-chip microcomputer U1 is connected to the 1st pin of the ISP program download interface JP1, the PB4 end of the single-chip microcomputer U1 is connected to the 9th pin of the ISP program download interface JP1, the PB5 end of the single-chip microcomputer U1 is connected to the 7th pin of the ISP program download interface JP1, the 2nd pin of the ISP program download interface JP1 is connected to the power supply VCC, the 4th, 6th, 8th and 10th pins of the ISP program download interface JP1 are connected to the signal ground, and the 5th pin of the ISP program download interface JP1 The crystal oscillator Y1 is connected in parallel between the PB6 terminal of the single-chip computer U1 and the PB7 terminal of the single-chip computer U1, one end of the starting capacitor C5 is connected to the PB6 terminal of the single-chip computer U1, and the other end of the starting capacitor C5 is connected to the signal ground, one end of the starting capacitor C6 is connected to the PB7 terminal of the single-chip computer U1, and the other end of the starting capacitor C6 is connected to the signal ground, the cathode of the diode D1 and one end of the pull-up resistor R1 are connected to the power supply VCC, the anode of the diode D1 and the other end of the pull-up resistor R1 are connected to the PC6 terminal of the single-chip computer U1, the push button switch SW is connected in parallel between the PC6 terminal of the single-chip computer U1 and the signal ground, the filter capacitor C8 is connected in parallel at both ends of the push button switch SW, the PB1 terminal of the single-chip computer U1 is used as an output high-end PWM, the PB2 terminal of the single-chip computer U1 is used as an output high-end IO, and the PD1 terminal of the single-chip computer U1 is used as an output high-end mTXD.

[0042] In the SCI communication interface circuit, the T1IN terminal of the RS232 interface chip U4 serves as the input high-end mTXD, the Vcc terminal of the RS232 interface chip U4 is connected to the power supply VCC, the GND terminal of the RS232 interface chip U4 is connected to the signal ground, the filter capacitor C20 is connected in parallel between the Vcc terminal of the RS232 interface chip U4 and the signal ground, the filter capacitor C19 is connected in parallel between the power supply VCC and the V+ terminal of the RS232 interface chip U4, the filter capacitor C21 is connected in parallel between the signal ground and the V- terminal of the RS232 interface chip U4, the filter capacitor C22 is connected in parallel between the C1+ terminal of the RS232 interface chip U4 and the C1- terminal of the RS232 interface chip U4, the filter capacitor C23 is connected in parallel between the C2+ terminal of the RS232 interface chip U4 and the C2- terminal of the RS232 interface chip U4, and the R1OUT terminal of the RS232 interface chip U4 serves as the output high-end mRXD.

[0043] When the present invention is working, the primary power supply Vi enters the DC / DC module circuit. The DC / DC module circuit converts the input voltage Vi into the output voltage Vo through the switch conversion of the module G1, supplies power to the computer equipment, and the output current is Io. The TRIM end of the module G1 is a voltage fine-tuning pin. The present invention performs online adjustment of the output voltage Vo through the voltage digital adjustment circuit acting on the TRIM end. The REM end of the module G1 is an enable end. The present invention performs online control of the opening and closing of the module G1 through the digital switch remote control circuit acting on the REM end.

[0044] The main function of the voltage detection circuit is to condition the output voltage Vo. First, it divides the voltage and converts it into a voltage range acceptable to the microcontroller. Then, it uses an emitter follower to improve the signal-to-noise ratio, reduce the output impedance, and increase the load capacity. Finally, it uses a CRC filter circuit to filter the output signal to prevent noise interference and ensure the quality of the output signal.

[0045] The main function of the current detection circuit is to perform signal conditioning on the output current Io. The Hall current sensor chip U3 is connected in series to the positive line of the DC / DC module circuit output. The current enters from pins 1 and 2 of the Hall current sensor chip U3, and then comes out from pins 3 and 4 to power the computer equipment. Through the principle of the Hall effect sensor, the Hall current sensor chip U3 converts the output current Io into a voltage analog signal. The output voltage of pin 7 of the Hall current sensor chip U3 has an approximately linear relationship with the current signal. By adjusting R4 and R5, the output voltage amplitude is within the acceptable range of the AD port of the microcontroller. The filter capacitor C14 has the function of reducing noise interference.

[0046] The output voltage Vo and output current Io are the basic parameters of the computer power supply, which directly reflect the operating status of the computer power supply load end and provide important evidence for the location and troubleshooting of system faults. After signal preprocessing, these two voltage analog signals are converted into digital signals at the AD ports ADC0 and ADC1 of the single-chip microcomputer U1, and processed by the filtering algorithm in the software. Finally, the voltage and current sampling signals at the power supply load end are transmitted to the host computer interface through serial communication for output display, realizing real-time monitoring of the working status of the computer power supply.

[0047] When the computer power supply works in a high-power situation, the current of more than ten amperes or tens of amperes will produce a large voltage drop on the copper conductors, connectors and loop wires of the printed circuit board. In order to ensure the accuracy of the voltage at the load end, the output voltage Vo of the power supply needs to be adjusted to compensate for the line voltage loss. The operator sends an adjustment command through the host computer, and the command signal is transmitted to the single-chip microcomputer through the serial port. The single-chip microcomputer controls the width of the PWM output of the IO port through calculation. The output PWM signal is processed by the RC filter and active filter of the voltage digital adjustment circuit to obtain a DC voltage Vt of the corresponding amplitude. The TRIM terminal of module G1 is a voltage fine-tuning pin, which is connected to the voltage feedback loop inside the module. The voltage setting value can be increased or decreased by connecting a suitable resistor to the output positive terminal or the output negative terminal through the TRIM terminal. The generally adjustable range is -10% to 10% of the voltage rating. The DC voltage Vt is applied to the TRIM terminal of the module G1 through the resistor R10. The principle is similar to that of adjusting the voltage by connecting a resistor. The voltage feedback signal is increased or decreased by adjusting the magnitude of the pull current and the sink current at the TRIM terminal, and the output voltage Vo is finally fine-tuned to a predetermined voltage value. Through communication means, the digital adjustment of the output voltage of the computer power supply is realized.

[0048] According to the actual situation, it is necessary to control the power on and off in cases where the system fault is required to be disconnected or the power-on and power-off timing of multiple power supplies is required. The operator sends a switch command through the host computer, and the command signal is transmitted to the single-chip microcomputer through the serial port. The single-chip microcomputer outputs a high level or a low level through the IO port to control the conduction and shutdown of the transistor S1 in the digital switch remote control circuit. For the positive logic enabled module, when the transistor S1 is turned on, the optocoupler B1 is also turned on, and the secondary transistor of the optocoupler B1 is turned on to pull down the voltage of the REM terminal. When the REM terminal is pulled low, the module G1 is turned off; when the transistor S1 is turned off, the optocoupler B1 is also turned off, and the secondary transistor of the optocoupler B1 is not turned on. When the REM terminal is suspended, the module G1 is turned on. For the negative logic enabled module, the on and off logic is opposite. Through communication means, the online switch remote control of the computer power supply is realized, and the timing can be set in the software to make precise control of the timing of multiple power supplies.

[0049] The core circuit of the single-chip microcomputer is the key to the intelligentization of the monitoring system, which includes hardware and software. The hardware requires the use of the AD acquisition module, SCI serial communication module and IO control module of the single-chip microcomputer. The core circuit of the single-chip microcomputer is the smallest system of the single-chip microcomputer, which maintains the operation of the entire single-chip microcomputer. VCC is the power supply port, C5, Y1 and C6 are the clock circuit, D1, R1, SW and C8 are the reset circuit, and JP1 is the ISP download interface, which is convenient for debugging and program updates. The software requires the single-chip microcomputer program to provide sampling filtering, serial communication, timing interrupt, table lookup and calculation functions. The single-chip microcomputer software includes initialization program, main program and subprogram. The subprogram includes sampling filtering subprogram, timing interrupt service program and serial communication subprogram.

[0050] Initialization procedure such as Fig. 9 As shown, it mainly sets the function of the microcontroller register and assigns initial values ​​to the variables. After the initialization is completed, it enters the main program, such as Fig.10 The main program shown is an infinite loop, which collects data for processing and responds to the system interrupt time. The interrupt events in this program include timer interrupt and SCI serial port receiving interrupt. Fig.11 As shown in the figure, the use of data filtering technology in the software can improve the accuracy of data collection. The median filter method and the mean filter method are used in the sampling program to reduce and avoid the electromagnetic interference in the power supply affecting the accuracy of the microcontroller data collection. Fig.12 As shown in the figure, the serial port reception adopts the interrupt mode and high priority setting to ensure the real-time response of the command. The serial port transmission adopts the timed interrupt method. When the voltage adjustment instruction is received, the output voltage is fine-tuned and the timing is 100ms to give the power supply sufficient response time. Then an interrupt is entered and sent to the host computer through the serial port to return the voltage and current sampling values ​​of the current load end.

[0051] The SCI communication interface circuit mainly performs serial port level conversion between the MCU and the host computer through the RS232 interface chip U4. In the RS232 (a serial industrial bus standard) standard, a communication baud rate of 9600bps can be selected to realize serial signal transmission.

[0052] The intelligent monitoring interface developed by the host computer should include four parts of human-computer interaction functions. The first part is the configuration of basic serial port parameters, the second part is the digital adjustment of the output voltage of the computer power supply, the third part is the input command to switch and control the timing of the output of the computer power supply, and the fourth part is the voltage acquisition, current acquisition, graphical display and data processing of the computer power supply.

[0053] According to the power supply requirements of the equipment, if there are multiple DC / DC module circuits, the present invention can add corresponding voltage detection circuits, current detection circuits, voltage digital regulation circuits and digital switch remote control circuits, reuse and expand the resources of the single-chip microcomputer, and realize the intelligent monitoring requirements of multiple computer power supplies.

[0054] The present invention introduces a single-chip microcomputer into the design, which can not only monitor the basic parameters of the computer power supply in real time, but also adjust the output voltage of the power supply online through communication means, control the on and off of the power supply, and set the power-on and off timing of multiple power supplies. The present invention realizes the management and communication functions of the computer power supply, has high detection accuracy, control accuracy and anti-interference ability, and has the advantages of configurability, simple measurement and control, accurate control, etc. compared with traditional computer power supplies, and improves the intelligence level of computer power supplies.

[0055] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An intelligent computer power supply monitoring system based on a single chip microcomputer, characterized in that: It includes a DC / DC module circuit, a voltage detection circuit, a current detection circuit, a voltage digitization regulation circuit, a digital switch remote control circuit, a single-chip microcomputer core circuit and an SCI communication interface circuit, wherein the output end of the DC / DC module circuit is connected to the input end of the voltage detection circuit and the input end of the current detection circuit, the output end of the voltage digitization regulation circuit and the output end of the digital switch remote control circuit are connected to the input end of the DC / DC module circuit, the output end of the voltage detection circuit and the output end of the current detection circuit are connected to the input end of the single-chip microcomputer core circuit, the output end of the single-chip microcomputer core circuit is connected to the input end of the voltage digitization regulation circuit, the input end of the digital switch remote control circuit and the input end of the SCI communication interface circuit, and the output end of the SCI communication interface circuit is connected to the input end of the single-chip microcomputer core circuit.

2. The intelligent computer power monitoring system based on single chip microcomputer according to claim 1 is characterized in that: The DC / DC module circuit includes a filter capacitor C1, a filter capacitor C2, a DC / DC power module G1, a filter capacitor C3 and a filter capacitor C4, wherein the +Vin end of the DC / DC power module G1 serves as an input high end Vi+, the -Vin end of the DC / DC power module G1 serves as an input low end Vi-, the filter capacitor C1 is connected in parallel between the input high end Vi+ and the input low end Vi-, the filter capacitor C3 is connected in parallel between the input low end Vi- and the casing ground, the filter capacitor C4 is connected in parallel between the output low end Vo- and the casing ground, the Vo1 end of the DC / DC power module G1 serves as an output high end Vo+, the GND end of the DC / DC power module G1 serves as an output low end Vo-, and the filter capacitor C2 is connected in parallel between the output high end Vo+ and the output low end Vo-.

3. The intelligent computer power supply monitoring system based on single chip microcomputer according to claim 1 is characterized in that: The voltage detection circuit includes a potentiometer VR1, a filter capacitor C9, a filter resistor R2, a filter capacitor C10, a filter capacitor C11, an operational amplifier U2A, a filter resistor R3 and a filter capacitor C12, wherein a fixed end of the potentiometer VR1 is used as an input high end Vo+, another fixed end of the potentiometer VR1 is used as a signal ground, an adjustable end of the potentiometer VR1 is connected to one end of the filter capacitor C9 and one end of the filter resistor R2, the other end of the filter capacitor C9 is connected to the signal ground, and the other end of the filter resistor R2 is connected to one end of the filter capacitor C10 and the operational amplifier U2A. The non-inverting input terminal and the other end of the filter capacitor C10 are connected to the signal ground, the inverting input terminal of the operational amplifier U2A is connected to the output terminal of the operational amplifier U2A, the positive power supply terminal of the operational amplifier U2A is connected to the power supply VCC and one end of the filter capacitor C11, the other end of the filter capacitor C11 is connected to the signal ground, the negative power supply terminal of the operational amplifier U2A is connected to the signal ground, the output terminal of the operational amplifier U2A is connected to one end of the filter resistor R3, the other end of the filter resistor R3 is connected to one end of the filter capacitor C12 and serves as the output terminal ADC0, and the other end of the filter capacitor C12 is connected to the signal ground.

4. The intelligent computer power monitoring system based on single chip microcomputer according to claim 1 is characterized in that: The current detection circuit includes a Hall current sensor chip U3, a filter capacitor C13, a filter capacitor C14, a filter capacitor C15, a voltage-dividing resistor R4 and a voltage-dividing resistor R5, wherein the IP+ end of the Hall current sensor chip U3 serves as an input end Vo, the IP- end of the Hall current sensor chip U3 serves as an output end Vom, the Vcc end of the Hall current sensor chip U3 is connected to a power supply VCC and one end of the filter capacitor C13, the other end of the filter capacitor C13 is connected to a signal ground, the FILTER end of the Hall current sensor chip U3 is connected to one end of the filter capacitor C14, the other end of the filter capacitor C14 is connected to the signal ground and the GND end of the Hall current sensor chip U3, the Vout end of the Hall current sensor chip U3 is connected to one end of the voltage-dividing resistor R4, the other end of the voltage-dividing resistor R4 is connected to one end of the voltage-dividing resistor R5 and serves as an output end ADC1, the other end of the voltage-dividing resistor R5 is connected to the signal ground, and the filter capacitor C15 is connected in parallel with the voltage-dividing resistor R5.

5. The intelligent computer power monitoring system based on single chip microcomputer according to claim 1 is characterized in that: The voltage digital regulation circuit includes an operational amplifier U2B, a filter resistor R6, a filter capacitor C16, a filter resistor R7, a filter capacitor C17, a proportional amplification resistor R8, a potentiometer VR2, a proportional amplification resistor R9, a filter capacitor C18 and a current limiting resistor R10, wherein one end of the filter resistor R6 is used as an input high-end PWM, the other end of the filter resistor R6 is connected to one end of the filter capacitor C16 and one end of the filter resistor R7, the other end of the filter capacitor C16 is connected to a signal ground, the other end of the filter resistor R7 is connected to the in-phase input end of the operational amplifier U2B and one end of the filter capacitor C17, the other end of the filter capacitor C17 is connected to the signal ground, and the proportional amplification resistor R8 is used as an input high-end PWM, the other end of the filter resistor R6 is connected to the in-phase input end of the operational amplifier U2B and one end of the filter capacitor C17, the other end of the filter capacitor C17 is connected to the signal ground, and the proportional amplification resistor R9 is used as an input high-end PWM, the other end of the filter resistor R6 is connected to the high-end PWM, the other end of the filter resistor R6 is connected to the high-end PWM, the other end of the filter resistor R6 is connected to the high-end PWM, the other end of the filter capacitor C16 is connected to the signal ground, and the proportional amplification resistor R8 is used as an input ... One end of the amplifying resistor R8 is connected to the signal ground, one end of the proportional amplifying resistor R8 is connected to the signal ground, the other end of the proportional amplifying resistor R8 is connected to the adjustable end of the potentiometer VR2 and a fixed end of the potentiometer VR2, the other fixed end of the potentiometer VR2 is connected to the inverting input end of the operational amplifier U2B, one end of the proportional amplifying resistor R9 is connected to the inverting input end of the operational amplifier U2B, the other end of the proportional amplifying resistor R9 is connected to the output end of the operational amplifier U2B, the filter capacitor C18 is connected in parallel at both ends of the proportional amplifying resistor R9, one end of the current limiting resistor R10 is connected to the output end of the operational amplifier U2B, and the other end of the current limiting resistor R10 serves as the output high end Vt.

6. The intelligent computer power supply monitoring system based on single chip microcomputer according to claim 1 is characterized in that: The digital switch remote control circuit includes a current limiting resistor R11, a current limiting resistor R12, a transistor S1, an isolation optocoupler B1 and a diode D2, wherein one end of the current limiting resistor R12 serves as an input high end IO, the other end of the current limiting resistor R12 is connected to the base of the transistor S1, the emitter of the transistor S1 is connected to the signal ground, the collector of the transistor S1 is connected to the cathode of the light emitting diode of the isolation optocoupler B1, one end of the current limiting resistor R11 is connected to the anode of the light emitting diode of the isolation optocoupler B1, the other end of the current limiting resistor R11 is connected to the power supply VCC, the cathode of the diode D2 is connected to the collector of the isolation optocoupler B1 receiving transistor, the anode of the diode D2 serves as an output high end REM, and the emitter of the isolation optocoupler B1 receiving transistor serves as an output low end Vi-.

7. The intelligent computer power monitoring system based on single chip microcomputer according to claim 1 is characterized in that: The core circuit of the single-chip microcomputer includes a single-chip microcomputer U1, an ISP program download interface JP1, a crystal oscillator Y1, a starting capacitor C5, a starting capacitor C6, a filter capacitor C7, a pull-up resistor R1, a diode D1, a button switch SW and a filter capacitor C8, wherein the PC0 end of the single-chip microcomputer U1 is used as an input high-end ADC0, the PC1 end of the single-chip microcomputer U1 is used as an input high-end ADC1, the PD0 end of the single-chip microcomputer U1 is used as an input high-end mRXD, the VCC end of the single-chip microcomputer U1 is connected to the power supply VCC, the GND end of the single-chip microcomputer U1 is connected to the signal ground, the filter capacitor C7 is connected in parallel between the VCC end and the signal ground of the single-chip microcomputer U1, the PB3 end of the single-chip microcomputer U1 is connected to the 1st pin of the ISP program download interface JP1, the PB4 end of the single-chip microcomputer U1 is connected to the 9th pin of the ISP program download interface JP1, the PB5 end of the single-chip microcomputer U1 is connected to the 7th pin of the ISP program download interface JP1, the 2nd pin of the ISP program download interface JP1 is connected to the power supply VCC, and the ISP program download Pins 4, 6, 8, and 10 of the ISP program download interface JP1 are connected to the signal ground. Pin 5 of the ISP program download interface JP1 is connected to the PC6 terminal of the microcontroller U1. The crystal oscillator Y1 is connected in parallel between the PB6 terminal of the microcontroller U1 and the PB7 terminal of the microcontroller U1. One end of the starting capacitor C5 is connected to the PB6 terminal of the microcontroller U1, and the other end of the starting capacitor C5 is connected to the signal ground. One end of the starting capacitor C6 is connected to the PB7 terminal of the microcontroller U1, and the other end of the starting capacitor C6 is connected to the signal ground. The diode D The cathode of 1 and one end of the pull-up resistor R1 are connected to the power supply VCC, the anode of the diode D1 and the other end of the pull-up resistor R1 are connected to the PC6 end of the single-chip microcomputer U1, the push button switch SW is connected in parallel between the PC6 end of the single-chip microcomputer U1 and the signal ground, the filter capacitor C8 is connected in parallel between the two ends of the push button switch SW, the PB1 end of the single-chip microcomputer U1 is used as an output high-end PWM, the PB2 end of the single-chip microcomputer U1 is used as an output high-end IO, and the PD1 end of the single-chip microcomputer U1 is used as an output high-end mTXD.

8. The intelligent computer power monitoring system based on single chip microcomputer according to claim 1 is characterized in that: The SCI communication interface circuit includes an RS232 interface chip U4, a filter capacitor C20, a filter capacitor C19, a filter capacitor C21, a filter capacitor C22 and a filter capacitor C23, wherein the T1IN terminal of the RS232 interface chip U4 is used as an input high-end mTXD, the Vcc terminal of the RS232 interface chip U4 is connected to a power supply VCC, the GND terminal of the RS232 interface chip U4 is connected to a signal ground, the filter capacitor C20 is connected in parallel between the Vcc terminal of the RS232 interface chip U4 and the signal ground, and the filter capacitor C19 is connected to a signal ground. 9 is connected in parallel between the power supply VCC and the V+ terminal of the RS232 interface chip U4, the filter capacitor C21 is connected in parallel between the signal ground and the V- terminal of the RS232 interface chip U4, the filter capacitor C22 is connected in parallel between the C1+ terminal of the RS232 interface chip U4 and the C1- terminal of the RS232 interface chip U4, the filter capacitor C23 is connected in parallel between the C2+ terminal of the RS232 interface chip U4 and the C2- terminal of the RS232 interface chip U4, and the R1OUT terminal of the RS232 interface chip U4 serves as the output high end mRXD.