CN117348657A - Program-controlled power supply and control method - Google Patents

Program-controlled power supply and control method Download PDF

Info

Publication number
CN117348657A
CN117348657A CN202311185599.6A CN202311185599A CN117348657A CN 117348657 A CN117348657 A CN 117348657A CN 202311185599 A CN202311185599 A CN 202311185599A CN 117348657 A CN117348657 A CN 117348657A
Authority
CN
China
Prior art keywords
signal
power supply
circuit
digital
analog
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311185599.6A
Other languages
Chinese (zh)
Inventor
孙海生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weizhun Beijing Electronic Technology Co ltd
Original Assignee
Weizhun Beijing Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weizhun Beijing Electronic Technology Co ltd filed Critical Weizhun Beijing Electronic Technology Co ltd
Priority to CN202311185599.6A priority Critical patent/CN117348657A/en
Publication of CN117348657A publication Critical patent/CN117348657A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
    • G01R19/2506Arrangements for conditioning or analysing measured signals, e.g. for indicating peak values ; Details concerning sampling, digitizing or waveform capturing
    • G01R19/2509Details concerning sampling, digitizing or waveform capturing
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05FSYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
    • G05F1/00Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
    • G05F1/10Regulating voltage or current
    • G05F1/46Regulating voltage or current wherein the variable actually regulated by the final control device is dc
    • G05F1/56Regulating voltage or current wherein the variable actually regulated by the final control device is dc using semiconductor devices in series with the load as final control devices

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Voltage And Current In General (AREA)

Abstract

The application relates to the technical field of test power supplies and provides a programmable power supply and a control method. The programmable power supply comprises a feedback controller, a power driving circuit, a power amplifying circuit, a sampling circuit and a measuring circuit, wherein: the feedback controller is used for performing closed-loop feedback control on the target power supply signal based on the digital feedback signal to generate a digital control signal; the power driving circuit is used for generating a corresponding analog control signal according to the digital control signal; the power amplifying circuit is used for amplifying the analog control signal and generating a driving power supply; the sampling circuit is used for sampling the voltage and the current of the driving power supply respectively to generate a voltage analog signal and a current analog signal; the measuring circuit is used for collecting the voltage analog signal and the current analog signal, generating corresponding digital feedback signals and sending the corresponding digital feedback signals to the feedback controller. According to the method, the feedback controller is used for replacing an analog circuit with fixed original parameters, the flexibility is higher, the response speed is faster, and the application range is wider.

Description

