High-precision, low-noise controllable multi-channel power supply and control method thereof
By using a variable resistor voltage divider technology driven by a high-precision DAC and a wideband operational amplifier, combined with a digital potentiometer and a high-precision resistor, the problems of voltage instability and high noise in multi-channel power supplies are solved, achieving high-precision voltage calibration and open-circuit detection, and adapting to different environmental conditions.
Patent Information
- Application Number
- CN202111681219.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Existing multi-channel power supplies suffer from problems such as voltage instability, high noise, low accuracy, small bandwidth, and complex control when simulating battery series connection, making it difficult to achieve fast and high-precision calibration and measurement.
It employs a high-precision DAC and a wideband operational amplifier for driving, generates voltage through voltage division by a variable resistor, and combines a digital potentiometer and a high-precision resistor. The central control unit performs precise calibration and adjustment to achieve stable voltage and low-noise output.
It achieves a multi-channel power supply with stable voltage, low noise, and balanced drive, and has high-precision voltage calibration and disconnection detection functions, adapting to different ambient temperatures and voltage changes.
Smart Images

Figure CN114489208B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a controllable multi-channel power supply with high precision and low noise and a control method thereof, belonging to the technical field of multi-channel power supplies. Background Art
[0002] With the increasingly wide application of lithium batteries in electric bicycles, electric vehicles and energy storage fields, the reliability and management cost of lithium battery management systems and related protection devices have become an important aspect to be considered in the application of lithium batteries. Currently, multi-channel power supplies are used to simulate the functions of series-connected batteries to calibrate and test battery management systems and related application components, so as to improve the reliability of modules such as battery management systems and reduce costs.
[0003] In the prior art, switch-mode power supplies are often used to simulate the characteristics of battery series connection. Switch-mode power supplies have high power, high efficiency, are easy to isolate, and can achieve bidirectional current flow with relatively large currents. However, switch-mode power supplies also have problems such as unstable voltage, high noise, low precision, small bandwidth, and complex control. Therefore, what kind of power supply circuit can better simulate the characteristics of battery series connection and perform faster and higher-precision calibration and measurement on the circuit system has become a technical problem that needs to be urgently solved by those skilled in the art. Summary of the Invention
[0004] Objective: To overcome the deficiencies in the prior art, the present invention provides a controllable multi-channel power supply with high precision and low noise and a control method thereof.
[0005] Technical Solution: To solve the above technical problems, the technical solution adopted by the present invention is as follows:
[0006] In a first aspect, a controllable multi-channel power supply with high precision and low noise includes: the output end of a first DAC is connected to the input end of a first amplifier, the output end of the first amplifier is connected to a first driver, and the output end of the first driver is connected to a compensation resistor R c in series with a series branch of n variable resistors. The other end of the series branch of n variable resistors is grounded, and the series branch of n variable resistors is set as variable resistor R n …… variable resistor R k 、variable resistor R k-1 …… variable resistor R1 are connected in series in turn, and the other end of variable resistor R1 is grounded. k and n are natural numbers, k < n. The input ends of variable resistor R n …… variable resistor R k 、variable resistor R k-1 …… variable resistor R1 are respectively connected to a second driver. The central control unit uC is respectively connected to compensation resistor R c 、variable resistor R n …… variable resistor R k 、variable resistor Rk-1 ...the variable resistor R1 is connected. The central control unit uC is connected to the first DAC output terminal through isolated communication.
[0007] The compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ...The variable resistor R1 includes: a digital potentiometer and a high-precision resistor. The digital potentiometer includes: an adjustable resistor, a controller, and an ADC. The controller is used to communicate with the central control unit uC through the ADC via the first isolation communication. The controller is used to control the resistance value of the adjustable resistor. The adjustable resistor is connected in parallel with the high-precision resistor. The second driver includes: a preamplifier, a buffer, and a feedback network. The preamplifier and the buffer are connected in series. The positive input terminal of the preamplifier is connected to the parallel input terminal of the adjustable resistor and the high-precision resistor. The output terminal of the buffer is also connected to the negative input terminal of the preamplifier through the feedback network.
[0008] As a preferred solution, the first DAC is a high-precision DAC.
[0009] As a preferred solution, the differential voltage between the preamplifier output terminal and the low-potential preamplifier output terminal is used as the working power supply of the digital potentiometer.
[0010] As a preferred solution, the buffer output gain is a forward drive close to 1.
[0011] As a preferred solution, the buffer signal output terminal is connected to the GPIO1 of the controller to output an alarm signal of an overcurrent event. The buffer enable control terminal is connected to the GPIO2 of the controller to receive a control signal of a buffer switch.
[0012] In a second aspect, a high-precision, low-noise controllable multi-channel power supply control method comprises the following steps:
[0013] The central control unit uC is based on the compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ……The calibration value R of the variable resistor R1 kcor For compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ...variable resistor R1 is used for adjustment.
[0014] The calibration value R kcor The acquisition method is as follows:
[0015] Step 1: The central control unit uC sets the DAC value through isolated communication so that V 总 The value is (n+1)*ΔV k ,ΔV k A preset voltage for each channel of a controllable multi-channel power supply.
[0016] Step 2: The central control unit uC connects the compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ...The variable resistor R1 is set to an initial specific value.
[0017] Step 3: Calculate the variable resistance R k Minimum resolution V LSB , ΔR k Represents R k The amount of change.
[0018] Step 4: Compare the output voltage of each channel with the reference Vref to obtain the difference Δ k , according to the minimum resolution, the variable resistor R1 is calculated... the variable resistor R k-1 , variable resistor R k Variable resistor R n The data Δ that needs to be adjusted for the adjustable resistance in the corresponding channel digital potentiometer 10 , …Δ k0 ,…Δ n0 , Δ 10 , …Δ k0 ,…Δ n0 There are positive and negative.
[0019] Step 5: Calculate the compensation data Δ of the compensation resistor Rc c0 , Δ c0 =Σ(Δ 10 +…+Δ k0 +…+Δ n0 ).
[0020] Step 6: Update the compensation resistor Rc, variable resistor R1, and variable resistor R k-1 , variable resistor R k Variable resistor R n The adjustable resistance data of the digital potentiometer, the compensation resistance adjustable resistance update data value is Rc initial specific value + compensation data Δ c0 Variable resistor R1...Variable resistor R k-1 , variable resistor R k Variable resistor R nThe adjustable resistance update data value of the digital potentiometer is the initial specific value + the data that needs to be adjusted.
[0021] Step 7: The central control unit uC adjusts the size of the adjustable resistance corresponding to each digital potentiometer through isolated communication, and updates the data value in the digital potentiometer.
[0022] Step 8: When the circuit is stable, repeat steps 4-7 until the voltage difference of each channel is within the error range, and record the adjustable resistance R corresponding to the digital positioner of each channel. 1m , … R km ,…R nm ,R cm , m is the final number of operations, m is a natural number, which is the calibration value R kcor .
[0023] As a preferred solution, the reference Vref is selected from the average voltage V 总 / (n+1), either select the lowest voltage for each channel, or select the highest voltage for each channel.
[0024] As a preferred solution, it also includes: for different ambient temperatures and different V 总 Repeat steps 1-9 to get the R of each channel k At different temperatures T x , total voltage V 总x In this case, the calibration value R kcor (V 总i ,T i ) table, i is 1-n, n is a natural number.
[0025] The central control unit uC obtains the ambient temperature T x , and calculate the required V according to the test needs 总x ;
[0026] According to the calibration value R kcor (V 总i ,T i ) table uses linear interpolation algorithm to calculate the calibration value R kcor (T x , V 总x ).
[0027] As a preferred solution, according to the calibration value R kcor (V 总i ,T i ) table uses linear interpolation algorithm to calculate the calibration value R kcor (T x , V 总x ), the calculation method is as follows:
[0028] Find R kcor (Tx , V 总x ) in R kcor (V 总i ,T i ) table, R kcor (T x , V 总x ) in (V 总m ,T i ), (V 总m ,T i+1 ), (V 总m+1 ,T i ), (V 总m+1 ,T i+1 ) between four grid points.
[0029] First, along V 总x Directional interpolation, get R v1 , R v2 Two values:
[0030]
[0031]
[0032] First, along T x Directional interpolation, get R kcor (V 总x , T x ) Final value:
[0033]
[0034] Beneficial effects: The invention provides a high-precision, low-noise controllable multi-channel power supply and a control method thereof, which uses a linear power supply to generate voltage, generates voltage through variable resistor voltage division to simulate battery series connection, and uses a power operational amplifier as a voltage driver, which has stable voltage and low noise, and has the ability to drive balanced current and simulate disconnection function, and can perform high-precision voltage calibration. Its advantages are as follows:
[0035] The total voltage V is generated using a high-precision ADC and a wideband op amp. 总 .
[0036] Using high precision low temperature drift resistor R n The voltage division after series connection generates a multi-channel power supply V n .
[0037] Use the digital potentiometer to adjust the resistance R n resistance, while maintaining V 总 Change the voltage value of one or more channels without changing the value.
[0038] Using a high-voltage, wide-bandwidth, low-noise operational amplifier as a buffer and driver stage, a high-speed, low-noise multi-channel power supply can be quickly established.
[0039] Voltage consistency of the channels can be ensured through fine-tuning for applications such as balanced driving and open-circuit detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 Schematic diagram of the structure of the controllable multi-channel power supply according to the present invention
[0041] Figure 2 Schematic diagram of the structure of a partial circuit.
[0042] Figure 3 Schematic diagram of the system structure when the controllable multi-channel power supply according to the present invention obtains a variable resistor calibration value.
[0043] Figure 4 System architecture diagram when the controllable multi-channel power supply according to the present invention is in use. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0044] The present invention will be further described below in conjunction with specific embodiments.
[0045] As Figure 1 shown, in a first aspect, a high-precision, low-noise controllable multi-channel power supply includes: the output end of a high-precision DAC is connected to the first input end of a first amplifier, the output end of the first amplifier is connected to a first driver, the output end of the first amplifier is also connected to a series branch of a resistor R1 and a resistor R2, the other end of the resistor R2 is grounded, the second input end of the first amplifier is connected to the common end between the resistor R1 and the resistor R2, the output end of the first driver is connected to a series branch of a compensation resistor R c and n variable resistors, the other end of the series branch of the n variable resistors is grounded, the series branch of the n variable resistors is set as variable resistor R n …… variable resistor R k 、 variable resistor R k-1 …… variable resistor R1 are connected in series in sequence, the other end of the variable resistor R1 is grounded, k and n are natural numbers, k < n, the input ends of variable resistor R n …… variable resistor R k 、 variable resistor R k-1 …… variable resistor R1 are respectively connected to second drivers. The central control unit uC is respectively connected to the compensation resistor R c 、 variable resistor R n …… variable resistor R k 、 variable resistor R k-1 …… variable resistor R1 through first isolated communication. The central control unit uC is connected to the output end of the high-precision ADC through first isolated communication.
[0046] The central control unit uC communicates via the first isolation and compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ...variable resistor R1 communication, control the size of n variable resistors, and control the compensation resistor R at the same time c V 总 The central control unit uC is connected to the high-precision DAC through the first isolation communication. The central control unit uC sends a voltage digital signal, which is converted into a voltage analog signal by the high-precision DAC, and then passes through the voltage amplifier and driver to generate a total voltage V with driving capability. 总 , this voltage is used to drive a set of series resistors R c ,R1,R2,…,R n .
[0047] The central control unit uC sends a command to the high-precision DAC to generate an analog voltage Va. The first amplifier Amp and the resistors R1 and R2 form an amplifier. The output voltage passes through the first driver Driver to obtain V 总 .
[0048] V 总 =V a ×(R1+R2) / R2.
[0049] The central control unit uC sends instructions to each variable resistor and compensation resistor R through the first isolated communication c , controls the output voltage V of the multi-channel digital power supply k =V 总 *(R1+R2+…R k ) / (R1+R2+…R k +…+R n +R c ). Output voltage V k The second driver has a certain driving capability.
[0050] At the same time, a differential voltage V k+1 -V k =ΔV k =V 总 *R k / (R1+R2+…R k +…+R n +R c ).
[0051] The compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor Rk-1 ...The variable resistor R1 includes: a digital potentiometer and a high-precision resistor. The digital potentiometer includes: an adjustable resistor, a controller, and an ADC. The controller is used to communicate with the central control unit uC through the ADC via the first isolation communication. The controller is used to control the resistance value of the adjustable resistor. The adjustable resistor is connected in parallel with the high-precision resistor. The second driver includes: a preamplifier, a buffer, and a feedback network. The preamplifier and the buffer are connected in series. The positive input terminal of the preamplifier is connected to the parallel input terminal of the adjustable resistor and the high-precision resistor. The output terminal of the buffer is also connected to the negative input terminal of the preamplifier through the feedback network.
[0052] The differential voltage between the preamplifier output terminal and the low potential preamplifier output terminal can also be used as the working power supply of the digital potentiometer. The preamplifier output terminal is connected to the Vdd terminal of the controller, and the low potential preamplifier output terminal is connected to the Vss terminal of the controller.
[0053] The buffer output gain is a positive drive close to 1, and the buffer signal output terminal is connected to the GPIO1 of the controller to output an alarm signal for an overcurrent event. The buffer enable control terminal is connected to the GPIO2 of the controller to receive a control signal for the buffer switch.
[0054] like Figure 2 As shown, the variable resistor R k With variable resistor R k The input terminal is connected to the second driver as an example, the variable resistor R k Including digital potentiometer, high precision resistor R ok , the digital potentiometer includes: controller and ADC, adjustable resistor R xk And high precision resistor R ok In parallel, k is a natural number. The second driver includes a low-noise preamplifier Amp and a buffer Buffer. The gain of Buffer is about 1, so that the preamplifier A k The voltage at and V oK The voltage is close to that of the amplifier. The driving capability of the preamplifier is relatively small, for example, it can provide 10mA output or sink current, but it can be used as a power supply for other low-voltage circuits such as controllers and DACs. The driving capability of the buffer is large, for example, 100-500mA output or sink current. The buffer and amp are connected with a feedback network to form a stable voltage amplifier driver, such as a feedback resistor.
[0055] The output node of the preamplifier is A k and the next preamplifier output node A k-1 Lead wire voltage difference ΔV kCan be used as a power source for local circuits if ΔV k Too low, you can also use A k and A k-2 The buffer driver stage has a strong driving capability and a control enable terminal. The digital potentiometer GPIO2 port can generate a control signal to control the buffer to close and output high impedance as a simulation of the disconnection state.
[0056] Buffer can have the function of overcurrent protection. When an overcurrent event occurs, the buffer (Alert) will generate an alarm signal, which is fed back to the local controller (digital positioner) to generate an alarm status for uC to read the status information.
[0057] The preamplifier Amp can be a low-noise broadband amplifier.
[0058] R k is a variable resistor, a high-precision low-temperature drift resistor R ok And that is, the digital potentiometer (adjustable resistor R xk ) in parallel, R c is the compensation resistor. Generally, R c =R k .
[0059] Resistor voltage divider generates voltage V k , a voltage V is generated through the second driver (Driver) ok .
[0060] when Then V ok =V k =k / (n+1)×V 总 ,
[0061] The voltage of each channel remains consistent.
[0062] Embodiment 1:
[0063] R k The adjustable resistor R of the digital potentiometer xk And high precision resistor R ok In parallel, change R xk The size of R k size.
[0064] Assume R xk The change of △R xk , then R k The change (relative change) △R k / R k =R ok ·△Rxk / [R xk ·(R xk +R ok )]=△R xk %*R ok / (R xk +R ok ), when R xk >>R ok When R k The resolution of the change is improved. For example, R xk =5-10kΩ,R ok =100Ω.
[0065] If a 7-bit digital potentiometer is used, its adjustable resistance R xk The maximum resistance is 10kΩ. If the resistance changes by 1LSB, set R xk =5kΩ (not set to full scale, keep increasing or decreasing resistance space), then the resistance change of 1LSB is The rate of change is 78.125 / 5000*100%=1.5625%
[0066] When R ok =R 1k =…R On =R OC =100Ω, connect a variable resistor R in parallel k The change in △R k
[0067]
[0068] Compensation resistor R C To compensate R k Changes in compensation resistance R c The electric regulating resistor R cx Resistance, when R xk Increase, R cx It decreases, and vice versa, so that the resistance of the entire branch remains unchanged.
[0069] Then, the voltage change of the corresponding channel voltage ∝(ΔV k )Channel k voltage change.
[0070] When the adjustable resistor R xk At full scale, ΔV kmax When =5V, the voltage adjustment accuracy is 1.5625mV, which can meet the requirements.
[0071] Embodiment 2:
[0072] The controllable multi-channel power supply adopts linear amplifier, with low EMI / EMC electromagnetic interference and low noise level. 总 The drive is generally below 100uV, the resistance is very small 100Ω, the noise of the preamplifier is about 10uV, and the buffer and preamplifier are connected through the same feedback network to form an amplifier, and their noise is negligible. The overall noise level is on the order of 100uV.
[0073] Secondly, when the controllable multi-channel power supply starts working, the voltage of each channel is consistent, but the digital potentiometer generally has an error of 2%-5%, and the precision resistor will also have a certain error and temperature drift. The preamplifier also brings voltage drift and temperature drift, which will cause inconsistency in the channel power supply voltage. Each channel needs to be initially calibrated to ensure the consistency of the value of each resistor when powered on and keep it within the error range, so that the voltage of each channel of the controllable multi-channel power supply is consistent. Figure 3 As shown, a multiplexer and a high-precision voltage reference detection module need to be added, the output ends of the n second drivers are connected to the input ends of the multiplexer, the output ends of the multiplexer are respectively connected to the high-precision voltage reference detection modules, and the output end of the high-precision voltage reference detection module is connected to the central control unit uC via the first isolation communication.
[0074] Taking a 7-bit 10K ohm digital potentiometer as an example, a control method of a high-precision, low-noise controllable multi-channel power supply control method includes the following steps:
[0075] Step 1: After the system is initially started, the uC works, the isolated communication works, and other basic modules are in working state; Step 2: The uC sets the value of ADC through isolated communication so that V 总 The value is (n+1)*ΔV k ,ΔV k A preset voltage for each channel, for example 4V.
[0076] Step 3: uC sets each digital potentiometer to a specific value through isolated communication, for example, 5K ohms, which is R k0 =0111111; R c0 =0111111,R k0 , R c0 Represents the variable resistor R K , compensation resistor R c Initial setting value.
[0077] Step 4: Calculate the variable resistance R k Minimum resolution: Converted into the corresponding ADC data of the high-precision voltage detection module;
[0078] Step 5: The multiplexer selects the high-precision voltage reference detection module to detect the voltage of each channel of the controllable multi-channel power supply, and compares the voltage data of each channel with the reference Vref. For example, the reference Vref selects the average voltage V 总 / (n+1), or select the lowest voltage, or select the highest voltage, the host computer (or uC) first calculates the difference between each channel voltage and the reference voltage Δ k , calculate the data Δ that needs to be adjusted for the corresponding channel digital positioner according to the minimum resolution 10 , …Δ k0 ,…Δ n0 ; Δ k0 There are positive and negative.
[0079] Step 6: Calculate the compensation data Δ of the compensation resistor Rc c0 =Σ(Δ 10 +…+Δ k0 +…+Δ n0 )
[0080] Step 7. Calculate the updated adjustable resistance data of the digital potentiometer: R k1 =R k0 +Δ k0 ; R c1 =R c0 -Δ c0 ;
[0081] Step 8. uC adjusts the adjustable resistance corresponding to the digital potentiometer of each channel through isolated communication, and updates R k1 ,R c1 Write to the digital potentiometer.
[0082] Step 9: When the circuit is stable, repeat steps 5, 6, 7, and 8 until the voltage difference of each channel is within the error range. Then record the corresponding adjustable resistance R of the digital positioner of each channel. 1m , … R km ,…R nm ,R cm , m is the final number of operations, m is a natural number, which is the calibration value R kcor .
[0083] Step 10: If the digital positioner or precision resistor is sensitive to temperature and voltage, 总 Repeat the above steps 1-9 to test and finally get the R of each channel. k At different temperatures T x , total voltage V 总x In this case, the calibration value R kcor (V 总i ,T i ).
[0084] As shown in the following table:
[0085]
[0086]
[0087] This table is stored in the eflash memory of the uC and is automatically loaded every time the power is turned on as the basis for calculating the initialization data of the digital potentiometer of each channel.
[0088] When different V 总i ,T i The corresponding calibration value R kcor Table or adjustable resistor R 1m , … R km ,…R nm ,R cm A high-precision, low-noise controllable multi-channel power supply control method comprises the following steps:
[0089] Step 1: After the system is started, the uC works, the table is loaded into the register, the isolated communication works, and other basic modules are in working state;
[0090] Step 2: uC detects the system's ambient temperature T x , and calculate the required V according to the test needs 总x ;
[0091] Step 3: Use the linear interpolation algorithm to calculate the initial values. Take the Kth channel as an example. According to (T x , V 总x ) Find R kcor (V 总i ,T i ) table, for example (T x , V 总x ) in (V 总m ,T i ), (V 总m ,T i+1 ), (V 总m+1 ,T i ), (V 总m+1 ,T i+1 ) between four grid points.
[0092] a. First, follow V 总x Directional interpolation, get R v1 , R v2 Two values:
[0093]
[0094]
[0095] b. First, follow T x Directional interpolation, get R kcor (V 总x , T x ) Final value:
[0096]
[0097] Step 4: Calculate the calibration value of all channels by linear interpolation: R 1cor , ..., R kcor , ... R ncor , R ccor ,uC writes these values into the corresponding channel digital potentiometer.
[0098] If the ambient temperature does not change much (such as in an air-conditioned environment) and the voltage of the potentiometer is stable, the calibration value R measured under a certain ambient temperature and voltage condition can be directly used. 1m , … R km ,…R nm ,R cm (Calibration measurement step 9) as the initialization value.
[0099] The method of using calibration measurement and initialization table lookup can not only compensate for the error of the digital positioner, but also compensate for the error of R ok The error and amplifier error and temperature drift.
[0100] Embodiment 3:
[0101] like Figure 4 As shown, when the controllable multi-channel power supply is used, the controllable multi-channel power supply is used as a power supply with consistent voltages in each channel. The output end of the multiplexer is connected to the input end of the circuit system to be measured, and the output end of the circuit system to be measured is connected to the intelligent terminal via the second isolation communication. In addition to providing power to the circuit under test, the controllable multi-channel power supply can also provide measurement protection and balancing functions. The voltage variation is within ±50mV. The accuracy of the multi-channel power supply is sufficient, and the resolution is within 1.5625mV. It will not affect the linearity of the channel voltage. At the same time, the buffer can provide a driving current of more than 200mA to realize the measurement balancing function. The intelligent terminal (host computer) is used to obtain the measurement status of the system under test and issue instructions to the system under test. The circuit system to be measured is such as a battery management system.
[0102] When the controllable multi-channel power supply is used, when the circuit system being measured needs to generate a small unbalanced voltage as input:
[0103] uC is working, the table is loaded into the register, the isolated communication is working, and other basic modules are in working state; uC detects the ambient temperature T of the system x, and calculate the required V according to the test needs 总x .
[0104] Import the table and use the linear interpolation algorithm to calculate the initial values R kcor , write the initial value into the positioner and initialize the power supply.
[0105] Calculate the resolution: Determine the channels j, k, l, m… whose voltages need to be changed and the voltage ΔV to be changed j ,ΔV k ,ΔV l ,ΔV m …, (increase is positive, decrease is negative), calculate the change value of the positioner, Δ r =ΔV r / V LSB ,r=k,l,m,n…; the value of the corresponding potentiometer R rcor =R rcor 0+Δ r ,r=k,l,m,n…,R ccor =R ccor 0-Σ r Δ r ,r=k,l,m,n…。
[0106] uC will need to adjust the R rcor and R ccor Write into the corresponding digital potentiometer.
[0107] When measuring the disconnection detection of the system under test, for example, the K channel is disconnected, the control method is as follows: uC issues a disconnection command to the digital potentiometer of the k channel, so that the digital potentiometer GPIO 2 sends a control signal to the enable end of the buffer, disconnects the output of the buffer, and makes V K It is high resistance.
[0108] Then the multiplexer circuit is connected to the circuit system under test, and the uC notifies the circuit under test to start the disconnection detection function. The uC reads the status register of the circuit system under test to determine whether the disconnection detection function has an alarm and whether the function is normal.
[0109] When measuring the overcurrent protection detection of the system under test, the control method is as follows:
[0110] When V k When overcurrent occurs, Bufferk issues an alarm level. After the potentiometer GPIO1 receives the level signal, V can also be disconnected through GPIO2. k Or uC also issues a command to notify the corresponding channel or all channels to disconnect after reading the alarm status of the digital potentiometer, and at the same time notify the host computer.
[0111] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. High-precision, low-noise controllable multi-channel power supply, characterized by: include: The first DAC output terminal is connected to the input terminal of the first amplifier. The output terminal of the first amplifier is connected to a first driver, and the output terminal of the first driver is connected to a compensation resistor R c and a series branch of n variable resistors. The other end of the series branch of n variable resistors is grounded, and the series branch of n variable resistors is set as the variable resistor R n ... variable resistor R k and variable resistor R k-1 ... variable resistor R1 are connected in series in turn. The other end of the variable resistor R1 is grounded. k and n are natural numbers, and k < n. The variable resistor R n ... variable resistor R k and variable resistor R k-1 ... The input terminals of variable resistor R1 are respectively connected to a second driver; The central control unit uC is respectively connected to the compensation resistor R c and variable resistor R n ... variable resistor R k and variable resistor R k-1 ... variable resistor R1 through isolated communication; The central control unit uC is connected to the first DAC output terminal through isolated communication; The compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ...The variable resistor R1 includes: a digital potentiometer and a high-precision resistor. The digital potentiometer includes: an adjustable resistor, a controller, and an ADC. The controller is used to communicate with the central control unit uC through the ADC via the first isolation communication, and the controller is used to control the resistance value of the adjustable resistor; the adjustable resistor is connected in parallel with the high-precision resistor; the second driver includes: a preamplifier, a buffer, and a feedback network. The preamplifier and the buffer are connected in series, the positive input end of the preamplifier is connected to the parallel input end of the adjustable resistor and the high-precision resistor, and the output end of the buffer is also connected to the negative input end of the preamplifier through the feedback network; The controllable multi-channel power supply performs the following control method: The central control unit uC is based on the compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ……The calibration value R of the variable resistor R1 kcor For compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ...variable resistor R1 is used for adjustment; The calibration value R kcor The acquisition method is as follows: Step 1: The central control unit uC sets the DAC value through isolated communication so that V 总 The value is (n+1)*△V k ,△V k A voltage preset for each channel of a controllable multi-channel power supply; Step 2: The central control unit uC connects the compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ...the variable resistor R1 is set to an initial specific value; Step 3: Calculate the variable resistance R k Minimum resolution V LSB , ΔR k Represents R k The amount of change; Step 4: Compare the output voltage of each channel with the reference Vref to obtain the difference △ k , according to the minimum resolution, the variable resistor R1 is calculated... the variable resistor R k-1 , variable resistor R k Variable resistor R n The data that needs to be adjusted for the adjustable resistor in the corresponding channel digital potentiometer△ 10 ,…△ k0 ,…△ n0 ,△ 10 ,…△ k0 ,…△ n0 There are positive and negative; Step 5: Calculate the compensation data of the compensation resistor Rc c0 ,△ c0 =Σ(△ 10 +…+△ k0 +…+△ n0 ); Step 6: Update the compensation resistor Rc, variable resistor R1, and variable resistor R k-1 , variable resistor R k Variable resistor R n The adjustable resistance data of the digital potentiometer, the compensation resistance adjustable resistance update data value is Rc initial specific value + compensation data △ c0 ; Variable resistor R1...Variable resistor R k-1 , variable resistor R k Variable resistor R n The adjustable resistance of the digital potentiometer is updated to the initial specific value + the data to be adjusted; Step 7: The central control unit uC adjusts the size of the adjustable resistance corresponding to each digital potentiometer through isolated communication, and updates the data value in the digital potentiometer; Step 8: When the circuit is stable, repeat steps 4-7 until the voltage difference of each channel is within the error range, and record the adjustable resistance R corresponding to the digital positioner of each channel. 1m , … R km ,…R nm ,R cm , m is the final number of operations, m is a natural number, which is the calibration value R kcor .
2. The high-precision, low-noise controllable multi-channel power supply according to claim 1, characterized in that: The first DAC is a high-precision DAC.
3. The high-precision, low-noise controllable multi-channel power supply according to claim 1, characterized in that: The differential voltage between the preamplifier output terminal and the low-potential preamplifier output terminal is used as the working power supply of the digital potentiometer.
4. The high-precision, low-noise controllable multi-channel power supply according to claim 1, characterized in that: The buffer output gain is close to 1 for forward drive.
5. The high-precision, low-noise controllable multi-channel power supply according to claim 1, characterized in that: The buffer signal output terminal is connected to the GPIO1 of the controller and is used to output an alarm signal of an overcurrent event; The buffer enable control terminal is connected to the GPIO2 of the controller and is used to receive a control signal of the buffer switch.
6. The control method of a controllable multi-channel power supply according to any one of claims 1 to 5, characterized in that: The steps include: The central control unit uC is based on the compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ……The calibration value R of the variable resistor R1 kcor For compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ...variable resistor R1 is used for adjustment; The calibration value R kcor The acquisition method is as follows: Step 1: The central control unit uC sets the DAC value through isolated communication so that V 总 The value is (n+1)*ΔV k ,ΔV k A voltage preset for each channel of a controllable multi-channel power supply; Step 2: The central control unit uC connects the compensation resistor R c , variable resistor R n Variable resistor R k , variable resistor R k-1 ...the variable resistor R1 is set to an initial specific value; Step 3: Calculate the variable resistance R k Minimum resolution V LSB , ΔR k Represents R k The amount of change; Step 4: Compare the output voltage of each channel with the reference Vref to obtain the difference Δ k , according to the minimum resolution, the variable resistor R1 is calculated... the variable resistor R k-1 , variable resistor R k Variable resistor R n The data Δ that needs to be adjusted for the adjustable resistance in the corresponding channel digital potentiometer 10 , …Δ k0 ,…Δ n0 , Δ 10 , …Δ k0 ,…Δ n0 There are positive and negative; Step 5: Calculate the compensation data Δ of the compensation resistor Rc c0 , Δ c0 =Σ(Δ 10 +…+Δ k0 +…+Δ n0 ); Step 6: Update the compensation resistor Rc, variable resistor R1, and variable resistor R k-1 , variable resistor R k Variable resistor R n The adjustable resistance data of the digital potentiometer, the compensation resistance adjustable resistance update data value is Rc initial specific value + compensation data Δ c0 ; Variable resistor R1...Variable resistor R k-1 , variable resistor R k Variable resistor R n The adjustable resistance of the digital potentiometer is updated to the initial specific value + the data to be adjusted; Step 7: The central control unit uC adjusts the size of the adjustable resistance corresponding to each digital potentiometer through isolated communication, and updates the data value in the digital potentiometer; Step 8: When the circuit is stable, repeat steps 4-7 until the voltage difference of each channel is within the error range, and record the adjustable resistance R corresponding to the digital positioner of each channel. 1m , … R km ,…R nm ,R cm , m is the final number of operations, m is a natural number, which is the calibration value R kcor .
7. The control method according to claim 6, characterized in that: The reference Vref is selected from the average voltage Vtotal / (n+1), or the lowest voltage of each channel, or the highest voltage of each channel.
8. The control method according to claim 6, characterized in that: Also includes: For different ambient temperatures and different V 总 Repeat steps 1-9 to get the R of each channel k At different temperatures T x , total voltage V 总x In this case, the calibration value R kcor (V 总i ,T i ) table, i is 1-n, n is a natural number; The central control unit uC obtains the ambient temperature T x , and calculate the required V according to the test needs 总x ; According to the calibration value R kcor (V 总i ,T i ) table uses linear interpolation algorithm to calculate the calibration value R kcor (T x , V 总x ).
9. The control method according to claim 8, characterized in that: According to the calibration value R kcor (V 总i ,T i ) table uses linear interpolation algorithm to calculate the calibration value R kcor (T x , V 总x ), the calculation method is as follows: Find R kcor (T x , V 总x ) in R kcor (V 总i ,T i ) table, R kcor (T x , V 总x ) in (V 总m ,T i ), (V 总m ,T i+1 ), (V 总m+1 ,T i ), (V 总m+1 ,T i+1 ) between four grid points; First, along V 总x Directional interpolation, get R v1 , R v2 Two values: First, along T x Directional interpolation, get R kcor (V 总x , T x ) Final value:
