A control method and device of a current source, a terminal device, a storage medium, and a current source

By controlling computer equipment and digital signal processors, and combining signal generators, amplitude regulators, and transconductance power amplifiers, efficient current regulation of the current source is achieved, solving the problem of low regulation efficiency of existing current sources and realizing adaptive current output.

CN122195199APending Publication Date: 2026-06-12GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG POWER GRID CO LTD
Filing Date
2026-05-08
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Existing current sources are inefficient and have cumbersome adjustment methods when regulating current.

Method used

The computer receives the current output parameters input by the user, uses a digital signal processor to generate amplitude and frequency control commands, controls the signal generator to generate a reference voltage signal, the amplitude regulator to adjust the amplitude of the voltage signal, and the transconductance power amplifier to convert the voltage signal into a wideband current signal for output.

Benefits of technology

It achieves adaptive current regulation, improves the efficiency and accuracy of current regulation, and can output current according to the set amplitude, set phase and set frequency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122195199A_ABST
    Figure CN122195199A_ABST
Patent Text Reader

Abstract

The application discloses a kind of control method, device, terminal equipment, storage medium and a kind of current source of current source, belong to electric power detection technical field, control method is applied to current source, including: computer equipment, digital signal processor, signal generator, amplitude regulator and transconductance power amplifier;Control method includes: through computer equipment, receive the current output parameter of user input, control digital signal processor with phase control instruction transmission to signal generator, to generate reference voltage signal;Control digital signal processor with amplitude control instruction transmission to amplitude regulator, to generate drive voltage signal;Control amplitude regulator with drive voltage signal transmission to transconductance power amplifier, to obtain proportional relationship wideband current signal;Wherein, current source is based on wideband current signal and carries out current output, therefore, by implementing the present application, it can solve the problem of low current regulation efficiency of current source in prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power detection technology, and in particular to a control method, device, terminal equipment, storage medium, and current source for a current source. Background Technology

[0002] A current source provides a constant, load-independent current, maintaining a stable output current regardless of voltage changes across its terminals. In practical applications, an ideal current source does not exist. A real current source typically consists of an ideal current source connected in parallel with its internal equivalent resistance; the output current decreases as the load increases. Current sources are widely used in electronic circuits, such as providing bias current to transistors, serving as active loads in analog integrated circuits, and forming core components of various signal processing and conversion circuits. However, the output current of existing current sources requires adjustment by changing the equivalent internal resistance, a cumbersome and inefficient method. Therefore, existing current sources suffer from low current regulation efficiency. Summary of the Invention

[0003] This invention provides a control method, device, terminal equipment, storage medium, and current source for a current source, which can solve the problem of low current regulation efficiency in existing current sources.

[0004] The present invention provides a control method for a current source, which is applied to a current source including: a computer device, a digital signal processor, a signal generator, an amplitude regulator, and a transconductance power amplifier; the control method includes: The computer device receives current output parameters input by the user, and then transmits the current output parameters to the digital signal processor. The current output parameters include: the set amplitude, the set phase, and the set frequency of the output current. The digital signal processor generates amplitude control instructions based on the set amplitude, and generates frequency and phase control instructions based on the set frequency and the set phase. The control digital signal processor transmits frequency and phase control commands to the signal generator, so that the signal generator generates a reference voltage signal with a set frequency and a set phase based on the frequency and phase control commands; wherein, after generating the reference voltage signal, the signal generator transmits the reference voltage signal to the amplitude regulator. The control digital signal processor transmits amplitude control commands to the amplitude regulator, so that the amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control commands to generate a drive voltage signal; The control amplitude regulator transmits the drive voltage signal to the transconductance power amplifier, so that the transconductance power amplifier converts the drive voltage signal into a wideband current signal that is proportional to the drive voltage signal; wherein, the current source outputs current based on the wideband current signal.

[0005] Furthermore, the output terminal of the computer device is connected to the input terminal of the digital signal processor, the first output terminal of the digital signal processor is connected to the input terminal of the signal generator, the second output terminal of the digital signal processor is connected to the first input terminal of the amplitude modulator, the output terminal of the signal generator is connected to the second input terminal of the amplitude modulator, and the output terminal of the amplitude modulator is connected to the input terminal of the transconductance power amplifier.

[0006] Furthermore, the signal generator includes: a reference clock, a first chip, a first resistor, a first operational amplifier, and a second resistor; wherein, the non-inverting output terminal of the first chip is connected to the non-inverting input terminal of the first operational amplifier and the first terminal of the first resistor, the inverting output terminal of the first chip is connected to the inverting input terminal of the first operational amplifier and grounded, the output terminal of the first operational amplifier is connected to the second terminal of the first resistor, and the output terminal of the reference clock is connected to the input terminal of the first chip through the second resistor.

[0007] Furthermore, the amplitude regulator includes: a digital-to-analog converter, a second operational amplifier, a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor; The first end of the third resistor is connected to the feedback resistor pin of the digital-to-analog converter and the output terminal of the second operational amplifier, respectively; the second end of the third resistor is connected to the first end of the fifth resistor and the inverting input terminal of the third operational amplifier, respectively. The first terminal of the fourth resistor is connected to the reference voltage input terminal of the digital-to-analog converter; the second terminal of the fourth resistor is connected to the second terminal of the third resistor. The second terminal of the fifth resistor is connected to the output terminal of the third operational amplifier; The digital input terminal of the digital-to-analog converter is connected to the digital signal processor; the output terminal of the digital-to-analog converter is connected to the inverting input terminal of the second operational amplifier. The digital-to-analog converter, the non-inverting input of the second operational amplifier, and the non-inverting input of the third operational amplifier are all grounded.

[0008] Furthermore, the amplitude control instruction includes: an amplitude control word; The amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control command to generate a drive voltage signal, including: In the amplitude regulator, an amplitude control command is received by a digital-to-analog converter, so that the digital-to-analog converter responds to the amplitude control word and outputs a corresponding analog current signal to the second operational amplifier. The analog current signal is converted into a first voltage signal by a second operational amplifier; A proportional summing circuit, consisting of a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor, receives a reference voltage signal and a first voltage signal. The proportional summing circuit then superimposes and scales the reference voltage signal and the first voltage signal to output a drive voltage signal. The amplitude of the drive voltage signal is proportional to the amplitude of the first voltage signal, and the phase between the drive voltage signal and the reference voltage signal is determined by a phase control word.

[0009] Furthermore, the transconductance power amplifier includes: a fourth operational amplifier, a power amplifier, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a load resistor, a capacitor, a fluxgate current transformer, a low-pass filter, and a high-frequency transformer. One end of the sixth resistor is connected to the first end of the ninth resistor and the non-inverting input of the fourth operational amplifier, respectively. The first terminal of the seventh resistor is connected to the second terminal of the ninth resistor and the first terminal of the fluxgate current transformer; the second terminal of the seventh resistor is connected to the second terminal of the fluxgate current transformer and grounded. The first terminal of the eighth resistor is connected to the inverting input of the fourth operational amplifier and the first terminal of the low-pass filter, respectively; the second terminal of the eighth resistor is grounded. The second terminal of the low-pass filter is connected to the output terminal of the fourth operational amplifier and the non-inverting input terminal of the power amplifier, respectively. The inverting input terminal of the power amplifier is connected to the output terminal of the power amplifier and the first terminal of the capacitor, respectively. The first terminal of the high-frequency transformer is connected to the second terminal of the capacitor. The second terminal of the high-frequency transformer is connected to the third terminal of the fluxgate current transformer. The third terminal of the high-frequency transformer is connected to the fourth terminal of the fluxgate current transformer through a load resistor. The fourth terminal of the high-frequency transformer is grounded.

[0010] Another embodiment of the present invention provides a control device for a current source, comprising: an application to the current source, the current source including: a computer device, a digital signal processor, a signal generator, an amplitude regulator, and a transconductance power amplifier; the control device including: a data receiving module, a frequency control module, an amplitude control module, and a signal conversion module; The data receiving module is used to receive current output parameters input by the user through a computer device, so that the computer device can transmit the current output parameters to a digital signal processor; wherein, the current output parameters include: a set amplitude, a set phase, and a set frequency of the output current; the digital signal processor generates an amplitude control command based on the set amplitude, and generates a frequency and phase control command based on the set frequency and the set phase; The frequency control module is used to control the digital signal processor to transmit frequency and phase control commands to the signal generator, so that the signal generator generates a reference voltage signal with a set frequency and a set phase based on the frequency and phase control commands; wherein, after generating the reference voltage signal, the signal generator transmits the reference voltage signal to the amplitude regulator. The amplitude control module is used to control the digital signal processor to transmit amplitude control instructions to the amplitude regulator, so that the amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control instructions and generates a drive voltage signal. The signal conversion module is used to control the amplitude regulator to transmit the drive voltage signal to the transconductance power amplifier, so that the transconductance power amplifier converts the drive voltage signal into a wideband current signal that is proportional to the drive voltage signal; wherein, the current source outputs current based on the wideband current signal.

[0011] Furthermore, the output terminal of the computer device is connected to the input terminal of the digital signal processor, the first output terminal of the digital signal processor is connected to the input terminal of the signal generator, the second output terminal of the digital signal processor is connected to the first input terminal of the amplitude modulator, the output terminal of the signal generator is connected to the second input terminal of the amplitude modulator, and the output terminal of the amplitude modulator is connected to the input terminal of the transconductance power amplifier.

[0012] Furthermore, the signal generator includes: a reference clock, a first chip, a first resistor, a first operational amplifier, and a second resistor; wherein, the non-inverting output terminal of the first chip is connected to the non-inverting input terminal of the first operational amplifier and the first terminal of the first resistor, the inverting output terminal of the first chip is connected to the inverting input terminal of the first operational amplifier and grounded, the output terminal of the first operational amplifier is connected to the second terminal of the first resistor, and the output terminal of the reference clock is connected to the input terminal of the first chip through the second resistor.

[0013] Furthermore, the amplitude regulator includes: a digital-to-analog converter, a second operational amplifier, a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor; The first end of the third resistor is connected to the feedback resistor pin of the digital-to-analog converter and the output terminal of the second operational amplifier, respectively; the second end of the third resistor is connected to the first end of the fifth resistor and the inverting input terminal of the third operational amplifier, respectively. The first terminal of the fourth resistor is connected to the reference voltage input terminal of the digital-to-analog converter; the second terminal of the fourth resistor is connected to the second terminal of the third resistor. The second terminal of the fifth resistor is connected to the output terminal of the third operational amplifier; The digital input terminal of the digital-to-analog converter is connected to the digital signal processor; the output terminal of the digital-to-analog converter is connected to the inverting input terminal of the second operational amplifier. The digital-to-analog converter, the non-inverting input of the second operational amplifier, and the non-inverting input of the third operational amplifier are all grounded.

[0014] Furthermore, the amplitude control instruction includes: an amplitude control word; The amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control command to generate a drive voltage signal, including: In the amplitude regulator, an amplitude control command is received by a digital-to-analog converter, so that the digital-to-analog converter responds to the amplitude control word and outputs a corresponding analog current signal to the second operational amplifier. The analog current signal is converted into a first voltage signal by a second operational amplifier; A proportional summing circuit, consisting of a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor, receives a reference voltage signal and a first voltage signal. The proportional summing circuit then superimposes and scales the reference voltage signal and the first voltage signal to output a drive voltage signal. The amplitude of the drive voltage signal is proportional to the amplitude of the first voltage signal, and the phase between the drive voltage signal and the reference voltage signal is determined by a phase control word.

[0015] Furthermore, the transconductance power amplifier includes: a fourth operational amplifier, a power amplifier, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a load resistor, a capacitor, a fluxgate current transformer, a low-pass filter, and a high-frequency transformer. One end of the sixth resistor is connected to the first end of the ninth resistor and the non-inverting input of the fourth operational amplifier, respectively. The first terminal of the seventh resistor is connected to the second terminal of the ninth resistor and the first terminal of the fluxgate current transformer; the second terminal of the seventh resistor is connected to the second terminal of the fluxgate current transformer and grounded. The first terminal of the eighth resistor is connected to the inverting input of the fourth operational amplifier and the first terminal of the low-pass filter, respectively; the second terminal of the eighth resistor is grounded. The second terminal of the low-pass filter is connected to the output terminal of the fourth operational amplifier and the non-inverting input terminal of the power amplifier, respectively. The inverting input terminal of the power amplifier is connected to the output terminal of the power amplifier and the first terminal of the capacitor, respectively. The first terminal of the high-frequency transformer is connected to the second terminal of the capacitor. The second terminal of the high-frequency transformer is connected to the third terminal of the fluxgate current transformer. The third terminal of the high-frequency transformer is connected to the fourth terminal of the fluxgate current transformer through a load resistor. The fourth terminal of the high-frequency transformer is grounded.

[0016] Another embodiment of the present invention provides a terminal device, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements the steps of the current source control method provided by the present invention.

[0017] Another embodiment of the present invention also provides a computer-readable storage medium item, including: a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located performs the steps of the current source control method provided by the present invention.

[0018] Another embodiment of the present invention also provides a current source applicable to the steps of the control method of the current source provided by the present invention, the current source comprising: a computer device, a digital signal processor, a signal generator, an amplitude regulator, and a transconductance power amplifier; The digital signal processor is configured to generate amplitude control commands based on a set amplitude, and generate frequency and phase control commands based on a set frequency and a set phase; transmit the frequency and phase control commands to a signal generator; and transmit the amplitude control commands to an amplitude modulator. The signal generator is used to generate a reference voltage signal with a set frequency and a set phase based on frequency and phase control commands; after generating the reference voltage signal, the reference voltage signal is transmitted to the amplitude regulator. The amplitude regulator is used to adjust the amplitude of the reference voltage signal based on the amplitude control command, generate a drive voltage signal, and transmit the drive voltage signal to the transconductance power amplifier. The transconductance power amplifier is used to convert the driving voltage signal into a wideband current signal that is proportional to the driving voltage signal; wherein, the current source outputs current based on the wideband current signal.