Program-controlled power supply and control method
Technical Field
The application relates to the technical field of test power supplies, in particular to a programmable power supply and a control method.
Background
In research, development, production, and testing of electronic products or chips, a programmable power supply is often required to provide a voltage-stabilized power supply for the electronic products or chips. The output voltage of the programmable power supply is influenced by the resistance-inductance characteristic of the load, and in order to ensure voltage stability, a feedback regulation scheme is arranged in the programmable power supply so as to eliminate the influence of the load on the programmable power supply as soon as possible and enable the output voltage of the programmable power supply to be restored to a stable state, thereby testing the electronic products or chips.
However, the feedback condition scheme set in the current programmable power supply is generally implemented by a specific analog circuit, and different analog circuits are required to be set for different loads. If the programmable power supply meets the high-power type load test, the voltage can be stabilized quickly when the high-power type load is tested, but in the test scene of the high-speed signal type load, the voltage can not be stabilized or the voltage can be stabilized after waiting for a long time. Therefore, the traditional analog circuit realizes the feedback programmable power supply, and the programmable power supply of the same model is difficult to be compatible with the requirements of meeting the quick stability of various test scenes.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of this, the embodiment of the application provides a programmable power supply and a control method, so as to solve the problem that the programmable power supply in the prior art cannot meet the test requirements of various test scenes.
In a first aspect of the embodiments of the present application, a programmable power supply is provided, including a feedback controller, a power driving circuit, a power amplifying circuit, a sampling circuit and a measuring circuit, wherein:
the feedback controller is used for performing closed-loop feedback control on the target power supply signal based on the digital feedback signal to generate a digital control signal;
the power driving circuit is used for generating a corresponding analog control signal according to the digital control signal;
the power amplifying circuit is used for amplifying the analog control signal and generating a driving power supply;
the sampling circuit is used for sampling the voltage and the current of the driving power supply respectively to generate a voltage analog signal and a current analog signal;
the measuring circuit is used for collecting the voltage analog signal and the current analog signal, generating corresponding digital feedback signals and sending the corresponding digital feedback signals to the feedback controller.
In a second aspect of the embodiments of the present application, there is provided a programmable power supply control method applied to a feedback controller in a programmable power supply as in any one of the above, the method including:
reading a target power supply signal;
acquiring a digital feedback signal sent by a measuring circuit;
and performing closed-loop feedback control on the target power supply signal based on the digital feedback signal to generate a digital control signal.
Compared with the prior art, the beneficial effects of the embodiment of the application at least comprise: according to the embodiment of the application, the feedback controller replaces an analog circuit with fixed original parameters, the problems that the analog circuit cannot adjust parameters and is only suitable for part of test scenes are solved, the feedback controller is higher in flexibility of closed-loop feedback control, higher in response speed, capable of providing stable power sources for more different types of test scenes, and wide in application range.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a structural diagram of a programmable power supply according to an embodiment of the present application;
FIG. 2 is a control flow diagram of PID closed loop feedback control provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a high-speed digital-to-analog conversion circuit according to an embodiment of the present application;
fig. 4 is a schematic operation diagram of a high-speed digital-to-analog conversion circuit according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a high-speed analog-to-digital conversion circuit according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a programmable power control method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
A programmable power supply and a control method according to embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a structural distribution diagram of a programmable power supply according to an embodiment of the present application. As shown in fig. 1, the programmable power supply includes a feedback controller 101, a power driving circuit 102, a power amplifying circuit 103, a sampling circuit 104, and a measuring circuit 105, wherein:
the feedback controller 101 is configured to perform closed-loop feedback control on the target power supply signal based on the digital feedback signal to generate a digital control signal;
the power driving circuit 102 is configured to generate a corresponding analog control signal according to the digital control signal;
the power amplification circuit 103 is used for amplifying the analog control signal to generate a driving power supply;
the sampling circuit 104 is configured to sample a voltage and a current of the driving power supply, respectively, to generate a voltage analog signal and a current analog signal;
the measurement circuit 105 is configured to collect the voltage analog signal and the current analog signal, generate corresponding digital feedback signals, and send the digital feedback signals to the feedback controller 101.
According to the signal transmission relationship, it can be known that the input end of the feedback controller 101 is connected to the output end of the measurement circuit 105, the output end of the feedback controller 101 is connected to the input end of the power driving circuit 102, the output end of the power driving circuit 102 is connected to the input end of the power amplifying circuit 103, the output end of the power amplifying circuit 103 is connected to the input end of the sampling circuit 104, and the output end of the sampling circuit 104 is connected to the input end of the test circuit. In addition to the above connection, the driving power supply generated by the power amplification circuit 103 is outputted to the test load, and the driving power supply provides a stable and reliable power supply as a power supply source of the test load.
It can be understood that the signal change process from the feedback controller 101 to the power driving circuit 102 and the power amplifying circuit 103 is that the feedback controller 101 outputs a determined digital control signal, the digital control signal is converted into a corresponding analog control signal for power driving, the amplitude of the analog control signal is smaller, and the power amplifying circuit 103 is required to amplify the analog control signal to generate a driving power source with the amplitude meeting the driving condition.
In the signal change process from the corresponding sampling circuit 104 to the measuring circuit 105 to the feedback controller 101, the sampling circuit 104 samples the current and the voltage of the driving power supply to generate a voltage analog signal and a current analog signal, the measuring circuit 105 measures the amplitude of the voltage analog signal and the current analog signal, in fact, converts the analog signal into a corresponding digital form to generate a digital feedback signal which can be read by the feedback controller 101, and finally the digital feedback signal is sent to the feedback controller 101.
The feedback controller 101 is internally provided with a closed-loop feedback control program, so that the action of generating a digital control signal by performing closed-loop feedback control on a target power supply signal based on a digital feedback signal can be realized, specifically, the feedback controller 101 is internally provided with the target power supply signal, and the known digital feedback signal is a signal obtained by sampling and converting a driving power supply and can reflect the actual state of the current driving power supply. The digital feedback signal is used as a feedback basis of closed-loop feedback regulation, the target of closed-loop feedback control is that the digital feedback signal is consistent with the target power supply signal, and the whole programmable power supply is targeted at outputting a driving power supply corresponding to the target power supply signal. When the target power supply signal remains unchanged and after a period of closed loop feedback control, the digital feedback signal and the target power supply signal reach the same state in the feedback controller 101, the driving power supply output by the current programmable power supply will also correspond to the target power supply signal.
Compared with the scheme that the traditional programmable power supply uses an analog circuit as a feedback loop, the function of closed-loop feedback control is set in the feedback controller 101 in the scheme to be realized in a program mode, the closed-loop feedback control program is operated in the feedback controller 101 to perform closed-loop feedback control, loop parameters in the closed-loop feedback control program can be flexibly configured, and therefore, in test scenes of various different loads, the programmable power supply of the embodiment can keep optimal voltage response.
Further feedback controller 101 may be a PID (Proportion IntegrationDifferentiation, proportional-integral-derivative) control when performing closed-loop feedback control, so feedback controller 101 is specifically configured to: based on the digital feedback signal, PID closed loop feedback control is carried out on the target power supply signal to generate a digital control signal; the PID closed loop feedback control includes one or more of integral regulation, proportional regulation, differential regulation. The control flow chart of the PID closed-loop feedback control in the feedback controller 101 may be as shown in fig. 2, where integral adjustment plays an important role in the process of adjusting voltage stability, and parameters of integral adjustment may reflect the gain bandwidth product, the phase margin, and the gain margin of the feedback loop in the closed-loop feedback control, so that the driving power supply is quickly stabilized. It will be appreciated that the specific adjustment parameters of the integral adjustment, the proportional adjustment, the differential adjustment, the specific number of each adjustment, and the structural relationship between each adjustment may be set according to the actual working conditions, and are not limited herein.
According to the above requirements for the feedback controller 101, in this embodiment, the feedback controller 101 is specifically a CPLD (Complex Programmable LogicDevice ) or FPGA (Field Programmable GateArray, field programmable gate array), and a closed-loop feedback control program is built in the feedback controller to realize the function of closed-loop feedback control.
Further, in this embodiment, the feedback controller 101 is used as a controller for the bottom execution part of the programmable power supply, and the front end control of the programmable power supply can be implemented by an upper computer capable of controlling the feedback controller 101, that is, the programmable power supply further includes: and the main controller 106 is configured to receive the user command, generate a target power signal according to the user command, and send the target power signal to the feedback controller 101.
It can be understood that the main controller 106 may be implemented by a single-chip microcomputer, a computer, a tablet or other terminal devices, where a voltage stabilization test case is built in the main controller 106, and the main controller 106 receives a user instruction through a user interface, where the user instruction indicates an expected parameter of a driving power supply output by the programmable power supply, and the user interface includes an IO interface of an interactive device such as a mouse, a button, a touch screen, and the like. When the main controller 106 receives a user command through the user interface, a corresponding target power signal is generated using the user command and the voltage stabilization test case. It can be understood that, in this embodiment, the target power signal, the digital control signal, the analog control signal, the driving power, the voltage analog signal, the current analog signal, and the digital feedback signal have a close correspondence relationship, although there is a specific numerical value or form difference between these signals, based on the conversion relationship between the signals.
Further, based on the communication function of the main controller 106 to the feedback controller 101, the main controller 106 can read and write the program in the feedback controller 101, so that the main controller 106 can also be used for: the PID parameters for PID closed loop feedback control in the feedback controller 101 are adjusted. For testing scenes of different loads, the effect of closed loop feedback control of the same set of PID parameters is different, so that in order to improve the feedback effect, the stabilizing speed of the driving power supply is increased, the driving power supply keeps the optimal voltage response, and the main controller 106 can modify and reconfigure the PID parameters in the current feedback controller 101, so that the response efficiency of the programmable power supply is improved.
According to the embodiment of the application, the feedback controller replaces an analog circuit with fixed original parameters, the problems that the analog circuit cannot adjust parameters and is only suitable for part of test scenes are solved, the feedback controller is higher in flexibility of closed-loop feedback control, higher in response speed, capable of providing stable power sources for more different types of test scenes, and wide in application range.
In some specific embodiments, to increase the response speed, each circuit in the programmable power supply may be set to a higher refresh rate or sampling rate circuit.
The power driving circuit is specifically a high-speed digital-to-analog conversion circuit, and the current output has the characteristics of high speed, high power utilization rate, wide application, wide output range and the like, so that the digital-to-analog conversion circuit with the structure is suitable for the design requirement of high speed and high precision, as shown in a structural schematic diagram of the high-speed digital-to-analog conversion circuit in fig. 3, the high-speed digital-to-analog conversion circuit comprises an LVDS (Low-Voltage DifferentialSignaling, low voltage differential signal) module 301, a decoding module 302, a reference source module 303, a current calibration module 304, a clock distribution module 305, a current source array 306 and a synchronous latch logic module 307;
the signal input end of the LVDS module 301 is used as the input end of the high-speed digital-to-analog conversion circuit;
the signal output end of the LVDS module 301 is connected with the signal input end of the decoding module 302;
the signal output end of the decoding module 302 is connected with the signal input end of the synchronous latch logic module 307;
the signal output end of the synchronous latch logic module 307 is connected with the signal input end of the current source array 306;
the clock distribution module 305 provides a clock signal to the synchronous latch logic module 307;
the reference source module 306 provides a reference voltage reference source for the high-speed digital-to-analog conversion circuit;
the current calibration module 304 is connected with the current source array 306 and performs current calibration on the current source array 306;
the signal output of the current source array 306 is used as the output of the high-speed digital-to-analog conversion circuit.
Taking a high-speed digital-to-analog conversion circuit with 16-bit input as an example, the high-speed digital-to-analog conversion circuit can be realized by a sectional structure of 7+4+5, and the current source array comprises a unit current source structure and a binary weighted current source structure, which can be respectively called a unit current source and a binary current source for short. Wherein the upper 7 bits and the middle 4 bits respectively adopt a unit current source structure, the lower 5 bits adopt a binary weighted current source structure, and the operation process is shown in figure 4. In fig. 4, bit15-Bit 0 is firstly converted into a standard CMOS signal by an LVDS module, and then the high 7-Bit binary signals Bit15-Bit9 in the standard CMOS signal are generated by a decoding module and a synchronous latch logic module to generate 127 paths of thermometer code signals, and the control lines are used for controlling the unit current source structure; the middle 4-Bit binary signals Bit8-Bit5 generate 15 paths of thermometer code signals through a decoding module and a synchronous latch logic module to control the corresponding unit current source structure; the lower 5-Bit binary signals Bit 4-Bit 0 directly control 5 binary weighted current source structures through the synchronous latch logic module. The synchronous latch logic module is implemented by a DFF (D Flip Flop).
The reference source module provides an accurate voltage source which is hardly interfered by the ambient temperature and the power supply voltage for the whole high-speed digital-to-analog conversion circuit. In order to synchronize with external data better and ensure that the high-speed digital-to-analog conversion circuit has 16Bit precision, a current calibration module is also adopted in the circuit design, and 127 unit current source structures controlled by high 7-Bit binary signals Bit15-Bit9 are used for carrying out necessary calibration to ensure the accuracy of output current.
As shown in fig. 4, the source of the circuit output current has two parts, namely a unit current source structure and a binary weighted current source structure. If the output current of the current source of the least significant bit is I LSB The output currents of the second, third, fourth and fifth bits are sequentially: 2I LSB 、4I LSB 、8I LSB 、16I LSB I.e. the output current of the current source of each higher one is 2 times of that of the lower one, so the total current output of the lower five bits of the whole high-speed digital-to-analog conversion circuit is 31I LSB While the output current of each current source in the 127 unit current source structure controlled by the upper 7 bits is given by:
I unit =512I LSB
the total current which can be output by the high-speed digital-to-analog conversion circuit is obtained by the method:
I total =I LSB +2I LSB +4I LSB +8I LSB +16I LSB +32I LSB +…+127×512I LSB =65535I LSB
in FIG. 4, I outA And I outB Two complementary current output ends of the high-speed digital-to-analog conversion circuit respectively, when the input 16-bit digital code is 0, I outA Output is 0, and complementary end I outB The output is full-scale current I total When 16 bits are inputWhen the digital codes are all 1, I outA For full-scale output, and complementary end I outB The output is 0, and the corresponding analog current output value when different digital codes are input can be obtained through the following two formulas:
I outA =(DAC INPUT CODE/65536)×I total
I outB =(65535-DAC INPUT CODE/65536)×I total
in the above formula, the DAC INPUT CODE is a digital control signal received by the high-speed digital-to-analog conversion circuit, and the value range is 0-65535. I LSB And I unit The size of the voltage output circuit is generally determined by the sizes of a reference voltage source and a current output pipe, if the current output end of the high-speed digital-to-analog conversion circuit is connected with a resistor load, the current can be directly converted into voltage output, and the voltage output value of the complementary end can be obtained by the following two formulas:
V OUTA =I outA ×R LOAD
V OUTB =I outB ×R LOAD
the final total differential output voltage is:
V DIFF =(I outA -I outB )×R LOAD
as can be seen from the calculation formula of the differential output voltage, when differential current output is adopted, the differential current output is applied to change the differential current into single end, so that the amplitude of an output signal can be doubled, and meanwhile, the differential output can improve the conversion speed and the dynamic characteristic of the high-speed digital-to-analog conversion circuit.
The power driving circuit outputs the analog control signal to the power amplifying circuit rapidly, and the power amplifying circuit is used for providing enough power for the load, and the basic requirements comprise that the output power is as large as possible, the efficiency is high, the nonlinear distortion is small, and the heat dissipation of the power device is good. The main components of the power amplifying circuit comprise analog integrated circuit elements such as an operational amplifier, a transistor and the like, the types of the amplifying circuit comprise an OTL (Output Transformer Less, no-output transformer power amplifying circuit) circuit, an OCL (Output Capacitor Less, no-output capacitor power amplifying circuit) circuit, a BTL (Balanced TransformerLess, called a balanced bridge type power amplifying circuit) circuit and a class B complementary push-pull circuit according to different positions of static working points of the transistor, the OCL circuit is preferably used as the power amplifying circuit in the embodiment, and the OCL circuit has the characteristics of high efficiency and good low frequency characteristics and is suitable for a driving power supply in the embodiment.
In some embodiments, the sampling circuit selects according to the expected state of the driving power supply, and the analog sampling signal generated by sampling by the sampling circuit should reflect the actual state of the driving power supply. Specifically when the expected state of the driving power supply includes a certain voltage or a certain current. Further, the sampling circuit is specifically a sampling resistor circuit, the output end of the power amplification circuit is connected with the first end of the sampling circuit, and the second end of the sampling resistor is used as the output end of the programmable power supply to be connected with the load to be tested.
In some specific embodiments, the measurement circuit is embodied as a high-speed analog-to-digital conversion circuit. Among various analog-to-digital conversion circuits, the successive approximation analog-to-digital conversion circuit has higher conversion speed and higher conversion precision, and can be applied to the embodiment, the structure of the successive approximation analog-to-digital conversion circuit is shown in fig. 5, and the high-speed analog-to-digital conversion circuit comprises a voltage comparator, a D/A converter, a successive approximation register, a buffer register and a logic controller; wherein:
the non-inverting input end of the voltage comparator is used as the input end of the high-speed analog-to-digital conversion circuit, and the inverting input end of the voltage comparator is connected with the output end of the D/A converter;
the output end of the voltage comparator is connected with the signal input end of the logic controller;
the signal output end of the logic controller is connected with the signal input end of the successive approximation register;
the signal output end of the successive approximation register is respectively connected with the signal input end of the D/A converter and the signal input end of the buffer register;
the signal output end of the buffer register is used as the output end of the high-speed analog-digital conversion circuit.
The three management pins of the logic controller are respectively used for receiving a starting signal, receiving a clock signal CLK and returning a conversion ending signal. Upon receipt of the start signal, the logic controller performs the following operations: resetting each bit of the successive approximation register during initialization; when the conversion starts, firstly, the highest position 1 of the successive approximation register is sent to a D/A converter, the analog quantity generated after the D/A conversion is sent to a voltage comparator, which is called Vo, and is compared with the analog quantity Vi to be converted sent to the voltage comparator, if Vo is less than Vi, the bit1 is reserved, otherwise, the bit1 is cleared; then setting the next highest order of the successive approximation register as 1, sending the new digital quantity in the successive approximation register to a D/A converter, comparing the output Vo with Vi, if Vo is less than Vi, reserving the bit1, otherwise, clearing; this process is repeated until the least significant bit of the register is approximated. After the conversion is finished, the digital quantity in the successive approximation register is sent into a buffer register, the output of the digital quantity is obtained and used as a digital feedback signal, and a conversion finishing signal is returned.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail. It should be understood that, the size of the serial numbers of the modules in the above embodiments does not mean the order of execution, and the order of execution of the processes should be determined by the functions and the internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Fig. 6 is a schematic diagram of a feedback controller in a programmable power supply according to an embodiment of the present application, where the feedback controller is implemented by the feedback controller in fig. 1, and the method includes:
s601: reading a target power supply signal;
s602: acquiring a digital feedback signal sent by a measuring circuit;
s603: and performing closed-loop feedback control on the target power supply signal based on the digital feedback signal to generate a digital control signal.
According to the embodiment of the application, the feedback controller replaces an analog circuit with fixed original parameters, the problems that the analog circuit cannot adjust parameters and is only suitable for part of test scenes are solved, the feedback controller is higher in flexibility of closed-loop feedback control, higher in response speed, capable of providing stable power sources for more different types of test scenes, and wide in application range.
In some specific embodiments, the process of generating the digital control signal by performing closed loop feedback control on the target power supply signal based on the digital feedback signal specifically includes: based on the digital feedback signal, PID closed loop feedback control is carried out on the target power supply signal to generate a digital control signal; the PID closed loop feedback control comprises one or more of integral adjustment, proportional adjustment and differential adjustment. The integral regulation plays an important role in the process of regulating voltage stability, and parameters of the integral regulation can reflect gain bandwidth product, phase margin and gain margin of a feedback loop in closed-loop feedback control, so that a driving power supply is fast and stable. It will be appreciated that the specific adjustment parameters of the integral adjustment, the proportional adjustment, the differential adjustment, the specific number of each adjustment, and the structural relationship between each adjustment may be set according to the actual working conditions, and are not limited herein.
In this embodiment, the feedback controller is used as a controller for the bottom execution part of the programmable power supply, and the front end control of the programmable power supply can be implemented by a host computer capable of controlling the feedback controller, so that in some specific embodiments, before reading the target power supply signal, the method further includes:
and after the receiving main controller receives the user instruction, generating a target power supply signal according to the user instruction.
Further, based on the communication function of the main controller to the feedback controller, the main controller may read and write the program in the feedback controller, so the method of the embodiment may further include: and receiving an adjusting instruction sent by the main controller, and adjusting PID parameters for PID closed-loop feedback control according to the adjusting instruction. For testing scenes of different loads, the effect of closed loop feedback control of the same set of PID parameters is different, in order to improve the feedback effect, the stabilizing speed of the driving power supply is accelerated, so that the driving power supply keeps the optimal voltage response, and the main controller can modify and reconfigure the PID parameters in the current feedback controller, so that the response efficiency of the programmable power supply is improved.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail. It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Fig. 7 is a schematic diagram of an electronic device 7 provided in an embodiment of the present application. As shown in fig. 7, the electronic device 7 of this embodiment includes: a processor 701, a memory 702 and a computer program 703 stored in the memory 702 and executable on the processor 701. The processor 701, when executing the computer program 703, performs the functions of the feedback controller or the main controller in the various device embodiments described above.
The electronic device 7 may be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The electronic device 7 may include, but is not limited to, a processor 701 and a memory 702. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the electronic device 7 and is not limiting of the electronic device 7 and may include more or fewer components than shown, or different components.
The processor 701 may be a central processing unit (Central Processing Unit, CPU) or other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application SpecificIntegrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
The memory 702 may be an internal storage unit of the electronic device 7, for example, a hard disk or a memory of the electronic device 7. The memory 702 may also be an external storage device of the electronic device 7, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like provided on the electronic device 7. The memory 702 may also include both internal storage units and external storage devices of the electronic device 7. The memory 702 is used to store computer programs and other programs and data required by the electronic device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow in the methods of the above embodiments, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the computer program may implement the steps of the respective method embodiments described above when executed by a processor. The computer program may comprise computer program code, which may be in source code form, object code form, executable file or in some intermediate form, etc. The computer readable storage medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable storage medium may be appropriately scaled according to the requirements of jurisdictions in which such computer readable storage medium does not include electrical carrier signals and telecommunication signals, for example, according to jurisdictions and patent practices.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. The utility model provides a programmable power supply which characterized in that includes feedback controller, power drive circuit, power amplification circuit, sampling circuit and measurement circuit, wherein:
the feedback controller is used for performing closed-loop feedback control on the target power supply signal based on the digital feedback signal to generate a digital control signal;
the power driving circuit is used for generating a corresponding analog control signal according to the digital control signal;
the power amplifying circuit is used for amplifying the analog control signal to generate a driving power supply;
the sampling circuit is used for sampling the voltage and the current of the driving power supply respectively to generate a voltage analog signal and a current analog signal;
the measuring circuit is used for collecting the voltage analog signal and the current analog signal, generating corresponding digital feedback signals and sending the digital feedback signals to the feedback controller.
2. The programmable power supply of claim 1, wherein the power driving circuit is embodied as a high-speed digital-to-analog conversion circuit.
3. The programmable power supply of claim 2, wherein the high-speed digital-to-analog conversion circuit comprises an LVDS module, a decoding module, a reference source module, a current calibration module, a clock distribution module, a current source array, and a synchronous latch logic module;
the signal input end of the LVDS module is used as the input end of the high-speed digital-to-analog conversion circuit;
the signal output end of the LVDS module is connected with the signal input end of the decoding module;
the signal output end of the decoding module is connected with the signal input end of the synchronous latch logic module;
the signal output end of the synchronous latch logic module is connected with the signal input end of the current source array;
the clock distribution module provides a clock signal for the synchronous latch logic module;
the reference source module provides a reference voltage reference source for the high-speed digital-to-analog conversion circuit;
the current calibration module is connected with the current source array and performs current calibration on the current source array;
the signal output end of the current source array is used as the output end of the high-speed digital-to-analog conversion circuit.
4. A programmable power supply according to claim 1, characterized in that the measuring circuit is in particular a high-speed analog-to-digital conversion circuit.
5. The programmable power supply of claim 4, wherein the high-speed analog-to-digital conversion circuit comprises a voltage comparator, a D/a converter, a successive approximation register, a buffer register, and a logic controller; wherein:
the non-inverting input end of the voltage comparator is used as the input end of the high-speed analog-to-digital conversion circuit, and the inverting input end of the voltage comparator is connected with the output end of the D/A converter;
the output end of the voltage comparator is connected with the signal input end of the logic controller;
the signal output end of the logic controller is connected with the signal input end of the successive approximation register;
the signal output end of the successive approximation register is respectively connected with the signal input end of the D/A converter and the signal input end of the buffer register;
the signal output end of the buffer register is used as the output end of the high-speed analog-digital conversion circuit.
6. The programmable power supply of claim 1, wherein the sampling circuit is specifically a sampling resistor circuit, an output end of the power amplifying circuit is connected with a first end of the sampling circuit, and a second end of the sampling resistor is used as an output end of the programmable power supply to be connected with a load to be tested.
7. The programmable power supply of claim 1 wherein the programmable power supply comprises a programmable power supply,
the feedback controller is specifically a CPLD or an FPGA.
8. A programmable power supply according to any one of claims 1 to 7, characterized in that the feedback controller is in particular adapted to:
based on the digital feedback signal, PID closed loop feedback control is carried out on the target power supply signal to generate a digital control signal; the PID closed loop feedback control comprises one or more of integral adjustment, proportional adjustment and differential adjustment.
9. The programmable power supply of claim 8, further comprising:
the main controller is used for receiving a user instruction, generating the target power supply signal according to the user instruction and sending the target power supply signal to the feedback controller;
the main controller is also used for adjusting PID parameters used for PID closed-loop feedback control in the feedback controller.
10. A method of controlling a programmable power supply, characterized by a feedback controller for use in a programmable power supply as claimed in any one of claims 1 to 9, the method comprising:
reading a target power supply signal;
acquiring a digital feedback signal sent by a measuring circuit;
and performing closed-loop feedback control on the target power supply signal based on the digital feedback signal to generate a digital control signal.
CN202311185599.6A 2023-09-14 2023-09-14 Program-controlled power supply and control method Pending CN117348657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311185599.6A CN117348657A (en) 2023-09-14 2023-09-14 Program-controlled power supply and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311185599.6A CN117348657A (en) 2023-09-14 2023-09-14 Program-controlled power supply and control method

