A power supply self-checking module based on an electric control system
By introducing a power self-test module using an MCU microcontroller and high-precision components, the problems of simple functionality, low accuracy, and poor scalability in existing technologies are solved. This enables synchronous detection of multi-channel voltages and high-precision acquisition of positive and negative voltages, and supports functional upgrades.
Patent Information
- Application Number
- CN202522535361.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2035-11-28
AI Technical Summary
Existing power supply self-test modules are simple in function, lack sufficient information, have low detection accuracy, poor integration and expandability, and cannot meet the requirements of simultaneous detection of power supplies in multi-channel circuits and negative voltage acquisition.
It employs an MCU microcontroller, ADC acquisition module, clock module, and LDO module, combined with high-precision components, to achieve multi-channel synchronous detection. Functional expansion is achieved through software upgrades of the microcontroller.
It enables simultaneous detection of multiple voltage channels, improves detection accuracy and scalability, supports function upgrades, and meets the requirements for positive and negative voltage acquisition.
Smart Images

Figure CN225018416U_ABST
Abstract
Description
Technical Field
[0001] This utility model belongs to the field of electronic circuit technology, and specifically relates to a power supply self-test module based on an electronic control system. Background Technology
[0002] In recent years, with social progress and development, the application of electronic devices has become increasingly widespread. Power supplies are the core components of various electronic devices, and their operational stability directly affects the reliability of the entire system. Currently, most power supply modules only provide basic output functions and lack intuitive and convenient status indication functions. When equipment malfunctions, maintenance personnel typically need to use specialized tools such as multimeters to measure the output voltage of each power supply line one by one. This process is cumbersome, inefficient, and requires a certain level of professional skill from the operators.
[0003] Traditional power self-test modules have the following main drawbacks:
[0004] (1) Simple function and insufficient information: Many traditional power supply self-test modules can only detect one or two LEDs (on / off) to indicate whether the power supply is "good" or "bad" at the same time, and usually can only detect positive voltage input. Users cannot meet the requirement of simultaneous detection of power supplies in multi-channel circuits, the acquisition efficiency is too low, and it is also unable to meet the requirement of negative voltage acquisition;
[0005] (2) Low detection accuracy: Traditional power supply self-test modules rely too much on analog circuits and may consist only of comparators, reference sources and voltage divider resistors, resulting in weak measurement accuracy.
[0006] (3) Poor integration and scalability: The function of traditional hardwired logic circuits cannot be changed once they are manufactured. If the threshold needs to be modified, the circuit must be redesigned. Utility Model Content
[0007] The purpose of this utility model is to provide a power supply self-test module based on an electronic control system. This utility model adds the function of acquiring negative voltage to the design of the power supply detection module; adopts a multi-channel synchronous sampling microcontroller to meet the function of synchronous detection of multiple voltages; effectively improves the voltage acquisition accuracy by introducing high-precision components; and achieves functional upgrades and customization by introducing a microcontroller design and updating the software.
[0008] To solve the above technical problems, this utility model provides a power supply self-test module based on an electronic control system, comprising:
[0009] MCU microcontroller with built-in ADC acquisition module;
[0010] A connector is used to connect to the MCU microcontroller and receive external input signals.
[0011] A clock module, connected to the MCU microcontroller, is used to provide a clock signal to the MCU microcontroller to ensure the synchronization of the sampling timing.
[0012] The LDO module is connected to the MCU microcontroller and is used to provide operating voltage for the system.
[0013] Preferably, the MCU microcontroller is an MSP430F149 MCU chip U5.
[0014] Preferably, the clock module includes: a crystal oscillator circuit one and a crystal oscillator circuit two; the crystal oscillator circuit one includes: a crystal oscillator Y1 and capacitors C16 to C17; the two ends of the crystal oscillator Y1 are respectively connected to grounded capacitors C16 to C17, and capacitors C16 to C17 are respectively connected to the XT2IN pin and XT2OUT pin of the MSP430F149 MCU chip U5; the crystal oscillator circuit two includes: a crystal oscillator Y2 and capacitors C18 to C19; the two ends of the crystal oscillator Y2 are respectively connected to grounded capacitors C18 to C19, and capacitors C18 to C19 are respectively connected to the XIN pin and XOUT pin of the MSP430F149 MCU chip U5.
[0015] Preferably, the LDO module includes: a microcontroller operating voltage LDO circuit and an ADC reference voltage LDO circuit; the microcontroller operating voltage LDO circuit includes: an AMS1117-3V3 voltage regulator chip U2; the AMS1117-3V3 voltage regulator chip U2 converts the power supply VCC_5V to power supply VCC_3V3 to provide a 3.3V operating voltage for the MCU microcontroller; the ADC reference voltage LDO circuit includes: an ADR4533ARZ voltage regulator chip U4; the ADR4533ARZ voltage regulator chip U4 converts the power supply VCC_5V to power supply VCC_3V3_AD to provide a 3.3V reference voltage for the ADC acquisition module.
[0016] Preferably, it also includes a switching regulator circuit, which includes a TPS5403DDA voltage regulator chip U1; the TPS5403DDA voltage regulator chip U1 converts the externally input 12V power supply into the power supply VCC_5V.
[0017] Preferably, it also includes a positive voltage detection circuit, which includes: resistor R28, resistor R32 and capacitor C21; the AD0 pin of the MSP430F149 MCU chip U5 is connected to one end of capacitor C21, resistor R28 and resistor R32, the other end of resistor R28 is connected to a +5V power supply, and the other end of resistor R32 and capacitor C21 is grounded.
[0018] Preferably, the resistance values of resistors R28 and R32 are both 10KΩ, and the capacitance value of capacitor C21 is 0.1μF.
[0019] Preferably, it further includes a negative voltage detection circuit, which includes: an operational amplifier, resistors R36, R39, and R42, capacitors C25, C28, and C31; pin AD4 of the MSP430F149 MCU chip U5 is connected to the output terminal of the operational amplifier, one end of resistor R36 and capacitor C25, the other end of resistor R36 and capacitor C25 is connected to one end of resistor R39 and capacitor C28, and the negative input terminal of the operational amplifier, the other end of resistor R39 is connected to a -5V power supply, the other end of capacitor C28 is connected to one end of resistor R42 and grounded, the other end of resistor R42 is connected to the positive input terminal of the operational amplifier, the positive power supply terminal of the operational amplifier is connected to a +12V power supply and the grounded capacitor C31, and the negative source terminal of the operational amplifier is grounded.
[0020] Preferably, the resistance values of resistors R36 and R42 are 1KΩ, and the resistance value of resistor R39 is 2KΩ.
[0021] Preferably, it also includes an LED lighting circuit, which corresponds one-to-one with the multi-channel power self-test circuit to display the power self-test status.
[0022] Preferably, it also includes a JTAG interface and a UART interface. The JTAG interface is used for program download, online debugging, and chip programming, and the UART interface is used for serial communication with external devices to transmit self-test results.
[0023] Compared with the prior art, this utility model has the following advantages:
[0024] (1) An operational amplifier design is added to the power detection module to simultaneously meet the requirements for acquiring both positive and negative voltages;
[0025] (2) Multi-channel synchronous detection: A 16-channel synchronous sampling microcontroller is used to meet the simultaneous detection of power supplies in multiple channels;
[0026] (3) Significantly improved accuracy: By introducing a high-precision operational amplifier and a resistor with a precision of one-thousandth, the voltage acquisition accuracy is effectively improved;
[0027] (4) High scalability: Modern designs based on microcontrollers (MCUs) can be upgraded and customized by updating software. Attached Figure Description
[0028] Figure 1 This utility model provides an overall hardware architecture block diagram of a power supply self-test module based on an electronic control system.
[0029] Figure 2 This is the peripheral circuit diagram of the MSP430F149 chip provided by this utility model.
[0030] Figure 3 This is the circuit diagram of the LDO (Low Voltage Optimizer) for the microcontroller provided by this utility model.
[0031] Figure 4 This is the circuit diagram of the ADC reference voltage LDO provided by this utility model.
[0032] Figure 5 This is the circuit diagram of the switching regulator provided by this utility model.
[0033] Figure 6 This is a positive voltage detection circuit diagram provided by this utility model.
[0034] Figure 7 This is the negative voltage detection circuit diagram provided by this utility model. Detailed Implementation
[0035] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer from the following description. It should be noted that the drawings are all in a very simplified form and use non-precise proportions, and are only used to facilitate and clarify the illustration of the embodiments of the present invention.
[0036] like Figures 1-7 As shown, this utility model embodiment specifically provides a power supply self-test module based on an electronic control system, including:
[0037] MCU microcontroller with built-in ADC acquisition module;
[0038] A connector is used to connect to the MCU microcontroller and receive external input signals.
[0039] A clock module, connected to the MCU microcontroller, is used to provide a clock signal to the MCU microcontroller to ensure the synchronization of the sampling timing.
[0040] The LDO module is connected to the MCU microcontroller and is used to provide operating voltage for the system.
[0041] The MCU microcontroller used is the MSP430F149 MCU chip U5.
[0042] In this embodiment of the invention, the main function of the MCU microcontroller is to acquire and process the input signal. This acquisition function is primarily achieved through the microcontroller's built-in ADC. The microcontroller used is a Texas Instruments (TI) MSP430. TMThe MSP430F149, an ultra-low-power microcontroller (MCU) in the series, features a built-in 12-bit ADC supporting 16 input channels. Combined with a high-precision 1 / 1000 resistor voltage divider network and rail-to-rail operational amplifier, it enables precise acquisition and conditioning of positive and negative voltages. An LDO provides a stable power supply to the system, ensuring the accuracy of analog signal acquisition and system reliability. The ADC's operating mode is controlled by a program, enabling automatic scanning and interrupt uploading, improving detection efficiency and real-time performance. All acquired data is temporarily stored in on-chip RAM and can be uploaded to the upper-level controller via serial communication as needed, facilitating subsequent analysis and decision-making. A clock module provides a precise time base for the system, ensuring the synchronization of sampling timing and the stability of program operation. Peripheral configuration circuitry is used to implement MCU startup settings and parameter storage, facilitating field debugging and batch deployment. The hardware design fully considers electromagnetic compatibility and anti-interference capabilities, ensuring reliable operation under complex working conditions.
[0043] The aforementioned MSP430F149 chip integrates core components such as a CPU, memory unit, timer module, ADC module, and communication interface. The CPU coordinates the operation of each module through an internal control bus, achieving precise control and data processing of the ADC acquisition. The ADC module polls and acquires voltage signals from each power supply node through multiple input channels, storing the sampling results in a designated buffer in the on-chip RAM, supporting switching between single-trigger and continuous conversion modes. After acquisition, the system compares the data and determines faults based on preset thresholds; if the detected value exceeds the tolerance range, an anomaly flag is triggered.
[0044] The interaction logic between the MSP430F149 chip and its peripheral circuits is as follows: the ADC acquisition channel is connected to the voltage point under test via a precision resistor network, and the data is sent to the microcontroller for analog-to-digital conversion; the I / O ports are configured with LED circuits and multi-channel power supply self-test circuits, each corresponding to the other; the crystal oscillator circuit uses a high-stability 32.768kHz crystal and an 8MHz clock speed, with load capacitors to ensure clock accuracy; a serial communication interface is also provided for subsequent data analysis. All critical traces follow a high-frequency, low-noise layout principle, shortening signal paths and adding grounding shielding to effectively suppress electromagnetic interference and ensure stable operation in complex environments.
[0045] The clock module includes: a crystal oscillator circuit one and a crystal oscillator circuit two; the crystal oscillator circuit one includes: a crystal oscillator Y1 and capacitors C16 to C17; the two ends of the crystal oscillator Y1 are respectively connected to grounded capacitors C16 to C17, and capacitors C16 to C17 are respectively connected to the XT2IN pin and XT2OUT pin of the MSP430F149 MCU chip U5; the crystal oscillator circuit two includes: a crystal oscillator Y2 and capacitors C18 to C19; the two ends of the crystal oscillator Y2 are respectively connected to grounded capacitors C18 to C19, and capacitors C18 to C19 are respectively connected to the XIN pin and XOUT pin of the MSP430F149 MCU chip U5.
[0046] The MSP430F149 chip used in the system circuit operates at a normal voltage of 3.3V, and the ADC reference voltage is also 3.3V. Therefore, to meet these design requirements, an LDO and a switching regulator circuit were employed.
[0047] Low-dropout linear regulator (LDO) circuit design significantly saves circuit space, has low noise in the output load circuit, and can immediately respond to changes in the input load voltage. The input capacitor effectively reduces the input inductance, while the output capacitor greatly improves its stability. The circuit design of an LDO powering a microcontroller is as follows. Figure 3 As shown, the circuit design for an LDO that powers the built-in ADC reference voltage is as follows. Figure 4 As shown.
[0048] like Figure 3 and Figure 4 As shown, the LDO module includes: a microcontroller operating voltage LDO circuit and an ADC reference voltage LDO circuit; the microcontroller operating voltage LDO circuit includes: an AMS1117-3V3 voltage regulator chip U2; the AMS1117-3V3 voltage regulator chip U2 converts the power supply VCC_5V to power supply VCC_3V3 to provide a 3.3V operating voltage for the MCU microcontroller; the ADC reference voltage LDO circuit includes: an ADR4533ARZ voltage regulator chip U4; the ADR4533ARZ voltage regulator chip U4 converts the power supply VCC_5V to power supply VCC_3V3_AD to provide a 3.3V reference voltage for the ADC acquisition module.
[0049] Switching DC-DC regulators are characterized by high power supply efficiency and high output current. They have high voltage conversion efficiency, but also a disadvantage: high output noise. Therefore, switching inductor circuitry is needed for voltage conversion. This regulator provides 5V. The switching regulator circuit design is as follows: Figure 5 As shown.
[0050] like Figure 5 As shown, it also includes a switching regulator circuit, which includes a TPS5403DDA voltage regulator chip U1; the TPS5403DDA voltage regulator chip U1 converts the externally input 12V power supply into the power supply VCC_5V.
[0051] The positive voltage detection circuit employs a traditional voltage divider design, using resistors with a precision of 0.1% to form a voltage divider network, proportionally attenuating the voltage to be measured to a range acceptable for the ADC. A filter capacitor is connected in parallel in the branch to suppress noise crosstalk and ensure sampling accuracy. The positive voltage detection circuit design is as follows: Figure 6 As shown.
[0052] like Figure 6 As shown, it also includes a positive voltage detection circuit, which includes: resistor R28, resistor R32 and capacitor C21; the AD0 pin of the MSP430F149 MCU chip U5 is connected to one end of capacitor C21, resistor R28 and resistor R32, the other end of resistor R28 is connected to a +5V power supply, and the other end of resistor R32 and capacitor C21 is grounded.
[0053] The resistance values of resistors R28 and R32 are both 10KΩ, and the capacitance value of capacitor C21 is 0.1μF.
[0054] The negative voltage detection circuit employs a level-flipping structure, using a high-precision operational amplifier to invert the negative voltage signal to positive before connecting it to the ADC sampling channel. This design utilizes an operational amplifier with low temperature drift and low offset voltage, coupled with a precision resistor network, to ensure conversion linearity and measurement accuracy. Simultaneously, a filter capacitor is added to the feedback loop to suppress high-frequency noise and improve the system's anti-interference capability. This circuit can accurately detect negative voltage signals, with the same resolution as the positive voltage detection module, ensuring the overall consistency and reliability of the system's measurements. The negative voltage detection circuit design is as follows: Figure 7 As shown, its layout strictly follows the principle of signal integrity, with short-distance traces and grounding protection used for critical paths to avoid introducing additional interference.
[0055] like Figure 7 As shown, it also includes a negative voltage detection circuit, which includes: an operational amplifier, resistors R36, R39, and R42, capacitors C25, C28, and C31; pin AD4 of the MSP430F149 MCU chip U5 is connected to the output terminal of the operational amplifier, one end of resistor R36 and capacitor C25, the other end of resistor R36 and capacitor C25 is connected to one end of resistor R39 and capacitor C28, and the negative input terminal of the operational amplifier, the other end of resistor R39 is connected to a -5V power supply, the other end of capacitor C28 is connected to one end of resistor R42 and grounded, the other end of resistor R42 is connected to the positive input terminal of the operational amplifier, the positive power supply terminal of the operational amplifier is connected to a +12V power supply and the grounded capacitor C31, and the negative source terminal of the operational amplifier is grounded.
[0056] The resistance values of resistors R36 and R42 are 1KΩ, and the resistance value of resistor R39 is 2KΩ.
[0057] It also includes an LED lighting circuit, which corresponds one-to-one with the multi-channel power self-test circuit to display the power self-test status.
[0058] It also includes a JTAG interface and a UART interface. The JTAG interface is used for program downloading, online debugging, and chip programming, while the UART interface is used for serial communication with external devices to transmit self-test results.
[0059] It also includes the following working principles:
[0060] After the system powers on, a stable 3.3V power supply is first provided to the MCU and ADC reference source through an LDO voltage regulator circuit to ensure consistent initialization conditions. A 5V output from the DC-DC switching power supply powers the peripheral circuits, with noise effectively suppressed by an LC filter network. Positive and negative voltage detection modules synchronously acquire the input signals. Positive voltages are attenuated by a precision resistor divider before being sent to the ADC channel, while negative voltages are level-flipped by a high-precision operational amplifier and converted into a positive voltage signal within the sampled range. All sampled data undergoes analog-to-digital conversion by the MSP430F149's built-in ADC, combined with a digital calibration circuit to compensate for front-end circuit deviations, ultimately achieving high-precision detection and self-diagnostic functions for a wide range of DC voltages, ensuring the safety and reliability of system operation.
[0061] The above description is only a description of the preferred embodiment of the present utility model and is not intended to limit the scope of the present utility model in any way. Any changes or modifications made by those skilled in the art based on the above disclosure shall fall within the protection scope of the claims.
Claims
1. A power supply self-test module based on an electronic control system, characterized in that, include: MCU microcontroller with built-in ADC acquisition module; A connector is used to connect to the MCU microcontroller and receive external input signals. A clock module, connected to the MCU microcontroller, is used to provide a clock signal to the MCU microcontroller to ensure the synchronization of the sampling timing. The LDO module is connected to the MCU microcontroller and is used to provide operating voltage for the system.
2. The power supply self-test module based on an electronic control system as described in claim 1, characterized in that, The MCU microcontroller used is the MSP430F149 MCU chip U5.
3. The power supply self-test module based on an electronic control system as described in claim 2, characterized in that, The clock module includes: a crystal oscillator circuit one and a crystal oscillator circuit two; the crystal oscillator circuit one includes: a crystal oscillator Y1 and capacitors C16~C17; the two ends of the crystal oscillator Y1 are respectively connected to grounded capacitors C16~C17, and capacitors C16~C17 are respectively connected to the XT2IN pin and XT2OUT pin of the MSP430F149 MCU chip U5; the crystal oscillator circuit two includes: a crystal oscillator Y2 and capacitors C18~C19; the two ends of the crystal oscillator Y2 are respectively connected to grounded capacitors C18~C19, and capacitors C18~C19 are respectively connected to the XIN pin and XOUT pin of the MSP430F149 MCU chip U5.
4. The power supply self-test module based on an electronic control system as described in claim 1, characterized in that, The LDO module includes a microcontroller operating voltage LDO circuit and an ADC reference voltage LDO circuit. The microcontroller operating voltage LDO circuit includes an AMS1117-3V3 voltage regulator chip U2, which converts the power supply VCC_5V to VCC_3V3 to provide a 3.3V operating voltage for the MCU microcontroller. The ADC reference voltage LDO circuit includes an ADR4533ARZ voltage regulator chip U4, which converts the power supply VCC_5V to VCC_3V3_AD to provide a 3.3V reference voltage for the ADC acquisition module.
5. A power supply self-test module based on an electronic control system as described in claim 4, characterized in that, It also includes a switching regulator circuit, which includes a TPS5403DDA voltage regulator chip U1; the TPS5403DDA voltage regulator chip U1 converts the externally input 12V power supply into the power supply VCC_5V.
6. A power supply self-test module based on an electronic control system as described in claim 2, characterized in that, It also includes a positive voltage detection circuit, which includes: resistor R28, resistor R32 and capacitor C21; the AD0 pin of the MSP430F149 MCU chip U5 is connected to one end of capacitor C21, resistor R28 and resistor R32, the other end of resistor R28 is connected to a +5V power supply, and the other end of resistor R32 and capacitor C21 is grounded.
7. A power supply self-test module based on an electronic control system as described in claim 6, characterized in that, The resistance values of resistors R28 and R32 are both 10KΩ, and the capacitance value of capacitor C21 is 0.1μF.
8. A power supply self-test module based on an electronic control system as described in claim 2, characterized in that, It also includes a negative voltage detection circuit, which comprises: an operational amplifier, resistors R36, R39, and R42, capacitors C25, C28, and C31; pin AD4 of the MSP430F149 MCU chip U5 is connected to the output terminal of the operational amplifier, one end of resistor R36 and capacitor C25, the other end of resistor R36 and capacitor C25 is connected to one end of resistor R39 and capacitor C28, and the negative input terminal of the operational amplifier, the other end of resistor R39 is connected to a -5V power supply, the other end of capacitor C28 is connected to one end of resistor R42 and grounded, the other end of resistor R42 is connected to the positive input terminal of the operational amplifier, the positive power supply terminal of the operational amplifier is connected to a +12V power supply and the grounded capacitor C31, and the negative source terminal of the operational amplifier is grounded.
9. A power supply self-test module based on an electronic control system as described in claim 8, characterized in that, The resistance values of resistors R36 and R42 are 1KΩ, and the resistance value of resistor R39 is 2KΩ.
10. A power supply self-test module based on an electronic control system as described in any one of claims 1 to 9, characterized in that, It also includes an LED lighting circuit, which corresponds one-to-one with the multi-channel power self-test circuit to display the power self-test status.
11. A power supply self-test module based on an electronic control system as described in any one of claims 1 to 9, characterized in that, It also includes a JTAG interface and a UART interface. The JTAG interface is used for program downloading, online debugging, and chip programming, while the UART interface is used for serial communication with external devices to transmit self-test results.