[0019] The following benefits can be obtained by implementing the present invention: This invention discloses a method for controlling a current source. A computer device receives current output parameters input by a user, which are then transmitted to a digital signal processor (DSP). The current output parameters include a set amplitude, a set phase, and a set frequency of the output current. The DSP generates amplitude control instructions based on the set amplitude, and frequency and phase control instructions based on the set frequency and phase. The DSP transmits the frequency and phase control instructions to a signal generator, which generates a reference voltage signal with the set frequency and phase. After generating the reference voltage signal, the signal generator transmits it to an amplitude regulator. The DSP then transmits the amplitude control instructions to the amplitude regulator, which adjusts the amplitude of the reference voltage signal to generate a drive voltage signal. The amplitude regulator transmits the drive voltage signal to a transconductance power amplifier, which converts the drive voltage signal into a broadband current signal proportional to the drive voltage signal. The current source outputs current based on this broadband current signal. This invention uses computer equipment to define user needs, uses a digital signal processor to determine instructions, uses a signal generator to set the frequency, uses an amplitude regulator to set the amplitude and phase, and finally uses a transconductance power amplifier to generate a wideband current signal. The current source is then output according to the set amplitude, set phase, and set frequency, thus realizing adaptive current regulation. Attached Figure Description

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

[0021] Figure 1 This is a flowchart illustrating a current source control method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a current source control device provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a current source provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a DDS wideband signal generator provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a digital forward and reverse amplitude regulator provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the transconductance power amplifier provided in an embodiment of the present invention. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. 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.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0024] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0025] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0026] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0027] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).

[0028] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.

[0029] See Figure 1 To address the problem of low current regulation efficiency in existing current sources, an embodiment of the present invention provides a control method for a current source, applied to a current source including: a computer device, a digital signal processor, a signal generator, an amplitude regulator, and a transconductance power amplifier; the control method includes: 101. The computer device receives the current output parameters input by the user, so that the computer device transmits the current output parameters to the digital signal processor; wherein, the current output parameters include: the set amplitude, the set phase and the set frequency of the output current; the digital signal processor generates amplitude control instructions based on the set amplitude, and generates frequency and phase control instructions based on the set frequency and the set phase.

[0030] In this embodiment, the output terminal of the computer device is connected to the input terminal of the digital signal processor, the first output terminal of the digital signal processor is connected to the input terminal of the signal generator, the second output terminal of the digital signal processor is connected to the first input terminal of the amplitude modulator, the output terminal of the signal generator is connected to the second input terminal of the amplitude modulator, and the output terminal of the amplitude modulator is connected to the input terminal of the transconductance power amplifier.

[0031] For a better explanation, see [link to relevant documentation]. Figure 3 The computer equipment is computer U5; the digital signal processor is DSP processor U4; the signal generator is DDS wideband signal generator U1; the amplitude regulator is digital positive and negative direction amplitude regulator U2; and the transconductance power amplifier is multi-loop negative feedback transconductance power amplifier U3.

[0032] It should be noted that computer U5 is used for communication and human-computer interaction with DSP processor U4 via the network port. The computer's processor is 2GHz or higher, with 16GB or more of memory and 500GB or more of hard disk space, and it has a network port for data display, data input, and communication support in this embodiment.

[0033] The DSP processor U4 has at least two SPI interfaces and one Ethernet port. It can be composed of a digital signal processor chip and its peripherals. The chip has a large number of built-in peripherals, including two SPI interfaces, 16 general-purpose I / O ports, an AMC interface (i.e., asynchronous memory interface), 256MB YTE DRAM, and one Ethernet port, used to complete the algorithm and communication functions of this embodiment. The DSP processor U4 controls the set frequency and set phase of the DDS wideband signal generator U1 through the SPI-1 interface (i.e., the first output terminal of the digital signal processor) (the set phase is confirmed when there is an external synchronization pulse), controls the output amplitude of the digital forward and reverse amplitude adjuster U2 through the SPI-2 interface (i.e., the second output terminal of the digital signal processor), and communicates with the computer U5 through the Ethernet port.

[0034] 102, 102, The control digital signal processor transmits frequency and phase control commands to the signal generator, so that the signal generator generates a reference voltage signal with a set frequency and a set phase based on the frequency and phase control commands; wherein, after generating the reference voltage signal, the signal generator transmits the reference voltage signal to the amplitude regulator.

[0035] In this embodiment, the signal generator includes: a reference clock, a first chip, a first resistor, a first operational amplifier, and a second resistor; wherein, the non-inverting output terminal of the first chip is connected to the non-inverting input terminal of the first operational amplifier and the first terminal of the first resistor, the inverting output terminal of the first chip is connected to the inverting input terminal of the first operational amplifier and grounded, the output terminal of the first operational amplifier is connected to the second terminal of the first resistor, and the output terminal of the reference clock is connected to the input terminal of the first chip through the second resistor.

[0036] In one specific embodiment, see Figure 4 The DDS wideband signal generator U1 consists of a reference clock U11, a DDS chip (i.e., the first chip) U12, a resistor (i.e., the first resistor) R11, an operational amplifier (i.e., the first operational amplifier) ​​A11, and a resistor R12 (i.e., the second resistor).

[0037] Resistor R11 and operational amplifier A11 together form an I / V converter, used to convert the 1.6122189mA RMS current output from DDS chip U12 into a 1V AC voltage. The output voltage is the product of the current and the resistance. Resistor R11 has a resistance of 620.26Ω and an accuracy of 0.01%, while operational amplifier A11 has a bandwidth of at least 10MHz. Resistor R12 has a resistance of 500Ω and an accuracy of 5%.

[0038] It should be noted that when the current source needs to be synchronized with an external clock, an external clock is connected. When no external clock is connected, the reference clock U11 is used automatically. The crystal output of the reference clock U11 is 10MHz. When an external clock is used as the input, the crystal output of the external clock must also be 10MHz.

[0039] When an external clock is used, and a synchronization input pulse is also present, the phase of the DDS chip can be synchronized with the external clock. The DDS chip has a frequency resolution of 32 bits, a synchronous trigger update function, and a reference clock output frequency of 10 MHz. Therefore, the signal output frequency of the DDS chip is as shown in formula (1).

[0040] (1) In the formula, FTW is the frequency control word of the DDS chip, a 32-bit integer; f dss This refers to the output frequency of the DDS chip. The output frequency of the reference clock U11.

[0041] Set according to formula (1) The frequency when the output frequency is 150kHz is: (2) In the formula, round() is the rounding function. For example: The hexadecimal number is 64,424,509. Substituting into formula (1), we have When the output frequency is 50Hz, Substituting 0x52E3 into formula (1), we have .

[0042] Therefore, the 32-bit DDS chip can achieve very high accuracy and resolution at frequencies of 50Hz and 150kHz, which is better than the relative error of 0.01%.

[0043] The specific steps for obtaining the set phase are as follows: when an external phase synchronization input is required, the phase control word is obtained, and the set phase is determined based on the phase control word, as shown in formula (3): (3) In the formula, POW stands for phase control word. To set the phase.

[0044] 103. The control digital signal processor transmits the amplitude control command to the amplitude regulator, so that the amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control command and generates a drive voltage signal.

[0045] In this embodiment, the amplitude regulator includes: a digital-to-analog converter, a second operational amplifier, a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor; The first end of the third resistor is connected to the feedback resistor pin of the digital-to-analog converter and the output terminal of the second operational amplifier, respectively; the second end of the third resistor is connected to the first end of the fifth resistor and the inverting input terminal of the third operational amplifier, respectively. The first terminal of the fourth resistor is connected to the reference voltage input terminal of the digital-to-analog converter; the second terminal of the fourth resistor is connected to the second terminal of the third resistor. The second terminal of the fifth resistor is connected to the output terminal of the third operational amplifier; The digital input terminal of the digital-to-analog converter is connected to the digital signal processor; the output terminal of the digital-to-analog converter is connected to the inverting input terminal of the second operational amplifier. The digital-to-analog converter, the non-inverting input of the second operational amplifier, and the non-inverting input of the third operational amplifier are all grounded.

[0046] In one specific embodiment, see Figure 5 The digital forward and reverse amplitude regulator U2 consists of a DAC conversion module (i.e., digital-to-analog converter) U21, two operational amplifiers (i.e., the second operational amplifier and the third operational amplifier) ​​A21 / A22, a third resistor R21, a fourth resistor R22 and a fifth resistor R23, forming a unipolar to bipolar output circuit.

[0047] Among them, the resistance of the third resistor R21 is 5kΩ with an accuracy of 0.01%, and the resistances of the fourth resistor R22 and the fifth resistor R23 are 10kΩ with an accuracy of 0.01%. The operational amplifiers A21 / A22 have an offset voltage of less than 25μV and a voltage noise density of no more than 8nV / Hz; the gain bandwidth is no less than 2.5MHz, and AD8620 can be selected. The amplitude regulator is a 16-bit DAC converter with a current-mode output, consisting of DAC conversion module U21. DAC conversion module U21 has a built-in 5kΩ feedback resistor, which, when connected to operational amplifier A21, forms an I / V converter. This is used to convert the reference voltage to a reference current and then back to a voltage-mode output, as detailed in formula (4): (4) In the formula, D is the set amplitude, which can take any value from 0 to 65535. The set amplitude D is received from the DSP processor U4 via the SPI interface to control the output of Vdac; Vin is the reference voltage signal output by the DDS wideband signal generator U1, and Vdac is the first voltage signal.

[0048] The output of Vdac is controlled by receiving the set amplitude D from the DSP processor U4 via the SPI interface.

[0049] The output voltage of the unipolar to bipolar output circuit is shown in formula (5): (5) In the formula, when the value of D is less than 32768, the phase of Vout and the phase of Vin are opposite; when the value of D is greater than 32768, the phase of Vout and the phase of Vin are the same; when the value of D is equal to 32768, the output is 0V; when D=0, the output is -Vin; when D=65535, the output is approximately equal to +Vin.

[0050] In this embodiment, the amplitude control instruction includes: amplitude control word; The amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control command to generate a drive voltage signal, including: In the amplitude regulator, an amplitude control command is received by a digital-to-analog converter, so that the digital-to-analog converter responds to the amplitude control word and outputs a corresponding analog current signal to the second operational amplifier. The analog current signal is converted into a first voltage signal by a second operational amplifier; A proportional summing circuit, consisting of a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor, receives a reference voltage signal and a first voltage signal. The proportional summing circuit then superimposes and scales the reference voltage signal and the first voltage signal to output a drive voltage signal. The amplitude of the drive voltage signal is proportional to the amplitude of the first voltage signal, and the phase between the drive voltage signal and the reference voltage signal is determined by a phase control word.

[0051] In a specific embodiment, the digital forward and reverse amplitude regulator U2 (i.e., amplitude regulator) operates as follows: The set amplitude D is a 16-bit unsigned integer (range 0~65535). The DSP processor U4 sends the amplitude control word corresponding to the set amplitude D to the digital forward and reverse amplitude adjuster U2 via its SPI2 interface. Inside U2, the DAC conversion module U21, acting as a digital-to-analog converter, receives the amplitude control word. According to the formula Vdac = (D / 65536)×Vin, the DAC module responds to the value of D by outputting a corresponding analog current signal. This current signal flows through the feedback resistor integrated inside the DAC and is converted into a first voltage signal Vdac by the second operational amplifier A21. Here, Vin is the 1V reference voltage signal from the DDS wideband signal generator U1.

[0052] Subsequently, a unipolar-to-bipolar output circuit is constructed using the third operational amplifier A22, the third resistor R21, the fourth resistor R22, and the fifth resistor R23. The output circuit receives two input signals: a reference voltage signal Vin and a first voltage signal Vdac. The circuit superimposes and scales these two signals, ultimately outputting a drive voltage signal Vout, the relationship of which is precisely described by the formula Vout = (D / 32768 - 1) × Vin.

[0053] The amplitude and polarity of the drive voltage signal Vout are entirely determined by the set amplitude D. For example, when D=65535, the output is approximately +1V; when D=0, the output is -1V; and when D=32768, the output is 0V. The phase relationship (in-phase or out-of-phase) between the drive voltage signal and the reference voltage signal is essentially determined by whether the D value is greater than 32768 (in-phase or out-of-phase, i.e., 0° or 180° phase flip). The set phase of the signal is determined by the phase control word POW, which is sent by the DSP processor U4 to the DDS chip U12 via the SPI1 interface and is set during the generation of the reference voltage signal Vin.

[0054] 104. The control amplitude regulator transmits the drive voltage signal to the transconductance power amplifier so that the transconductance power amplifier converts the drive voltage signal into a wideband current signal that is proportional to the drive voltage signal; wherein, the current source outputs current based on the wideband current signal.

[0055] In this embodiment, the transconductance power amplifier includes: a fourth operational amplifier, a power amplifier, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a load resistor, a capacitor, a fluxgate current transformer, a low-pass filter, and a high-frequency transformer. One end of the sixth resistor is connected to the first end of the ninth resistor and the non-inverting input of the fourth operational amplifier, respectively. The first terminal of the seventh resistor is connected to the second terminal of the ninth resistor and the first terminal of the fluxgate current transformer; the second terminal of the seventh resistor is connected to the second terminal of the fluxgate current transformer and grounded. The first terminal of the eighth resistor is connected to the inverting input of the fourth operational amplifier and the first terminal of the low-pass filter, respectively; the second terminal of the eighth resistor is grounded. The second terminal of the low-pass filter is connected to the output terminal of the fourth operational amplifier and the non-inverting input terminal of the power amplifier, respectively. The inverting input terminal of the power amplifier is connected to the output terminal of the power amplifier and the first terminal of the capacitor, respectively. The first terminal of the high-frequency transformer is connected to the second terminal of the capacitor. The second terminal of the high-frequency transformer is connected to the third terminal of the fluxgate current transformer. The third terminal of the high-frequency transformer is connected to the fourth terminal of the fluxgate current transformer through a load resistor. The fourth terminal of the high-frequency transformer is grounded.

[0056] In one specific embodiment, see Figure 6 The transconductance power amplifier, specifically the multi-loop negative feedback transconductance power amplifier U3, consists of a precision operational amplifier (i.e., the fourth operational amplifier) ​​A31, a power amplifier A32, a sixth resistor R31, a seventh resistor R32, an eighth resistor R33, a ninth resistor R34, and a load resistor R. L It consists of capacitor C1, fluxgate current transformer T1, low-pass filter U31 and nanocrystalline high-frequency transformer T2.

[0057] It should be noted that the addition of a low-pass filter U31 at the output of A31 and the negative terminal of A31 to the transconductance power amplifier serves to suppress DC offset: it adds a 1:1 closed-loop feedback for DC, while for AC, it is an open loop in the first stage A31, so it does not affect AC amplification. A32, C1, and T2 form a high-power AC current drive circuit that is isolated for AC, and T1 and R32 form an isolated precision resistor and the first-stage amplifier circuit of A1 provides deep negative feedback, thereby achieving high-precision and high-stability transconductance function.

[0058] Understandably, high-frequency transformers can amplify current very efficiently, matching the operating voltage of power amplifier A2 and the linear region of the power amplifier drive. However, high-frequency transformers also have the drawback of low accuracy. By using T1 and R32 to form a precision isolation resistor and implementing deep negative feedback in the first-stage amplifier circuit of A1, the transformer's function becomes merely energy transfer and isolation, greatly improving accuracy and completely locking the input of the transconductance amplifier.

[0059] Preferably, the seventh resistor R32 has a resistance of 10Ω and an accuracy of 0.01%, and is used to convert the secondary current of the fluxgate into a voltage of about 1V; the sixth resistor R31 and the ninth resistor R34 are deep feedback proportional resistors with a resistance of 5kΩ and an accuracy of 0.01%; the eighth resistor R33 is a matching resistor with a resistance of 5kΩ and an accuracy of 5%.

[0060] The precision operational amplifier A31 has an offset voltage of less than 25μV, a voltage noise density of no more than 8nV / √Hz, a gain-bandwidth product of no less than 2.5MHz, and an open-loop gain of more than 106. The AD8620 can be selected.

[0061] The power amplifier A32 has a power rating of at least 4000W. Two high-power operational amplifiers can be used in parallel. These operational amplifiers typically have a bandwidth of 3MHz, can provide a continuous current output of 40A and a peak current output of 80A, and an operating voltage of 200V. A single operational amplifier can provide approximately 200 / 2 / 1.414*40=2828 watts of power, and two operational amplifiers in parallel can provide approximately 2828*2=5658 watts of power.

[0062] The nanocrystalline high-frequency transformer T2 uses nanocrystalline materials. It is made by uniformly precipitating tiny crystals with a size of 10-20 nanometers in an amorphous matrix through a precise heat treatment process on the basis of an amorphous alloy (metallic glass). It has extremely low coercivity and extremely high permeability. In the frequency range of 50 Hz to 150 kHz, the overall loss of nanocrystalline materials is very low, achieving a balance between efficiency and power density. The power of this invention is 4000W.

[0063] The fluxgate current sensor T1 has a transformation ratio of 2000:1, a maximum input AC current of 200A, and an accuracy of 20ppm (parts per million).

[0064] The low-pass filter is an RC filter with a cutoff frequency of 1Hz. For high-frequency signals, the low-pass filter is equivalent to an open circuit, and for DC signals, it is equivalent to a short circuit.

[0065] In one specific embodiment, the precision operational amplifier A31 has a DC signal amplification factor of 1, so it does not amplify the chip's own offset voltage. However, it has an AC amplification factor of 10^6, which allows for deep negative feedback of wideband signals after passing through fluxgate negative feedback. The power amplifier A32 is designed for tracking amplification, with the aim of increasing output power. Capacitor C1 is used to further isolate DC signals, ensuring that there are no DC signals at the input of the nanocrystalline high-frequency transformer; The fluxgate current sensor T1 is used to convert the output current into a secondary small current signal, which is then converted into a voltage signal through resistor R2. Together with R1 and R4, it forms a transconductance amplifier with deep negative feedback. The transconductance amplification is shown in formula (6). (6) In the formula, Where N is the output current and N is the turns ratio of the fluxgate. This is the input of the transconductance amplifier, i.e., the aforementioned drive voltage signal. R31 is the resistance value of the sixth resistor. This is the resistance value of the ninth resistor. Let R1 be the resistance of the seventh resistor; since R1 = R4 = 5kΩ, R2 = 10Ω, and N = 2000, formula 6 simplifies to: (7) In the formula, S is Siemens, and 1 S = 1 / 1 Ω.

[0066] In a specific embodiment, the working steps of this embodiment are as follows: Step 1: When powered on, the DSP processor U4 controls the digital forward and reverse amplitude regulator U2 through SPI1 to output an amplitude of 0V, which means that the D value of formula (5) is set to 32768; the output current of the multi-loop negative feedback transconductance power amplifier is 0 A.

[0067] Step Two: Input the desired output current amplitude and frequency via computer U5, for example, an output current of 200A. Negative values ​​can also be output, representing reverse output. If the current source in this embodiment is used as a standalone wideband current source, synchronization with an external clock and signal is not required. However, when the current source in this embodiment needs to be used in conjunction with a wideband voltage source for power testing, synchronization with an external signal is necessary. In this case, an external synchronization clock and synchronization input signal need to be connected, and the phase setting needs to be input via computer U5.

[0068] Step 3: Send the desired amplitude, frequency, and phase to the DSP processor U4 via computer U5. The DSP processor U4 sets the FTW according to formula (2) via SPI1, generates the frequency control word, and sends it. After sending, the DDS wideband signal generator U1 outputs the frequency fdds according to formula (1). When testing power with a wideband voltage source, synchronization with external signals is required. At this time, set the phase control word POW via SPI1 according to formula (3).

[0069] If a frequency of 150kHz is to be output, as shown in formula (2), the DSP processor U4 obtains the frequency control word via SPI1: FTW= The DSP processor U4 sets the amplitude control word of amplitude D through SPI2, controls the output voltage signal of the digital positive and negative direction amplitude regulator U2, and then converts the drive voltage signal into a wideband current signal through the multi-loop negative feedback transconductance power amplifier U3.

[0070] It should be noted that the wideband current signal is an AC current signal whose frequency covers the set operating frequency band and whose amplitude is linearly related to the amplitude of the driving voltage signal. Its amplitude is determined by the amplitude of the driving voltage signal and the transconductance gain of the transconductance amplifier, and its frequency is consistent with the frequency of the output signal of the DDS wideband signal generator. Based on this wideband current signal, the current source outputs a current signal corresponding to the set amplitude, set frequency, and set phase.

[0071] For example, to output a current of 200A: To output a current of 200A, according to formula (7), the required output voltage is 1V; according to formula (5), the amplitude control word of the output set amplitude D is 65535, and its error is -0.003%, which can be ignored.

[0072] When external phase synchronization is required, the DSP processor U4 sets the set phase calculated according to formula 5 via SPI1. For example, when the set phase value needs to be output... radians, phase control word It should be noted that the DSP processor U4 sets the phase control word to 0x1555 via SPI1.

[0073] like Figure 2 As shown, based on the above method embodiments, corresponding apparatus embodiments are provided; An embodiment of the present invention provides a control device for a current source, comprising: an application to the current source, the current source including: a computer device, a digital signal processor, a signal generator, an amplitude regulator, and a transconductance power amplifier; the control device includes: a data receiving module 201, a frequency control module 202, an amplitude control module 203, and a signal conversion module 204; The data receiving module is used to receive current output parameters input by the user through a computer device, so that the computer device can transmit the current output parameters to a digital signal processor; wherein, the current output parameters include: a set amplitude, a set phase, and a set frequency of the output current; the digital signal processor generates an amplitude control command based on the set amplitude, and generates a frequency and phase control command based on the set frequency and the set phase; The frequency control module is used to control the digital signal processor to transmit frequency and phase control commands to the signal generator, so that the signal generator generates a reference voltage signal with a set frequency and a set phase based on the frequency and phase control commands; wherein, after generating the reference voltage signal, the signal generator transmits the reference voltage signal to the amplitude regulator. The amplitude control module is used to control the digital signal processor to transmit amplitude control instructions to the amplitude regulator, so that the amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control instructions and generates a drive voltage signal. The signal conversion module is used to control the amplitude regulator to transmit the drive voltage signal to the transconductance power amplifier, so that the transconductance power amplifier converts the drive voltage signal into a wideband current signal that is proportional to the drive voltage signal; wherein, the current source outputs current based on the wideband current signal.

[0074] Understandably, the control device of the current source can be connected to the current source remotely to control its operation.

[0075] Furthermore, the output terminal of the computer device is connected to the input terminal of the digital signal processor, the first output terminal of the digital signal processor is connected to the input terminal of the signal generator, the second output terminal of the digital signal processor is connected to the first input terminal of the amplitude modulator, the output terminal of the signal generator is connected to the second input terminal of the amplitude modulator, and the output terminal of the amplitude modulator is connected to the input terminal of the transconductance power amplifier.

[0076] It should be noted that computer U5 is used for communication and human-computer interaction with DSP processor U4 via the network port. The computer's processor is 2GHz or higher, with 16GB or more of memory and 500GB or more of hard disk space, and it has a network port for data display, data input, and communication support in this embodiment.

[0077] The DSP processor U4 has at least two SPI interfaces and one Ethernet port. It can be composed of a digital signal processor chip and its peripherals. The chip has a large number of built-in peripherals, including two SPI interfaces, 16 general-purpose I / O ports, an AMC interface (i.e., asynchronous memory interface), 256MB YTE DRAM, and one Ethernet port, used to complete the algorithm and communication functions of this embodiment. The DSP processor U4 controls the set frequency and set phase of the DDS wideband signal generator U1 through the SPI-1 interface (i.e., the first output terminal of the digital signal processor) (the set phase is confirmed when there is an external synchronization pulse), controls the output amplitude of the digital forward and reverse amplitude adjuster U2 through the SPI-2 interface (i.e., the second output terminal of the digital signal processor), and communicates with the computer U5 through the Ethernet port.

[0078] Furthermore, the signal generator includes: a reference clock, a first chip, a first resistor, a first operational amplifier, and a second resistor; wherein, the non-inverting output terminal of the first chip is connected to the non-inverting input terminal of the first operational amplifier and the first terminal of the first resistor, the inverting output terminal of the first chip is connected to the inverting input terminal of the first operational amplifier and grounded, the output terminal of the first operational amplifier is connected to the second terminal of the first resistor, and the output terminal of the reference clock is connected to the input terminal of the first chip through the second resistor.

[0079] In one specific embodiment, see Figure 4 The DDS wideband signal generator U1 consists of a reference clock U11, a DDS chip (i.e., the first chip) U12, a resistor (i.e., the first resistor) R11, an operational amplifier (i.e., the first operational amplifier) ​​A11, and a resistor R12 (i.e., the second resistor).

[0080] Resistor R11 and operational amplifier A11 together form an I / V converter, used to convert the 1.6122189mA RMS current output from DDS chip U12 into a 1V AC voltage. The output voltage is the product of the current and the resistance. Resistor R11 has a resistance of 620.26Ω and an accuracy of 0.01%, while operational amplifier A11 has a bandwidth of at least 10MHz. Resistor R12 has a resistance of 500Ω and an accuracy of 5%.

[0081] It should be noted that when the current source needs to be synchronized with an external clock, an external clock is connected. When no external clock is connected, the reference clock U11 is used automatically. The crystal output of the reference clock U11 is 10MHz. When an external clock is used as the input, the crystal output of the external clock must also be 10MHz.

[0082] When an external clock is used, and a synchronization input pulse is also present, the phase of the DDS chip can be synchronized with the external clock. The DDS chip has a frequency resolution of 32 bits, a synchronous trigger update function, and a reference clock output frequency of 10 MHz. Therefore, the signal output frequency of the DDS chip is as shown in formula (1).

[0083] (1) In the formula, FTW is the frequency control word of the DDS chip, a 32-bit integer; f dss This refers to the output frequency of the DDS chip. The output frequency of the reference clock U11.

[0084] Set according to formula (1) The frequency when the output frequency is 150kHz is: (2) In the formula, round() is the rounding function. For example: The hexadecimal number is 64,424,509. Substituting into formula (1), we have When the output frequency is 50Hz, Substituting 0x52E3 into formula (1), we have .

[0085] Therefore, the 32-bit DDS chip can achieve very high accuracy and resolution at frequencies of 50Hz and 150kHz, which is better than the relative error of 0.01%.

[0086] The specific steps for obtaining the set phase are as follows: when an external phase synchronization input is required, the phase control word is obtained, and the set phase is determined based on the phase control word, as shown in formula (3): (3) In the formula, POW stands for phase control word. To set the phase.

[0087] Furthermore, the amplitude regulator includes: a digital-to-analog converter, a second operational amplifier, a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor; The first end of the third resistor is connected to the feedback resistor pin of the digital-to-analog converter and the output terminal of the second operational amplifier, respectively; the second end of the third resistor is connected to the first end of the fifth resistor and the inverting input terminal of the third operational amplifier, respectively. The first terminal of the fourth resistor is connected to the reference voltage input terminal of the digital-to-analog converter; the second terminal of the fourth resistor is connected to the second terminal of the third resistor. The second terminal of the fifth resistor is connected to the output terminal of the third operational amplifier; The digital input terminal of the digital-to-analog converter is connected to the digital signal processor; the output terminal of the digital-to-analog converter is connected to the inverting input terminal of the second operational amplifier. The digital-to-analog converter, the non-inverting input of the second operational amplifier, and the non-inverting input of the third operational amplifier are all grounded.

[0088] Furthermore, the amplitude control instruction includes: an amplitude control word; The amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control command to generate a drive voltage signal, including: In the amplitude regulator, an amplitude control command is received by a digital-to-analog converter, so that the digital-to-analog converter responds to the amplitude control word and outputs a corresponding analog current signal to the second operational amplifier. The analog current signal is converted into a first voltage signal by a second operational amplifier; A proportional summing circuit, consisting of a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor, receives a reference voltage signal and a first voltage signal. The proportional summing circuit then superimposes and scales the reference voltage signal and the first voltage signal to output a drive voltage signal. The amplitude of the drive voltage signal is proportional to the amplitude of the first voltage signal, and the phase between the drive voltage signal and the reference voltage signal is determined by a phase control word.

[0089] In one specific embodiment, the digital forward and reverse amplitude regulator U2 consists of a DAC conversion module (i.e., digital-to-analog converter) U21, two operational amplifiers (i.e., the second operational amplifier and the third operational amplifier) ​​A21 / A22, a third resistor R21, a fourth resistor R22 and a fifth resistor R23 forming a unipolar to bipolar output circuit.

[0090] Among them, the resistance of the third resistor R21 is 5kΩ with an accuracy of 0.01%, and the resistances of the fourth resistor R22 and the fifth resistor R23 are 10kΩ with an accuracy of 0.01%. The operational amplifiers A21 / A22 have an offset voltage of less than 25μV and a voltage noise density of no more than 8nV / Hz; the gain bandwidth is no less than 2.5MHz, and AD8620 can be selected. The amplitude regulator is a 16-bit DAC converter with a current-mode output, consisting of DAC conversion module U21. DAC conversion module U21 has a built-in 5kΩ feedback resistor, which, when connected to operational amplifier A21, forms an I / V converter. This is used to convert the reference voltage to a reference current and then back to a voltage-mode output, as detailed in formula (4): (4) In the formula, D is the set amplitude, which can take any value from 0 to 65535. The set amplitude D is received from the DSP processor U4 via the SPI interface to control the output of Vdac; Vin is the reference voltage signal output by the DDS wideband signal generator U1, and Vdac is the first voltage signal.

[0091] The output of Vdac is controlled by receiving the set amplitude D from the DSP processor U4 via the SPI interface.

[0092] The output voltage of the unipolar to bipolar output circuit is shown in formula (5): (5) In the formula, when the value of D is less than 32768, the phase of Vout and the phase of Vin are opposite; when the value of D is greater than 32768, the phase of Vout and the phase of Vin are the same; when the value of D is equal to 32768, the output is 0V; when D=0, the output is -Vin; when D=65535, the output is approximately equal to +Vin.

[0093] Furthermore, the transconductance power amplifier includes: a fourth operational amplifier, a power amplifier, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a load resistor, a capacitor, a fluxgate current transformer, a low-pass filter, and a high-frequency transformer. One end of the sixth resistor is connected to the first end of the ninth resistor and the non-inverting input of the fourth operational amplifier, respectively. The first terminal of the seventh resistor is connected to the second terminal of the ninth resistor and the first terminal of the fluxgate current transformer; the second terminal of the seventh resistor is connected to the second terminal of the fluxgate current transformer and grounded. The first terminal of the eighth resistor is connected to the inverting input of the fourth operational amplifier and the first terminal of the low-pass filter, respectively; the second terminal of the eighth resistor is grounded. The second terminal of the low-pass filter is connected to the output terminal of the fourth operational amplifier and the non-inverting input terminal of the power amplifier, respectively. The inverting input terminal of the power amplifier is connected to the output terminal of the power amplifier and the first terminal of the capacitor, respectively. The first terminal of the high-frequency transformer is connected to the second terminal of the capacitor. The second terminal of the high-frequency transformer is connected to the third terminal of the fluxgate current transformer. The third terminal of the high-frequency transformer is connected to the fourth terminal of the fluxgate current transformer through a load resistor. The fourth terminal of the high-frequency transformer is grounded.

[0094] In one specific embodiment, the transconductance power amplifier, namely the multi-loop negative feedback transconductance power amplifier U3, consists of a precision operational amplifier (i.e., the fourth operational amplifier) ​​A31, a power amplifier A32, a sixth resistor R31, a seventh resistor R32, an eighth resistor R33, a ninth resistor R34, and a load resistor R L It consists of capacitor C1, fluxgate current transformer T1, low-pass filter U31 and nanocrystalline high-frequency transformer T2.

[0095] It should be noted that the addition of a low-pass filter U31 at the output of A31 and the negative terminal of A31 to the transconductance power amplifier serves to suppress DC offset: it adds a 1:1 closed-loop feedback for DC, while for AC, it is an open loop in the first stage A31, so it does not affect AC amplification. A32, C1, and T2 form a high-power AC current drive circuit that is isolated for AC, and T1 and R32 form an isolated precision resistor and the first-stage amplifier circuit of A1 provides deep negative feedback, thereby achieving high-precision and high-stability transconductance function.

[0096] Understandably, high-frequency transformers can amplify current very efficiently, matching the operating voltage of power amplifier A2 and the linear region of the power amplifier drive. However, high-frequency transformers also have the drawback of low accuracy. By using T1 and R32 to form a precision isolation resistor and implementing deep negative feedback in the first-stage amplifier circuit of A1, the transformer's function becomes merely energy transfer and isolation, greatly improving accuracy and completely locking the input of the transconductance amplifier.

[0097] Preferably, the seventh resistor R32 has a resistance of 10Ω and an accuracy of 0.01%, and is used to convert the secondary current of the fluxgate into a voltage of about 1V; the sixth resistor R31 and the ninth resistor R34 are deep feedback proportional resistors with a resistance of 5kΩ and an accuracy of 0.01%; the eighth resistor R33 is a matching resistor with a resistance of 5kΩ and an accuracy of 5%.

[0098] The precision operational amplifier A31 has an offset voltage of less than 25μV, a voltage noise density of no more than 8nV / √Hz, a gain-bandwidth product of no less than 2.5MHz, and an open-loop gain of more than 106. The AD8620 can be selected.

[0099] The power amplifier A32 has a power rating of at least 4000W. Two high-power operational amplifiers can be used in parallel. These operational amplifiers typically have a bandwidth of 3MHz, can provide a continuous current output of 40A and a peak current output of 80A, and an operating voltage of 200V. A single operational amplifier can provide approximately 200 / 2 / 1.414*40=2828 watts of power, and two operational amplifiers in parallel can provide approximately 2828*2=5658 watts of power.

[0100] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can specifically be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0101] Based on the above embodiments of the current source control method, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the current source control method of any embodiment of the present invention.

[0102] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.

[0103] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0104] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0105] Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the current source control method described in any of the above-described method embodiments of the present invention.

[0106] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0107] An embodiment of the present invention provides a current source applicable to the steps of the control method of the current source provided by the present invention. The current source includes: a computer device, a digital signal processor, a signal generator, an amplitude regulator, and a transconductance power amplifier. The computer equipment's output is connected to the digital signal processor's input; the digital signal processor's first output is connected to the signal generator's input; the digital signal processor's second output is connected to the amplitude modulator's first input; the signal generator's output is connected to the amplitude modulator's second input; and the amplitude modulator's output is connected to the transconductance power amplifier's input. The computer device is used to receive current output parameters input by the user and transmit the current output parameters to the digital signal processor; wherein, the current output parameters include: the set amplitude, set phase and set frequency of the output current; The digital signal processor is configured to generate amplitude control commands based on a set amplitude, and generate frequency and phase control commands based on a set frequency and a set phase; transmit the frequency and phase control commands to a signal generator; and transmit the amplitude control commands to an amplitude modulator. The signal generator is used to generate a reference voltage signal with a set frequency and a set phase based on frequency and phase control commands; after generating the reference voltage signal, the reference voltage signal is transmitted to the amplitude regulator. The amplitude regulator is used to adjust the amplitude of the reference voltage signal based on the amplitude control command, generate a drive voltage signal, and transmit the drive voltage signal to the transconductance power amplifier. The transconductance power amplifier is used to convert the driving voltage signal into a wideband current signal that is proportional to the driving voltage signal; wherein, the current source outputs current based on the wideband current signal.

[0108] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for controlling a current source, characterized in that, The method is applied to a current source, which includes: computer equipment, digital signal processor, signal generator, amplitude regulator, and transconductance power amplifier; the control method includes: The computer device receives current output parameters input by the user, and then transmits the current output parameters to the digital signal processor. The current output parameters include: the set amplitude, the set phase, and the set frequency of the output current. The digital signal processor generates amplitude control instructions based on the set amplitude, and generates frequency and phase control instructions based on the set frequency and the set phase. The control digital signal processor transmits frequency and phase control commands to the signal generator, so that the signal generator generates a reference voltage signal with a set frequency and a set phase based on the frequency and phase control commands; wherein, after generating the reference voltage signal, the signal generator transmits the reference voltage signal to the amplitude regulator. The control digital signal processor transmits amplitude control commands to the amplitude regulator, so that the amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control commands to generate a drive voltage signal; The control amplitude regulator transmits the drive voltage signal to the transconductance power amplifier, so that the transconductance power amplifier converts the drive voltage signal into a wideband current signal that is proportional to the drive voltage signal; wherein, the current source outputs current based on the wideband current signal.

2. The current source control method as described in claim 1, characterized in that, The output terminal of the computer equipment is connected to the input terminal of the digital signal processor. The first output terminal of the digital signal processor is connected to the input terminal of the signal generator. The second output terminal of the digital signal processor is connected to the first input terminal of the amplitude modulator. The output terminal of the signal generator is connected to the second input terminal of the amplitude modulator. The output terminal of the amplitude modulator is connected to the input terminal of the transconductance power amplifier.

3. The current source control method as described in claim 2, characterized in that, The signal generator includes: a reference clock, a first chip, a first resistor, a first operational amplifier, and a second resistor; wherein, the non-inverting output terminal of the first chip is connected to the non-inverting input terminal of the first operational amplifier and the first terminal of the first resistor, the inverting output terminal of the first chip is connected to the inverting input terminal of the first operational amplifier and grounded, the output terminal of the first operational amplifier is connected to the second terminal of the first resistor, and the output terminal of the reference clock is connected to the input terminal of the first chip through the second resistor.

4. The current source control method as described in claim 3, characterized in that, The amplitude regulator includes: a digital-to-analog converter, a second operational amplifier, a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor; The first end of the third resistor is connected to the feedback resistor pin of the digital-to-analog converter and the output terminal of the second operational amplifier, respectively; the second end of the third resistor is connected to the first end of the fifth resistor and the inverting input terminal of the third operational amplifier, respectively. The first terminal of the fourth resistor is connected to the reference voltage input terminal of the digital-to-analog converter; the second terminal of the fourth resistor is connected to the second terminal of the third resistor. The second terminal of the fifth resistor is connected to the output terminal of the third operational amplifier; The digital input terminal of the digital-to-analog converter is connected to the digital signal processor; the output terminal of the digital-to-analog converter is connected to the inverting input terminal of the second operational amplifier. The digital-to-analog converter, the non-inverting input of the second operational amplifier, and the non-inverting input of the third operational amplifier are all grounded.

5. The current source control method as described in claim 4, characterized in that, The amplitude control command includes: an amplitude control word; The amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control command to generate a drive voltage signal, including: In the amplitude regulator, an amplitude control command is received by a digital-to-analog converter, so that the digital-to-analog converter responds to the amplitude control word and outputs a corresponding analog current signal to the second operational amplifier. The analog current signal is converted into a first voltage signal by a second operational amplifier; A proportional summing circuit, consisting of a third operational amplifier, a third resistor, a fourth resistor, and a fifth resistor, receives a reference voltage signal and a first voltage signal. The proportional summing circuit then superimposes and scales the reference voltage signal and the first voltage signal to output a drive voltage signal. The amplitude of the drive voltage signal is proportional to the amplitude of the first voltage signal, and the phase between the drive voltage signal and the reference voltage signal is determined by a phase control word.

6. The current source control method as described in claim 5, characterized in that, The transconductance power amplifier includes: a fourth operational amplifier, a power amplifier, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a load resistor, a capacitor, a fluxgate current transformer, a low-pass filter, and a high-frequency transformer. One end of the sixth resistor is connected to the first end of the ninth resistor and the non-inverting input of the fourth operational amplifier, respectively. The first terminal of the seventh resistor is connected to the second terminal of the ninth resistor and the first terminal of the fluxgate current transformer; the second terminal of the seventh resistor is connected to the second terminal of the fluxgate current transformer and grounded. The first terminal of the eighth resistor is connected to the inverting input of the fourth operational amplifier and the first terminal of the low-pass filter, respectively; the second terminal of the eighth resistor is grounded. The second terminal of the low-pass filter is connected to the output terminal of the fourth operational amplifier and the non-inverting input terminal of the power amplifier, respectively. The inverting input terminal of the power amplifier is connected to the output terminal of the power amplifier and the first terminal of the capacitor, respectively. The first terminal of the high-frequency transformer is connected to the second terminal of the capacitor. The second terminal of the high-frequency transformer is connected to the third terminal of the fluxgate current transformer. The third terminal of the high-frequency transformer is connected to the fourth terminal of the fluxgate current transformer through a load resistor. The fourth terminal of the high-frequency transformer is grounded.

7. A control device for a current source, characterized in that, The device is applied to a current source, which includes: computer equipment, digital signal processor, signal generator, amplitude regulator, and transconductance power amplifier; the control device includes: data receiving module, frequency control module, amplitude control module, and signal conversion module. The data receiving module is used to receive current output parameters input by the user through a computer device, so that the computer device can transmit the current output parameters to a digital signal processor; wherein, the current output parameters include: a set amplitude, a set phase, and a set frequency of the output current; the digital signal processor generates an amplitude control command based on the set amplitude, and generates a frequency and phase control command based on the set frequency and the set phase; The frequency control module is used to control the digital signal processor to transmit frequency and phase control commands to the signal generator, so that the signal generator generates a reference voltage signal with a set frequency and a set phase based on the frequency and phase control commands; wherein, after generating the reference voltage signal, the signal generator transmits the reference voltage signal to the amplitude regulator. The amplitude control module is used to control the digital signal processor to transmit amplitude control instructions to the amplitude regulator, so that the amplitude regulator adjusts the amplitude of the reference voltage signal based on the amplitude control instructions and generates a drive voltage signal. The signal conversion module is used to control the amplitude regulator to transmit the drive voltage signal to the transconductance power amplifier, so that the transconductance power amplifier converts the drive voltage signal into a wideband current signal that is proportional to the drive voltage signal; wherein, the current source outputs current based on the wideband current signal.

8. A terminal device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements the control method of the current source as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, include: A stored computer program, wherein, when the computer program is executed, the device containing the computer-readable storage medium is controlled to perform the control method of the current source as described in any one of claims 1-6.

10. A current source, characterized in that, The control method applicable to the current source as described in any one of claims 1-6, wherein the current source includes: a computer device, a digital signal processor, a signal generator, an amplitude regulator, and a transconductance power amplifier; The digital signal processor is configured to generate amplitude control commands based on a set amplitude, and generate frequency and phase control commands based on a set frequency and a set phase; transmit the frequency and phase control commands to a signal generator; and transmit the amplitude control commands to an amplitude modulator. The signal generator is used to generate a reference voltage signal with a set frequency and a set phase based on frequency and phase control commands; after generating the reference voltage signal, the reference voltage signal is transmitted to the amplitude regulator. The amplitude regulator is used to adjust the amplitude of the reference voltage signal based on the amplitude control command, generate a drive voltage signal, and transmit the drive voltage signal to the transconductance power amplifier. The transconductance power amplifier is used to convert the driving voltage signal into a wideband current signal that is proportional to the driving voltage signal; wherein, the current source outputs current based on the wideband current signal.