Publications (1)

Publication Number Publication Date
CN117348657A true CN117348657A (en) 2024-01-05

Family

ID=89368141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311185599.6A Pending CN117348657A (en) 2023-09-14 2023-09-14 Program-controlled power supply and control method

Country Status (1)

Country Link
CN (1) CN117348657A (en)

Similar Documents

Publication Publication Date Title
US8253470B2 (en) Offset calibration for amplifiers
TW523985B (en) Input voltage offset calibration of an analog device using a microcontroller
JP4153026B2 (en) AD converter and AD conversion method
TW201626714A (en) Digital multi-level envelope tracking for wide-bandwidth signals
US20200366312A1 (en) DAC Error Measurement Method and Apparatus
US8576101B1 (en) Calibration of an R2R ladder based current digital-to-analog converter (DAC)
JP6054732B2 (en) Semiconductor device and offset voltage correction method
WO2023061309A1 (en) Method, apparatus and system for calibrating offset voltage of operational amplifier circuit
US7215197B2 (en) Programmable gain instrumentation amplifier with improved gain multiplexers
CN114553222B (en) Device and method for improving gain range of sample holder
JP2019520717A (en) Microcontroller with Digital Delay Line Analog to Digital Converter
EP1858165A2 (en) Techniques for biasing a radio frequency digital to analog converter
CN104868701A (en) Hybrid compensating circuit of power supply converter
CN108459647A (en) The calibration mistuned circuit and method of electronic load constant current control loop
CN102262172A (en) Power monitoring method and device
TWI777398B (en) Controller, digital-to-analog converter (dac) system, and controller for controlling state of current source
CN117348657A (en) Program-controlled power supply and control method
Parmar et al. R-2R ladder circuit design for 32-bit digital-to-analog converter (DAC) with noise analysis and performance parameters
JPH0377429A (en) D/a converter
US11411543B2 (en) Power efficiency in an audio playback path
US20070080841A1 (en) Digital input signals constructor providing analog representation thereof
CN115240757A (en) Voltage bias circuit, solid state disk test system and control method thereof
CN110022110B (en) Voice coil motor damping control circuit
CN108011636B (en) Direct-current coupling channel calibration circuit for time-interleaved ADC (analog to digital converter)
Quintáns et al. A virtual instrumentation laboratory based on a reconfigurable coprocessor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination