Program-controlled PI circuit and power amplifier
By designing a program-controlled PI circuit in the power amplifier, and using the control chip, multiplicative DAC unit and analog switch unit, the PI parameters can be adjusted, which solves the problem that the single PI parameter of the traditional power amplifier cannot be adjusted, and improves its scope of application and functions. sex.
Patent Information
- Application Number
- CN202420273141.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2034-02-04
AI Technical Summary
The PI control parameters of traditional power amplifiers are single and cannot be adjusted adaptively, which limits its scope of application.
Design a program-controlled PI circuit, including a control chip, a multiplicative DAC unit and an analog switch unit. The proportional and integral parameters are adjusted through parameter control instructions to realize the adjustment of PI parameters.
The multiplicative DAC unit and analog switch unit are adjusted through parameter control instructions, which avoids the problem of a single hardware PI parameter that cannot be adjusted, and expands the applicable scope and functionality of the power amplifier.
Smart Images

Figure CN221709816U
Abstract
Description
Technical Field
[0001] The utility model relates to the field of power amplification, in particular to a program-controlled PI circuit and a power amplifier. Background Art
[0002] With the development of society, power amplifiers are being used more and more in various fields, which also puts higher requirements on power amplifiers.
[0003] Traditional power amplifiers use hardware PI to drive and control the driving circuit based on command input and feedback signals. This type of power amplifier has a major defect. The hardware PI control parameters are single and cannot be adaptively adjusted. Therefore, there is an urgent need for a new power amplifier to achieve adjustable PI parameters, thereby improving the applicability of the power amplifier. Utility Model Content
[0004] The main purpose of the utility model is to provide a program-controlled PI circuit and a power amplifier, aiming to solve the problem of how to achieve adjustable PI parameters of the power amplifier.
[0005] To achieve the above object, the utility model provides a program-controlled PI circuit, the program-controlled PI circuit comprising:
[0006] A control chip, wherein the control chip is used to output parameter control instructions;
[0007] A multiplication type DAC unit, wherein the control end of the multiplication type DAC unit is connected to the communication end of the control chip, the first end of the multiplication type DAC unit serves as the input end of the program-controlled PI circuit, and the multiplication type DAC unit is used to adjust the proportional parameter based on the parameter control instruction;
[0008] An analog switch unit, wherein a control end of the analog switch unit is connected to a communication output end of the control chip, a first end of the analog switch unit is connected to a second end of the multiplication type DAC unit, and the analog switch unit is used to adjust an integral parameter based on the parameter control instruction;
[0009] An operational amplifier, wherein the first input terminal of the operational amplifier is connected to the third terminal of the multiplication type DAC unit, the second input terminal of the operational amplifier is grounded, and the output terminal of the operational amplifier is connected to the second terminal of the analog switch unit and then serves as the output terminal of the programmable PI circuit.
[0010] Optionally, the multiplication type DAC unit includes a ground terminal, a current output terminal, a feedback terminal and a voltage reference terminal, the ground terminal is grounded, the current output terminal serves as the third terminal of the multiplication type DAC unit and is connected to the first input terminal of the operational amplifier, the feedback terminal serves as the second terminal of the multiplication type DAC unit and is connected to the first terminal of the analog switch unit, and the voltage reference terminal serves as the first terminal of the multiplication type DAC unit.
[0011] Optionally, the multiplication type DAC unit includes a ground terminal, a current output terminal, a feedback terminal and a voltage reference terminal, the ground terminal is grounded, the current output terminal serves as the third terminal of the multiplication type DAC unit and is connected to the first input terminal of the operational amplifier, the feedback terminal serves as the first terminal of the multiplication type DAC unit and is connected to the first terminal of the analog switch unit, and the voltage reference terminal serves as the second terminal of the multiplication type DAC unit.
[0012] Optionally, the communication output end of the control chip includes a first bus output port and a second bus output port, the control end of the multiplication DAC unit includes a first bus input port, the control end of the analog switch unit includes a second bus input port, the first bus output port is connected to the first bus input port, and the second bus output port is connected to the second bus input port.
[0013] Optionally, the analog switch unit includes:
[0014] A plurality of switch circuits, wherein the first end of each switch circuit is connected to serve as the first end of the analog switch unit, the second end of each switch circuit is connected to serve as the second end of the analog switch unit, and the third end of each switch circuit serves as the control end of the analog switch unit.
[0015] Optionally, the switch circuit includes:
[0016] A capacitor, wherein a first end of the capacitor serves as a first end of the switch circuit;
[0017] A first control switch, wherein a first end of the first control switch is connected to a second end of the capacitor, a second end of the first control switch serves as a second end of the switch circuit, and a control end of the first control switch serves as a third end of the switch circuit.
[0018] Optionally, the multiplication type DAC unit comprises:
[0019] A plurality of sub-DAC circuits, wherein the first end of each of the sub-DAC circuits is connected to serve as the voltage reference end, the second end of each of the sub-DAC circuits is connected to serve as the current output end, the third end of each of the sub-DAC circuits is connected to serve as the ground end, and the fourth end of each of the sub-DAC circuits serves as the control end of the multiplication type DAC unit;
[0020] A first resistor, wherein the first resistor is connected between first terminals of two adjacent sub-DAC circuits;
[0021] a third resistor, wherein a first end of the third resistor is connected to a target first resistor and a first end of a target sub-DAC circuit, and a second end of the third resistor is connected to a third end of the sub-DAC circuit, wherein the target first resistor is an initial first resistor or an end first resistor not connected to the voltage reference terminal, and the target sub-DAC circuit is an initial sub-DAC circuit or an end sub-DAC circuit not connected to the voltage reference terminal;
[0022] A feedback resistor, wherein a first end of the feedback resistor is connected to a second end of the sub-DAC circuit, and a second end of the feedback resistor serves as the feedback end.
[0023] Optionally, the sub-DAC circuit includes:
[0024] a second resistor, wherein a first end of the second resistor serves as a first end of the sub-DAC circuit;
[0025] A second control switch, wherein the first end of the second control switch is connected to the second end of the second resistor, the control end of the second control switch serves as the control end of the sub-DAC circuit, the second end of the second control switch serves as the second end of the sub-DAC circuit, and the third end of the second control switch serves as the third end of the sub-DAC circuit.
[0026] Optionally, the multiplication type DAC unit further includes a parallel resistor, a first end of the parallel resistor is connected to the current output end, and a second end of the parallel resistor is connected to the feedback end.
[0027] In addition, the present application also provides a power amplifier, the power amplifier includes the above-mentioned programmable PI circuit, and the power amplifier also includes:
[0028] A command port, the command port being connected to an input end of the program-controlled PI circuit;
[0029] A drive circuit, wherein an input end of the drive circuit is connected to an output end of the program-controlled PI circuit, and an output end of the drive circuit is connected to a load;
[0030] A sampling circuit, wherein the sampling output end of the sampling circuit is connected to the input end of the program-controlled PI circuit, and the sampling input end of the sampling circuit is connected to the output end of the driving circuit.
[0031] The present application provides a programmable PI circuit, which includes a control chip, which is used to output parameter control instructions; a multiplication type DAC unit, the control end of the multiplication type DAC unit is connected to the communication end of the control chip, the first end of the multiplication type DAC unit is used as the input end of the programmable PI circuit, and the multiplication type DAC unit is used to adjust the proportional parameter based on the parameter control instruction; an analog switch unit, the control end of the analog switch unit is connected to the communication output end of the control chip, the first end of the analog switch unit is connected to the second end of the multiplication type DAC unit, and the analog switch unit is used to adjust the integral parameter based on the parameter control instruction; an operational amplifier, the first input end of the operational amplifier is connected to the third end of the multiplication type DAC unit, the second input end of the operational amplifier is grounded, and the output end of the operational amplifier is connected to the second end of the analog switch unit to serve as the output end of the programmable PI circuit. The multiplication type DAC unit is controlled by parameter control instructions to adjust the proportional parameter and the analog switch unit is controlled to adjust the integral parameter, thereby avoiding the phenomenon in the prior art that the hardware PI control parameter is single and cannot be adaptively adjusted. This programmable PI circuit can control the multiplication type DAC unit to adjust the proportional parameter and the analog switch unit to adjust the integral parameter through parameter control instructions, thereby realizing the adjustable PI parameters of the power amplifier. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a schematic diagram of the structure of the program-controlled PI circuit of the utility model;
[0033] Figure 2 It is another structural schematic diagram of the program-controlled PI circuit of the utility model;
[0034] Figure 3 This is a connection diagram of the program-controlled PI circuit of the utility model;
[0035] Figure 4 This is another connection diagram of the program-controlled PI circuit of the utility model;
[0036] Figure 5 This is a circuit connection diagram of an analog switch unit in the program-controlled PI circuit of the utility model;
[0037] Figure 6 It is a circuit connection diagram of a multiplication type DAC unit in the program-controlled PI circuit of the utility model;
[0038] Figure 7It is a structural schematic diagram of a power amplifier of the utility model;
[0039] Figure 8 It is a structural schematic diagram of a commonly used power amplifier;
[0040] Fig. 9 It is another structural schematic diagram of the power amplifier of the utility model;
[0041] Fig.10 It is a schematic diagram of a non-isolated driving circuit in a power amplifier of the utility model.
[0042] Description of Figure Numbers:
[0043]
[0044]
[0045] The realization of the purpose, functional features and advantages of the utility model will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0049] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0050] In addition, in this application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0051] The utility model provides a program-controlled PI circuit, referring to Figure 1 The structural diagram of the program-controlled PI circuit is as follows, the program-controlled PI circuit 200 comprises:
[0052] A control chip 10, wherein the control chip 10 is used to output parameter control instructions;
[0053] A multiplication type DAC unit 20, wherein the control end of the multiplication type DAC unit 20 is connected to the communication end of the control chip 10, the first end of the multiplication type DAC unit 20 serves as the input end Vin of the program-controlled PI circuit, and the multiplication type DAC unit 20 is used to adjust the proportional parameter based on the parameter control instruction;
[0054] An analog switch unit 30, wherein a control end of the analog switch unit 30 is connected to a communication output end of the control chip 10, a first end of the analog switch unit 30 is connected to a second end of the multiplication DAC unit 20, and the analog switch unit 30 is used to adjust an integral parameter based on the parameter control instruction;
[0055] An operational amplifier 40, wherein a first input terminal of the operational amplifier 40 is connected to a third terminal of the multiplication DAC unit 20, a second input terminal of the operational amplifier 40 is grounded, and an output terminal of the operational amplifier 40 is connected to a second terminal of the analog switch unit 30 to serve as an output terminal Vout of the programmable PI circuit.
[0056] In this embodiment, the design of the program-controlled PI circuit 200 includes an operational amplifier 40, a multiplication type DAC (Digital to analog converter) unit 20 and an analog switch unit 30, and then the PI parameter adjustment (i.e., integral parameter I adjustment and proportional parameter P adjustment) and output control of the program-controlled PI circuit 200 are realized based on the operational amplifier 40, the multiplication type DAC unit 20 and the analog switch unit 30. It is worth noting that the internal components of the program-controlled PI circuit are all existing devices, such as the operational amplifier 40 can use the amplifier in the commonly used hardware PI, the analog switch unit 30 can use the commonly used multi-way selection switch, or can be composed of multiple selection switches, and the multiplication type DAC unit 20 can also be an existing DAC, but there are differences in the internal connection and structural design, and then based on the above hardware components, the PI parameter adjustable effect in the program-controlled PI circuit 200 can be realized, thereby greatly improving the functionality and application range of the power amplifier.
[0057] For example, refer to Figure 2 , Figure 2 This is another structural diagram of the program-controlled PI circuit of the utility model. The control process of the program-controlled PI circuit 200 can be: based on the control chip 10 receiving the parameter control instruction input from the external communication port 100 (which can also be the input of other devices), wherein the parameter control instruction refers to the instruction for adjusting the integral and proportional parameters, and then the parameter control instruction is input to the multiplication type DAC unit 20, so that the multiplication type DAC unit 20 adjusts the proportional parameter based on the parameter control instruction, that is, adjusts the P parameter in the PI parameter, and the adjustment method is to control the switch inside the multiplication type DAC unit 20 to select different connections. method, thereby realizing different P parameter values; inputting the parameter control instruction into the analog switch unit 30, so that the analog switch unit 30 can adjust the integral parameter based on the parameter control instruction, that is, adjust the I parameter in the PI parameter, and the adjustment method is to control the switch inside the analog switch unit 30 to select different connection methods, thereby realizing different I parameter values, and then the multiplication type DAC unit 20 and the analog switch unit 30 after adjustment based on the parameter control instruction are used as the programmable PI circuit 200, thereby realizing different parameter controls of the programmable PI circuit 200, so as to realize the adjustable parameters of the programmable PI circuit 200.
[0058] The present embodiment provides a programmable PI circuit. The programmable PI circuit includes a control chip, which is used to output parameter control instructions; a multiplication type DAC unit, the control end of the multiplication type DAC unit is connected to the communication end of the control chip, the first end of the multiplication type DAC unit is used as the input end of the programmable PI circuit, and the multiplication type DAC unit is used to adjust the proportional parameter based on the parameter control instruction; an analog switch unit, the control end of the analog switch unit is connected to the communication output end of the control chip, the first end of the analog switch unit is connected to the second end of the multiplication type DAC unit, and the analog switch unit is used to adjust the integral parameter based on the parameter control instruction; an operational amplifier, the first input end of the operational amplifier is connected to the third end of the multiplication type DAC unit, the second input end of the operational amplifier is grounded, and the output end of the operational amplifier is connected to the second end of the analog switch unit and serves as the output end of the programmable PI circuit. The multiplication type DAC unit is controlled by parameter control instructions to adjust the proportional parameter and the analog switch unit is controlled to adjust the integral parameter, thereby avoiding the phenomenon in the prior art that the hardware PI control parameter is single and cannot be adaptively adjusted. This programmable PI circuit can control the multiplication type DAC unit to adjust the proportional parameter and the analog switch unit to adjust the integral parameter through parameter control instructions, thereby realizing the adjustable PI parameters of the power amplifier.
[0059] Further, in another embodiment of the power amplifier of the present application, referring to Figure 3 , Figure 3 This is a connection diagram of the programmable PI circuit of the utility model. The multiplication type DAC unit 20 includes a ground terminal AGND, a current output terminal IOUT1, a feedback terminal RFB and a voltage reference terminal REF. The ground terminal AGND is grounded. The current output terminal IOUT1 serves as the third terminal of the multiplication type DAC unit 20 and is connected to the first input terminal of the operational amplifier 40. The feedback terminal RFB serves as the second terminal of the multiplication type DAC unit 20 and is connected to the first terminal of the analog switch unit 30. The voltage reference terminal REF serves as the first terminal of the multiplication type DAC unit 20.
[0060] In this embodiment, the multiplication type DAC unit 20 can be a current output terminal IOUT1 connected to the first input terminal of the operational amplifier 40, and the voltage reference terminal REF is used as the first terminal of the multiplication type DAC unit 20, and then as the input terminal Vin of the program-controlled PI circuit. That is, a connection method of the multiplication type DAC unit 20 and other devices, and then the program-controlled PI circuit 200 is designed based on this connection method.
[0061] Further, in another embodiment of the power amplifier of the present application, referring to Figure 4 , Figure 4 This is another connection diagram of the programmable PI circuit of the utility model. The multiplication type DAC unit 20 includes a ground terminal AGND, a current output terminal IOUT1, a feedback terminal RFB and a voltage reference terminal REF. The ground terminal AGND is grounded. The current output terminal IOUT1 serves as the third terminal of the multiplication type DAC unit 20 and is connected to the first input terminal of the operational amplifier 40. The feedback terminal RFB serves as the first terminal of the multiplication type DAC unit 20 and is connected to the first terminal of the analog switch unit 30. The voltage reference terminal REF serves as the second terminal of the multiplication type DAC unit 20.
[0062] In this embodiment, the multiplication type DAC unit 20 can be a current output terminal IOUT1 as the first terminal of the multiplication type DAC unit 20, and then as the input terminal Vin of the program-controlled PI circuit, and the voltage reference terminal REF is connected to the first input terminal of the operational amplifier 40. That is, a connection method of the multiplication type DAC unit 20 and other devices, and then the program-controlled PI circuit 200 is designed based on the connection method.
[0063] Furthermore, the communication output end of the control chip 10 includes a first bus output port 11 and a second bus output port 12, the control end of the multiplication DAC unit 20 includes a first bus input port 21, the control end of the analog switch unit 30 includes a second bus input port 31, the first bus output port 11 is connected to the first bus input port 21, and the second bus output port 12 is connected to the second bus input port 31.
[0064] Exemplarily, the output end of the control chip 10 includes a first bus output port 11 and a second bus output port 12, and then the first bus output port 11 and the second bus output port 12 can be respectively connected to the control end of the multiplication type DAC unit 20, that is, the first bus input port 21 and the control end of the analog switch unit 30, that is, the second bus input port 31. Then, the multiplication type DAC unit 20 and the analog switch unit 30 can be controlled through the first bus output port 11 and the second bus output port 12 (the bus output port can be a serial or parallel bus) to achieve the effect of adjustable PI parameters of the programmable PI circuit 20. It is worth noting that the control port can also be directly the input and output port of the single-chip microcomputer, directly controlling the opening and closing of each switch in the multiplication type DAC unit 20 and the analog switch unit 30, thereby achieving adjustable PI parameters.
[0065] Further, in another embodiment of the power amplifier of the present application, referring to Figure 5 , Figure 5 The following is a circuit connection diagram of an analog switch unit in the program-controlled PI circuit of the present invention. The analog switch unit 30 includes:
[0066] There are multiple switch circuits 32, and the first end of each switch circuit 32 is connected to serve as the first end of the analog switch unit 30, the second end of each switch circuit 32 is connected to serve as the second end of the analog switch unit 30, and the third end of each switch circuit 32 is used as the control end of the analog switch unit 30.
[0067] Specifically, the switch circuit 32 includes:
[0068] A capacitor C, a first end of the capacitor C serving as a first end of the switch circuit 32;
[0069] A first control switch KN, wherein a first end of the first control switch KN is connected to a second end of the capacitor C, a second end of the first control switch KN serves as a second end of the switch circuit 32, and a control end of the first control switch KN serves as a third end of the switch circuit 32.
[0070] In this embodiment, the analog switch unit 30 includes a plurality of switch circuits 32 (the first preset number is taken as an example here) that is, Figure 4 A single capacitor C and a first control switch KN form a switch circuit 32, and then the switch circuit 32 with a preset first number can be designed according to actual needs. Assuming that the preset first number is K, 2 K The selection method of the integral parameter can realize the selectivity of the analog switch unit 30.
[0071] Exemplarily, the analog switch unit 30 receives the parameter instruction (control switch on and off) of the control chip 10, and controls the switch inside the analog switch unit 30 to implement the (2k-1) combination of I parameters, where k represents the number of switches inside U4, and the parameter is determined by the following formula (1):
[0072]
[0073] Wherein, k in the formula represents the number of switches inside the analog switch unit 30; C represents whether the analog switch bit corresponding to the I instruction of the control chip 10 is 0 or 1. For example, the second control switch KM turns on the first one, and the first control switch KN turns on the first one, then D i C i The value of is C1, which is the first capacitance value. If two second control switches KM and one first capacitor are turned on, a new Ki parameter is realized. Because there is no complete disconnection, the Ki parameter 2 is realized through the analog switch 21. K-1 Selection method.
[0074] Further, in another embodiment of the power amplifier of the present application, referring to Figure 6 , Figure 6 FIG. 2 is a circuit connection diagram of a multiplication type DAC unit in a program-controlled PI circuit of the present invention. The multiplication type DAC unit 20 includes:
[0075] A plurality of sub-DAC circuits 22, wherein a first end of each of the sub-DAC circuits 22 is connected to serve as the voltage reference end REF, a second end of each of the sub-DAC circuits 22 is connected to serve as the current output end IOUT1, a third end of each of the sub-DAC circuits 22 is connected to serve as the ground end AGND, and a fourth end of each of the sub-DAC circuits 22 serves as a control end of the multiplication DAC unit 20;
[0076] A first resistor R1, wherein the first resistor R1 is connected between first ends of two adjacent sub-DAC circuits 22;
[0077] a third resistor R3, wherein a first end of the third resistor R3 is connected to a target first resistor and a first end of a target sub-DAC circuit, and a second end of the third resistor R3 is connected to a third end of the sub-DAC circuit 22, wherein the target first resistor is an initial first resistor or an end first resistor not connected to the voltage reference terminal REF, and the target sub-DAC circuit is an initial sub-DAC circuit or an end sub-DAC circuit not connected to the voltage reference terminal REF;
[0078] A feedback resistor RN, wherein a first end of the feedback resistor RN is connected to a second end of the sub-DAC circuit 22 , and a second end of the feedback resistor RN serves as the feedback end RFB.
[0079] Exemplarily, the multiplication DAC unit 20 includes a plurality of (here, the second preset number is taken as an example) sub-DAC circuits 22, a first resistor R1, a third resistor R3 and a feedback resistor RN. Each sub-DAC circuit 22, the first resistor R1, the third resistor R3 and the feedback resistor RN form the multiplication DAC unit 20, and the number of sub-DAC circuits 22 determines the selectable situation of the multiplication DAC 22. For example, if the second preset number = N, the multiplication DAC unit 20 can implement 2 N The selectivity of the multiplication DAC unit 20 is achieved by selecting the proportional parameter.
[0080] Specifically, the sub-DAC circuit 22 includes:
[0081] A second resistor R2, wherein a first end of the second resistor R2 serves as a first end of the sub-DAC circuit 22;
[0082] A second control switch KM, a first end of the second control switch KM is connected to the second end of the second resistor R2, the control end of the second control switch KM serves as the control end of the sub-DAC circuit 22, the second end of the second control switch KM serves as the second end of the sub-DAC circuit 22, and the third end of the second control switch KM serves as the third end of the sub-DAC circuit 22.
[0083] Specifically, the multiplication type DAC unit 20 further includes a parallel resistor RM, a first end of the parallel resistor RM is connected to the current output terminal IOUT1 , and a second end of the parallel resistor RM is connected to the feedback terminal RFB.
[0084] In this embodiment, the function of the multiplication type DAC unit 20 is to realize the P parameter adjustment in the PI parameter. Since the parallel resistor RM is connected in parallel with the feedback resistor RN, the feedback resistor RN parameter is adjustable, and the resistance value is not limited by the internal feedback resistor RN of the DAC. When the P parameter is adjusted, the control chip 10 sends a parameter setting instruction (controls the switch on and off) to realize the adjustable R-2R (resistance relationship) network parameter inside the multiplication type DAC unit 20. There are 2n adjustable ranges, and n is determined by the number of DAC bits. The parameter is determined by the following formula (2):
[0085]
[0086] Wherein, RN / / RM represents the resistance of two resistors in parallel; R represents the value of R in the R-2R network inside the multiplication type DAC unit 20; n represents the number of DAC bits; D represents whether the P instruction of the control chip 10 corresponds to the DAC bit number 0 or 1, that is, the switch state of the second control switch KM is controlled. In the figure, the second resistor R2 and the third resistor R3 have the same resistance value, all the first resistors R1 have the same resistance value, and the resistance value of the first resistor R1 (i.e., 2R in the R-2R network) is twice equal to the resistance value of the fourth resistor R4 (i.e., R in the R-2R network), and then the value of R can be determined based on the actual DAC requirements. Figure 5 The sum of the number of switches of the second control switch KM is the number of DAC bits. For example, when the first three switches are closed, D i 1 / 2 i The value of D is 1 / 2+1 / 4+1 / 8. When the first, third and fourth switches are closed, i 1 / 2 i The value of is 1 / 2+1 / 8+1 / 16, and because the second control switch KM cannot be completely disconnected, the multiplication DAC unit 20 can achieve 2 N-1 Selection method.
[0087] For example, based on the control principle of the analog switch unit 30 and the multiplication type DAC unit 20, when the load of the entire circuit changes and the existing PI parameters do not meet the performance conditions, the control chip 10 sends new parameters, and the analog switch unit 30 and the multiplication type DAC unit 20 are reconfigured internally to make the system performance meet the requirements again. The PI parameters have a total of 2 K-1 *2 N-1 In theory, the values of N and K can be unequal. Then, by adding a multiplication type DAC unit 20 and an analog switch unit 30, a rich combination of PI parameter adjustment can be achieved; when the load parameters change, the control chip 10 sends instructions to adjust the PI parameters (i.e., instructions to control the switch to close and disconnect), so that the system dynamic performance meets the requirements again. The PI parameters are easy to adjust. Compared with the fixed PI, it can not only ensure the characteristics of the hardware PI such as fast response speed, high resolution, low noise, etc., but also adapt to a wide load range.
[0088] In addition, in another embodiment, the present application also provides a power amplifier, referring to Figure 7 , Figure 7 This is a schematic diagram of the structure of a power amplifier of the utility model. The power amplifier includes the above-mentioned program-controlled PI circuit, and the power amplifier also includes:
[0089] A command port, the command port being connected to an input end of the program-controlled PI circuit;
[0090] A drive circuit, wherein an input end of the drive circuit is connected to an output end of the program-controlled PI circuit, and an output end of the drive circuit is connected to a load;
[0091] A sampling circuit, wherein the sampling output end of the sampling circuit is connected to the input end of the program-controlled PI circuit, and the sampling input end of the sampling circuit is connected to the output end of the driving circuit.
[0092] In this embodiment, the power amplifier refers to amplifying the weak command signal and then driving the actuator. In the power amplifier, the PI parameters are divided into hardware PI and software PI. Software PI is widely used due to its advantages such as convenient debugging and low cost. However, hardware PI is still irreplaceable in high bandwidth, high resolution and low noise occasions. Figure 8 , Figure 8This is a structural diagram of a commonly used power amplifier. The input signal (command input) and the current feedback signal are sent to the hardware PI regulator. The hardware PI regulator sends a control signal to the drive circuit. The drive circuit uses a linear optocoupler to output two signals respectively, which respectively drive the upper and lower bridge arms of the main topology based on IGBT. The midpoint of the bridge arm is connected to the load. The Hall current sensor detects the output current as a feedback signal, thereby realizing the power amplifier control process of the hardware PI. When the load changes beyond a certain range, the existing control parameters no longer meet dynamic indicators such as system bandwidth. However, since the hardware PI has fixed PI parameters, it is not easy to adjust. Based on the above problems, the technical solution of the present application is proposed. Compared with the traditional power amplifier, the power amplifier of this embodiment at least adds the communication port 100 and the control chip 10 and the program-controlled PI circuit 20, so that the communication port 100 can input the parameter control demand, the control chip 10 generates the parameter control instruction based on the parameter control demand, and controls the program-controlled PI circuit 20 based on the parameter control instruction to achieve PI parameter adjustment, wherein the parameter control demand refers to the design demand of the PI parameter required by the user, and the parameter control instruction refers to the control instruction to achieve the parameter, and in this embodiment refers to the instruction to control the switch to be turned on and off, and then the program-controlled PI circuit 20 can be controlled based on the parameter control instruction to achieve PI parameter adjustment. It is worth noting that the control chip 10 can be an MCU (Microcontroller Unit). The entire power amplifier can adjust the hardware PI parameters through instructions for different loads, and has a strong load application range under the condition of ensuring the dynamic performance of the system.
[0093] For example, refer to Fig. 9 , Fig. 9 This is another structural diagram of the power amplifier of the utility model. The 485 communication circuit (a type of communication port 100) transmits instructions to the MCU (a type of control chip 10). The MCU processes and sends signals to the programmable PI circuit to switch the corresponding load to set the corresponding PI parameters; the control instruction input and sampling circuit signal are sent to the programmable PI circuit, and the programmable PI circuit outputs the signal to the non-isolated drive circuit. The non-isolated drive circuit (the same as the commonly used drive circuit) sends two signals to drive the upper and lower bridge arm MOS of the main circuit respectively. The midpoint of the main circuit outputs a series sampling resistor Rsense and then connects to the load. The sampling circuit obtains the signal at both ends of the sampling resistor Rsense for sampling and conditioning, thereby realizing the control process of the entire power amplifier. Fig.10, a schematic diagram of a non-isolated driving circuit in a power amplifier of the utility model, driving control is performed by controlling the current source through an input signal, and then the upper bridge arm and the lower bridge arm are determined respectively by the current-to-voltage circuit 1 and the current-to-voltage circuit 2, and the references of the two are different. The current-to-voltage circuit 1 refers to the center point of the bridge arm, and the current-to-voltage circuit 2 refers to the negative bus, and outputs after passing through the inversion circuit. The entire control process is the same as the control process of the commonly used non-isolated driving circuit, and is not limited here.
[0094] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the technical concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A program-controlled PI circuit, characterized in that: The program-controlled PI circuit comprises: A control chip, wherein the control chip is used to output parameter control instructions; A multiplication type DAC unit, wherein the control end of the multiplication type DAC unit is connected to the communication end of the control chip, the first end of the multiplication type DAC unit serves as the input end of the program-controlled PI circuit, and the multiplication type DAC unit is used to adjust the proportional parameter based on the parameter control instruction; An analog switch unit, wherein a control end of the analog switch unit is connected to a communication output end of the control chip, a first end of the analog switch unit is connected to a second end of the multiplication type DAC unit, and the analog switch unit is used to adjust an integral parameter based on the parameter control instruction; An operational amplifier, wherein the first input terminal of the operational amplifier is connected to the third terminal of the multiplication type DAC unit, the second input terminal of the operational amplifier is grounded, and the output terminal of the operational amplifier is connected to the second terminal of the analog switch unit and then serves as the output terminal of the programmable PI circuit.
2. The program-controlled PI circuit according to claim 1, characterized in that: The multiplication type DAC unit includes a ground terminal, a current output terminal, a feedback terminal and a voltage reference terminal. The ground terminal is grounded, the current output terminal serves as the third terminal of the multiplication type DAC unit and is connected to the first input terminal of the operational amplifier, the feedback terminal serves as the second terminal of the multiplication type DAC unit and is connected to the first terminal of the analog switch unit, and the voltage reference terminal serves as the first terminal of the multiplication type DAC unit.
3. The program-controlled PI circuit according to claim 1, characterized in that: The multiplication type DAC unit includes a ground terminal, a current output terminal, a feedback terminal and a voltage reference terminal. The ground terminal is grounded, the current output terminal serves as the third terminal of the multiplication type DAC unit and is connected to the first input terminal of the operational amplifier, the feedback terminal serves as the first terminal of the multiplication type DAC unit and is connected to the first terminal of the analog switch unit, and the voltage reference terminal serves as the second terminal of the multiplication type DAC unit.
4. The program-controlled PI circuit according to claim 1, characterized in that: The communication output end of the control chip includes a first bus output port and a second bus output port, the control end of the multiplication DAC unit includes a first bus input port, the control end of the analog switch unit includes a second bus input port, the first bus output port is connected to the first bus input port, and the second bus output port is connected to the second bus input port.
5. The program-controlled PI circuit according to claim 1, characterized in that: The analog switch unit comprises: A plurality of switch circuits, wherein the first end of each switch circuit is connected to serve as the first end of the analog switch unit, the second end of each switch circuit is connected to serve as the second end of the analog switch unit, and the third end of each switch circuit serves as the control end of the analog switch unit.
6. The program-controlled PI circuit as claimed in claim 5, characterized in that: The switch circuit comprises: A capacitor, wherein a first end of the capacitor serves as a first end of the switch circuit; A first control switch, wherein a first end of the first control switch is connected to a second end of the capacitor, a second end of the first control switch serves as a second end of the switch circuit, and a control end of the first control switch serves as a third end of the switch circuit.
7. The program-controlled PI circuit as claimed in claim 3, characterized in that: The multiplication type DAC unit comprises: A plurality of sub-DAC circuits, wherein the first end of each of the sub-DAC circuits is connected to serve as the voltage reference end, the second end of each of the sub-DAC circuits is connected to serve as the current output end, the third end of each of the sub-DAC circuits is connected to serve as the ground end, and the fourth end of each of the sub-DAC circuits serves as the control end of the multiplication type DAC unit; A first resistor, wherein the first resistor is connected between first terminals of two adjacent sub-DAC circuits; a third resistor, wherein a first end of the third resistor is connected to a target first resistor and a first end of a target sub-DAC circuit, and a second end of the third resistor is connected to a third end of the sub-DAC circuit, wherein the target first resistor is an initial first resistor or an end first resistor not connected to the voltage reference terminal, and the target sub-DAC circuit is an initial sub-DAC circuit or an end sub-DAC circuit not connected to the voltage reference terminal; A feedback resistor, wherein a first end of the feedback resistor is connected to a second end of the sub-DAC circuit, and a second end of the feedback resistor serves as the feedback end.
8. The program-controlled PI circuit as claimed in claim 7, characterized in that: The sub-DAC circuit comprises: a second resistor, wherein a first end of the second resistor serves as a first end of the sub-DAC circuit; A second control switch, wherein the first end of the second control switch is connected to the second end of the second resistor, the control end of the second control switch serves as the control end of the sub-DAC circuit, the second end of the second control switch serves as the second end of the sub-DAC circuit, and the third end of the second control switch serves as the third end of the sub-DAC circuit.
9. The program-controlled PI circuit as claimed in claim 2, characterized in that: The multiplication type DAC unit further includes a parallel resistor, a first end of the parallel resistor is connected to the current output end, and a second end of the parallel resistor is connected to the feedback end.
10. A power amplifier, characterized in that: The power amplifier comprises the programmable PI circuit of any one of claims 1 to 9, and the power amplifier further comprises: A command port, the command port being connected to an input end of the program-controlled PI circuit; A drive circuit, wherein an input end of the drive circuit is connected to an output end of the program-controlled PI circuit, and an output end of the drive circuit is connected to a load; A sampling circuit, wherein the sampling output end of the sampling circuit is connected to the input end of the program-controlled PI circuit, and the sampling input end of the sampling circuit is connected to the output end of the driving circuit.
