Method, device and electronic equipment for controlling a multi-output constant voltage constant current loop circuit

CN122801730APending Publication Date: 2026-09-22BEIJING SHICHANGDING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610932426.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-26
Publication Date
2026-09-22

AI Technical Summary

Technical Problem

[0004]本申请的目的在于提供一种多输出恒压恒流环路电路的控制方法、装置及电子设备,以解决现有电路结构导致系统稳定状态较差的技术问题

Benefits of technology

本申请提供的一种多输出恒压恒流环路电路的控制方法、装置及电子设备,能够获取电压值和电流值,并基于所述电压值和所述电流值通过所述切换电路选择目标电压值和目标电流值;通过所述输入切换电路将所述目标电压值和所述目标电流值传输至所述DAC数模转换器作为所述DAC数模转换器的输入,并通过所述DAC数模转换器将所述目标电压值对应的电压标识信号和所述目标电流值对应的电流标识信号传输至所述保持电路;通过所述DAC数模转换器将所述目标电压值和所述目标电流值的数字量转换为电压和电流环路的模拟量;其中,所述切换电路选择作为输入源的所述目标电压值及所述目标电流值的时间,与所述切换电路选择输出至的所述DAC数模转换器的时间是错开的,以使在所述切换电路选择所述输入源时所述DAC数模转换器输出所述模拟量至所述保持电路;通过所述保持电路将所述模拟量的数值保持并基于所述模拟量的数值输出电压及电流参考基准至电压和电流的误差放大器;本方案中,通过上述DAC数模转换器、切换电路和保持电路,其中的切换电路选择作为输入源的目标电压值及目标电流值的时间与切换电路选择输出至DAC数模转换器的时间是错开的,使得在切换电路选择输入源时DAC数模转换器输出模拟量至保持电路,利用了电压和电流变化是缓慢和渐进的特性,通过分时多工的方式分别产生和控制电压和电流的误差放大器的参考基准,仅需使用一个DAC电路控制电压和电流回路的恒压和恒流功能,实现了整个系统的稳定状态提升,解决了现有电路结构导致系统稳定状态较差的技术问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122801730A_ABST
    Figure CN122801730A_ABST
Patent Text Reader

Abstract

This application provides a control method, device, and electronic device for a multi-output constant voltage and constant current loop circuit, relating to the field of circuits. The method acquires voltage and current values, and selects target voltage and target current values ​​based on these values ​​using a switching circuit. The target voltage and target current values ​​are transmitted to a digital-to-analog converter (DAC) as inputs via an input switching circuit, and the DAC transmits voltage identification signals corresponding to the target voltage value and current identification signals corresponding to the target current value to a holding circuit. The DAC converts the digital values ​​of the target voltage and target current values ​​into analog quantities for the voltage and current loops. The holding circuit holds the analog values ​​and outputs voltage and current references to voltage and current error amplifiers based on these analog values.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of circuit technology, and in particular to a control method, apparatus and electronic device for a multi-output constant voltage and constant current loop circuit. Background Technology

[0002] Currently, as electronic devices become increasingly powerful, their power requirements also increase. Different devices require different voltages and currents. Therefore, power supplies that need to output multiple voltages and currents must maintain constant voltage and constant current operating modes. Modern power supplies (such as PD charging devices) require two DACs to set reference points to achieve adjustable constant voltage and constant current. These DACs set reference points for voltage and current respectively, and the errors are compared and amplified with voltage and current compensation capacitors to ensure the desired voltage and current values ​​are achieved.

[0003] Existing circuit structures require two or more DACs to achieve constant voltage and constant current functions for multiple outputs. This is achieved by using internal capacitors and resistors and / or external capacitors and resistors for compensation, in conjunction with an internal DAC unit. However, regardless of whether internal or external compensation is used, once the circuit of the entire system is fixed, if the load change of the device exceeds the original design value, the entire system will become unstable. Summary of the Invention

[0004] The purpose of this application is to provide a control method, device, and electronic device for a multi-output constant voltage and constant current loop circuit, so as to solve the technical problem that the existing circuit structure leads to poor system stability.

[0005] In a first aspect, this application provides a control method for a multi-output constant voltage and constant current loop circuit, applied to a DAC (Digital-to-Analog Converter) unit, wherein the DAC unit includes a DAC converter, a switching circuit, and a holding circuit; the method includes: The voltage and current values ​​are acquired, and a target voltage and target current values ​​are selected based on the voltage and current values ​​through the switching circuit. The target voltage value and the target current value are transmitted to the DAC digital-to-analog converter as inputs through the input switching circuit, and the voltage identification signal corresponding to the target voltage value and the current identification signal corresponding to the target current value are transmitted to the holding circuit through the DAC digital-to-analog converter. The target voltage and target current values ​​are converted from digital to analog quantities in the voltage and current loops by the DAC digital-to-analog converter; wherein the timing of the switching circuit selecting the target voltage and target current values ​​as input sources is staggered from the timing of the switching circuit selecting the DAC output to, so that the DAC outputs the analog quantity to the holding circuit when the switching circuit selects the input source; The holding circuit holds the value of the analog quantity and outputs voltage and current references to the voltage and current error amplifiers based on the value of the analog quantity.

[0006] In one possible implementation, the switching circuit includes an input switching circuit and an output switching circuit, wherein the module switching of the input switching circuit and the output switching circuit has a 180° phase difference.

[0007] In one possible implementation, the method includes: When the input switching circuit switches the target voltage input source corresponding to the target voltage value to the DAC digital-to-analog converter, the output of the DAC to the negative terminal of the error amplifier is a current path.

[0008] In one possible implementation, the method includes: When the output switching circuit switches the target current input source corresponding to the target current value to the DAC digital-to-analog converter, the output of the DAC digital-to-analog converter to the negative terminal of the error amplifier is a voltage path.

[0009] In one possible implementation, the voltage path from the DAC to the error amplifier corresponds to one of the hold circuits, and the current path from the DAC to the error amplifier corresponds to another of the hold circuits, so as to stabilize the voltage and current references corresponding to the input of the error amplifier throughout the cycle by balancing the switching frequency of the DAC.

[0010] In one possible implementation, the input switching circuit switches the code values ​​of different DACs corresponding to the target voltage value and the target current value, and the output switching circuit switches the holding circuit.

[0011] In one possible implementation, it also includes: When the input switching circuit performs input switching, the corresponding holding circuit is controlled to be in the off state during the conversion time of the DAC digital-to-analog converter. When the DAC digital-to-analog converter stabilizes, the corresponding holding circuit is controlled to be in the on state to prevent the change of input switching from affecting the change of voltage and current reference.

[0012] Secondly, this application provides a control device for a multi-output constant voltage and constant current loop circuit, applied to a DAC digital-to-analog converter unit, wherein the DAC digital-to-analog converter unit includes a DAC digital-to-analog converter, a switching circuit, and a holding circuit; the device includes: An acquisition module is used to acquire voltage and current values, and select target voltage and target current values ​​based on the voltage and current values ​​through the switching circuit; An input module is used to transmit the target voltage value and the target current value to the DAC digital-to-analog converter as input to the DAC through the input switching circuit, and to transmit the voltage identification signal corresponding to the target voltage value and the current identification signal corresponding to the target current value to the holding circuit through the DAC. A conversion module is used to convert the digital quantities of the target voltage value and the target current value into analog quantities of voltage and current loops via the DAC digital-to-analog converter; wherein the time when the switching circuit selects the target voltage value and the target current value as input sources is staggered from the time when the switching circuit selects the DAC digital-to-analog converter to output, so that the DAC digital-to-analog converter outputs the analog quantity to the holding circuit when the switching circuit selects the input source; An output module is used to hold the value of the analog quantity through the holding circuit and output voltage and current references to the voltage and current error amplifier based on the value of the analog quantity.

[0013] Thirdly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the method described in the first aspect above.

[0014] Fourthly, this application also provides a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method described in the first aspect above.

[0015] This application brings the following beneficial effects: This application provides a control method, device, and electronic device for a multi-output constant voltage and constant current loop circuit. It can acquire voltage and current values, and select target voltage and target current values ​​based on these values ​​through a switching circuit. The target voltage and target current values ​​are transmitted to a DAC (Digital-to-Analog Converter) as inputs through an input switching circuit, and the voltage and current indicators corresponding to the target voltage and current values ​​are transmitted to a holding circuit through the DAC. The DAC converts the digital values ​​of the target voltage and target current into analog values ​​for the voltage and current loops. The timing of the switching circuit selecting the target voltage and target current values ​​as input sources is staggered from the timing of the switching circuit selecting the output to the DAC, so that the switching circuit selects the target voltage and target current values ​​at the appropriate times. When the input source is selected, the DAC (Digital-to-Analog Converter) outputs the analog quantity to the holding circuit. The holding circuit holds the value of the analog quantity and outputs voltage and current references to the voltage and current error amplifiers based on the value of the analog quantity. In this scheme, through the DAC, switching circuit, and holding circuit, the timing of the switching circuit selecting the target voltage and target current values ​​as the input source is staggered from the timing of the switching circuit selecting the output to the DAC. This allows the DAC to output the analog quantity to the holding circuit when the switching circuit selects the input source. By utilizing the slow and gradual characteristics of voltage and current changes, and through time-division multiplexing, the references of the voltage and current error amplifiers are generated and controlled separately. Only one DAC circuit is needed to control the constant voltage and constant current functions of the voltage and current loops, thereby improving the stability of the entire system and solving the technical problem of poor system stability caused by existing circuit structures.

[0016] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of an existing multi-output constant voltage and constant current circuit. Figure 2A flowchart illustrating the control method for a multi-output constant voltage and constant current loop circuit provided in an embodiment of this application; Figure 3 A schematic diagram illustrating the implementation of the multi-output constant voltage and constant current circuit structure in the control method of the multi-output constant voltage and constant current loop circuit provided in the embodiments of this application. Figure 4 Detailed framework diagram of the DAC digital-to-analog converter unit in the control method of the multi-output constant voltage and constant current loop circuit provided in the embodiments of this application; Figure 5 A schematic diagram illustrating the implementation of the switching circuit unit in the control method for the multi-output constant voltage and constant current loop circuit provided in the embodiments of this application; Figure 6 A schematic diagram of the structure of a control device for a multi-output constant voltage and constant current loop circuit provided in this application embodiment; Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] The terms "comprising" and "having," and any variations thereof, used in the embodiments of this application, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0021] Currently, such as Figure 1 The diagram shows a schematic of an existing multi-output constant voltage and constant current circuit structure, which results in poor system stability. Therefore, this application provides a control method, apparatus, and electronic device for a multi-output constant voltage and constant current loop circuit. This method can solve the technical problem of poor system stability caused by existing circuit structures.

[0022] The embodiments of this application will be further described below with reference to the accompanying drawings.

[0023] Figure 2This is a flowchart illustrating a control method for a multi-output constant voltage and constant current loop circuit provided in an embodiment of this application. The method is applied to a DAC (Digital-to-Analog Converter) unit, which includes a DAC converter, a switching circuit, and a holding circuit. Figure 2 As shown, the method includes: Step S110: Obtain voltage and current values, and select target voltage and target current values ​​through a switching circuit based on the voltage and current values.

[0024] This application achieves the following: Figure 3 The circuit structures shown represent constant voltage and constant current outputs with various voltage and current settings. For example... Figure 4 The diagram shows a detailed block diagram of a DAC (Digital-to-Analog Converter) with multiple output voltages and currents, including modules such as the DAC converter, switching circuit, and holding circuit.

[0025] In step S120, the target voltage value and target current value are transmitted to the DAC digital-to-analog converter as inputs through the input switching circuit, and the voltage indicator signal corresponding to the target voltage value and the current indicator signal corresponding to the target current value are transmitted to the holding circuit through the DAC digital-to-analog converter.

[0026] The main function of the switching circuit is to select the target voltage and target current values ​​and output them to the DAC digital-to-analog converter as inputs. At the same time, the input switching circuit also outputs voltage and current indicator signals to the DAC digital-to-analog converter output holding circuit.

[0027] As an example, the aforementioned switching circuit includes an input switching circuit and an output switching circuit, with the module switching of the input switching circuit and the output switching circuit having a 180° phase difference. The method may further include the following step: when the input switching circuit inputs a target voltage input source corresponding to the target switching voltage value to the DAC digital-to-analog converter, the output of the DAC to the negative terminal of the error amplifier is a current path. Exemplarily, the method may further include the following step: when the output switching circuit inputs a target current input source corresponding to the target switching current value to the DAC digital-to-analog converter, the output of the DAC to the negative terminal of the error amplifier is a voltage path.

[0028] In one possible implementation, the voltage path from the DAC to the error amplifier corresponds to a holding circuit, and the current path from the DAC to the error amplifier corresponds to another holding circuit, so as to stabilize the voltage and current references corresponding to the input of the error amplifier throughout the cycle by balancing the switching frequency of the DAC.

[0029] like Figure 5This is a schematic diagram of the switching circuit unit of this application. The switching circuit is divided into input switching and output switching modules, and the switching of these two modules has a 180° phase difference. This can also be understood as follows: when the input is switched to the target voltage input source to the DAC, the DAC output to the negative terminal of the error amplifier is a current path; conversely, when the input is switched to the target current input source to the DAC, the DAC output to the negative terminal of the error amplifier is a voltage path. Each of the DAC output to voltage and current error amplifier paths requires a holding circuit to ensure that the error amplifier reference is stable throughout the entire cycle. Therefore, the switching frequency of the DAC must be balanced to obtain a stable input for the error amplifier.

[0030] As an optional implementation, the input switching circuit switches the code values ​​of different DACs corresponding to the target voltage and target current values, while the output switching circuit switches the holding circuit.

[0031] For example, the method may further include the following steps: when the input switching circuit performs input switching, the corresponding holding circuit is controlled to be in the off state during the conversion time of the DAC digital-to-analog converter; when the DAC digital-to-analog converter stabilizes, the corresponding holding circuit is controlled to be in the on state to prevent the change in input switching from affecting the change in voltage and current reference.

[0032] To prevent changes in input switching from affecting changes in the voltage and current references, special handling is required during output switching. Specifically, the holding circuit should not be turned on during the DAC's conversion time when the input is switched. The corresponding holding circuit should only be turned on after the DAC has stabilized.

[0033] Step S130: Convert the digital values ​​of the target voltage and target current into analog values ​​for the voltage and current loops using a DAC digital-to-analog converter.

[0034] Specifically, the timing of the switching circuit selecting the target voltage and target current values ​​as input sources is staggered from the timing of the switching circuit selecting the DAC digital-to-analog converter to which the output is sent, so that when the switching circuit selects the input source, the DAC outputs an analog quantity to the holding circuit.

[0035] For example, the main function of a DAC (Digital-to-Analog Converter) is to convert digital values ​​into analog voltage values. Specifically, the timing of the input switching circuit selecting the target input voltage and current value and the timing of the output switching circuit selecting the DAC's input voltage are staggered. That is, when the input switching circuit selects the target voltage value as the input source, the DAC outputs a current reference to the holding circuit.

[0036] Step S140: Hold the analog value through a holding circuit and output voltage and current references to voltage and current error amplifiers based on the analog value.

[0037] As one possible implementation, the holding circuit holds the analog values ​​of the voltage and current loops output by the DAC digital-to-analog converter circuit.

[0038] Through the aforementioned DAC (Digital-to-Analog Converter), switching circuit, and holding circuit, the timing of the switching circuit selecting the target voltage and current values ​​as input sources is staggered from the timing of the switching circuit selecting the output to the DAC. This ensures that when the switching circuit selects the input source, the DAC outputs an analog signal to the holding circuit. This utilizes the slow and gradual characteristics of voltage and current changes, and through time-division multiplexing, generates and controls the reference references for the error amplifiers of voltage and current respectively. Figure 3 The circuit structure shown, which provides constant voltage and constant current outputs, realizes the constant voltage and constant current functions of controlling the voltage and current loops using only one DAC circuit. This improves the stability of the entire system and solves the technical problem of poor system stability caused by existing circuit structures.

[0039] The embodiments of this application can be applied to the following various scenarios: xPU processor applications; AI power supply applications; server applications; DC-DC applications; AC-DC applications; motor drive and control applications; using a single DAC to achieve constant voltage and current outputs; using a single DAC to achieve constant current outputs; automatically selecting between constant voltage and constant current modes using clock high and low levels; the stability of the error amplifier reference is strongly correlated with the DAC conversion frequency; and it can be applied to applications with rapidly changing loads.

[0040] Figure 6 A schematic diagram of a control device for a multi-output constant voltage and constant current loop circuit is provided. This device can be applied to a DAC (Digital-to-Analog Converter) unit, which includes a DAC converter, a switching circuit, and a holding circuit. Figure 6 As shown, the control device 600 for the multi-output constant voltage and constant current loop circuit includes: The acquisition module 601 is used to acquire voltage and current values, and select target voltage and target current values ​​through the switching circuit based on the voltage and current values; The input module 602 is used to transmit the target voltage value and the target current value to the DAC digital-to-analog converter as the input of the DAC through the input switching circuit, and to transmit the voltage identification signal corresponding to the target voltage value and the current identification signal corresponding to the target current value to the holding circuit through the DAC. The conversion module 603 is used to convert the digital quantities of the target voltage value and the target current value into analog quantities of voltage and current loops through the DAC digital-to-analog converter; wherein the time when the switching circuit selects the target voltage value and the target current value as input sources is staggered from the time when the switching circuit selects the DAC digital-to-analog converter to output, so that when the switching circuit selects the input source, the DAC digital-to-analog converter outputs the analog quantity to the holding circuit; Output module 604 is used to hold the value of the analog quantity through the holding circuit and output voltage and current references to the voltage and current error amplifier based on the value of the analog quantity.

[0041] The control device for the multi-output constant voltage and constant current loop circuit provided in this application embodiment has the same technical features as the control method for the multi-output constant voltage and constant current loop circuit provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0042] An electronic device provided in this application embodiment, such as Figure 7 As shown, the electronic device 700 includes a processor 702 and a memory 701. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the steps of the method provided in the above embodiments.

[0043] See Figure 7 The electronic device also includes a bus 703 and a communication interface 704. The processor 702, the communication interface 704 and the memory 701 are connected via the bus 703. The processor 702 is used to execute executable modules, such as computer programs, stored in the memory 701.

[0044] The memory 701 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 704 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network.

[0045] Bus 703 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0046] The memory 701 is used to store programs. After receiving an execution instruction, the processor 702 executes the program. The method executed by the apparatus defined by the process disclosed in any of the preceding embodiments of this application can be applied to the processor 702 or implemented by the processor 702.

[0047] The processor 702 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 702 or by instructions in software form. The processor 702 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 701, and processor 702 reads the information from memory 701 and, in conjunction with its hardware, completes the steps of the above method.

[0048] Corresponding to the control method of the multi-output constant voltage and constant current loop circuit described above, this application embodiment also provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and run by a processor, the computer-executable instructions cause the processor to perform the steps of the control method of the multi-output constant voltage and constant current loop circuit described above.

[0049] The control device for the multi-output constant voltage and constant current loop circuit provided in this application embodiment can be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in this application embodiment are the same as those in the foregoing method embodiments. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the foregoing method embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can all be referred to the corresponding processes in the above method embodiments, and will not be repeated here.

[0050] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0051] For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0052] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0053] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0054] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the control method for the multi-output constant voltage and constant current loop circuit described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0055] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0056] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A control method for a multi-output constant voltage and constant current loop circuit, characterized in that, The method is applied to a DAC (Digital-to-Analog Converter) unit, which includes a DAC converter, a switching circuit, and a holding circuit; the method includes: The voltage and current values ​​are acquired, and a target voltage and target current values ​​are selected based on the voltage and current values ​​through the switching circuit. The target voltage value and the target current value are transmitted to the DAC digital-to-analog converter as inputs through the input switching circuit, and the voltage identification signal corresponding to the target voltage value and the current identification signal corresponding to the target current value are transmitted to the holding circuit through the DAC digital-to-analog converter. The target voltage and target current values ​​are converted from digital to analog quantities in the voltage and current loops by the DAC digital-to-analog converter; wherein the timing of the switching circuit selecting the target voltage and target current values ​​as input sources is staggered from the timing of the switching circuit selecting the DAC output to, so that the DAC outputs the analog quantity to the holding circuit when the switching circuit selects the input source; The holding circuit holds the value of the analog quantity and outputs voltage and current references to the voltage and current error amplifiers based on the value of the analog quantity.

2. The control method for the multi-output constant voltage and constant current loop circuit according to claim 1, characterized in that, The switching circuit includes an input switching circuit and an output switching circuit, and the module switching of the input switching circuit and the output switching circuit has a 180° phase difference.

3. The control method for the multi-output constant voltage and constant current loop circuit according to claim 2, characterized in that, The method further includes: When the input switching circuit switches the target voltage input source corresponding to the target voltage value to the DAC digital-to-analog converter, the output of the DAC to the negative terminal of the error amplifier is a current path.

4. The control method for the multi-output constant voltage and constant current loop circuit according to claim 2, characterized in that, The method further includes: When the output switching circuit switches the target current input source corresponding to the target current value to the DAC digital-to-analog converter, the output of the DAC digital-to-analog converter to the negative terminal of the error amplifier is a voltage path.

5. The control method for the multi-output constant voltage and constant current loop circuit according to claim 2, characterized in that, The voltage path from the DAC to the error amplifier corresponds to one of the holding circuits, and the current path from the DAC to the error amplifier corresponds to another holding circuit, so as to stabilize the voltage and current references corresponding to the input of the error amplifier throughout the cycle by balancing the switching frequency of the DAC.

6. The control method for the multi-output constant voltage and constant current loop circuit according to claim 2, characterized in that, The input switching circuit switches the code values ​​of different DACs corresponding to the target voltage value and the target current value, and the output switching circuit switches the hold circuit.

7. The control method for the multi-output constant voltage and constant current loop circuit according to claim 6, characterized in that, The method further includes: When the input switching circuit performs input switching, the corresponding holding circuit is controlled to be in the off state during the conversion time of the DAC digital-to-analog converter. When the DAC digital-to-analog converter stabilizes, the corresponding holding circuit is controlled to be in the on state to prevent the change of input switching from affecting the change of voltage and current reference.

8. A control device for a multi-output constant voltage and constant current loop circuit, characterized in that, An apparatus for use in a DAC (Digital-to-Analog Converter) unit, the DAC unit comprising a DAC converter, a switching circuit, and a holding circuit; the apparatus comprising: An acquisition module is used to acquire voltage and current values, and select target voltage and target current values ​​based on the voltage and current values ​​through the switching circuit; An input module is used to transmit the target voltage value and the target current value to the DAC digital-to-analog converter as input to the DAC through the input switching circuit, and to transmit the voltage identification signal corresponding to the target voltage value and the current identification signal corresponding to the target current value to the holding circuit through the DAC. A conversion module is used to convert the digital quantities of the target voltage value and the target current value into analog quantities of voltage and current loops via the DAC digital-to-analog converter; wherein the time when the switching circuit selects the target voltage value and the target current value as input sources is staggered from the time when the switching circuit selects the DAC digital-to-analog converter to output, so that the DAC digital-to-analog converter outputs the analog quantity to the holding circuit when the switching circuit selects the input source; An output module is used to hold the value of the analog quantity through the holding circuit and output voltage and current references to the voltage and current error amplifier based on the value of the analog quantity.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method according to any one of claims 1 to 7.