CN102354239B - Method for regulating mechanical potentiometer in digital potentiometer voltage-regulation circuit - Google Patents
Method for regulating mechanical potentiometer in digital potentiometer voltage-regulation circuit Download PDFInfo
- Publication number
- CN102354239B CN102354239B CN2011101552528A CN201110155252A CN102354239B CN 102354239 B CN102354239 B CN 102354239B CN 2011101552528 A CN2011101552528 A CN 2011101552528A CN 201110155252 A CN201110155252 A CN 201110155252A CN 102354239 B CN102354239 B CN 102354239B
- Authority
- CN
- China
- Prior art keywords
- resistance
- operational amplifier
- voltage
- pin
- potentiometer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Abstract
The invention discloses a method for regulating a mechanical potentiometer in a digital potentiometer voltage-regulation circuit. The method comprises the following specific steps of: when a digital potentiometer (4) receives 0*00, regulating a mechanical potentiometer A (2) to make the output voltage of a circuit reach a lower limit value of a voltage regulation target; when the digital potentiometer (4) receives 0*ff, calculating a voltage target value corresponding to the 0*ff by utilizing a current voltage output value and the upper limit value of the voltage regulation target, and regulating a mechanical potentiometer B (3) to make the output voltage of the circuit reach the voltage target value corresponding to the 0*ff; and regulating the mechanical potentiometer A (2) and the mechanical potentiometer B (3) for a plurality of times until the voltage regulation range of the circuit is consistent with a required target. By the method, the mechanical potentiometer in the digital potentiometer voltage-regulation circuit can be regulated rapidly; and compared with the conventional regulating method which requires dozens of regulating times, the invention has the advantage that: the regulating times is less than five; and the regulating speed is greatly increased.
Description
Technical field
The present invention relates to a kind of control method of mechanical potentiometer, particularly the control method of mechanical potentiometer in a kind of digital regulation resistance regulating circuit.
Background technology
In recent years, be widely applied in the equipment such as power supply take the regulating circuit of digital regulation resistance as basis.For the individual difference of compensating digits potentiometer, circuit often need two mechanical potentiometers as cooperation, just can reach the purpose of high precision pressure regulation.The sexadecimal 0x00 that digital regulation resistance reception external microprocessor sends~0xff data, thus output resistance changed, and then reach the effect of regulating circuit output voltage., in order to make range of regulation highly consistent with actual demand, rely on two mechanical potentiometers of adjusting to realize.
The classic method that mechanical potentiometer is regulated is:, in the situation that digital regulation resistance receives 0x00, regulate mechanical potentiometer A and make the output voltage of circuit reach the lower limit of pressure regulation target; Receive in the 0xff situation at digital regulation resistance, regulate mechanical potentiometer B and make the output voltage of circuit reach the higher limit of pressure regulation target; Repeatedly regulate according to above-mentioned two steps, until the range of regulation of circuit is consistent with requirement objective.The method that this kind regulated mechanical potentiometer, need the repetition of tens times, and speed is too slow.
Summary of the invention
The object of the invention is to provide the control method of mechanical potentiometer in a kind of digital regulation resistance regulating circuit, solves the slow problem of mechanical potentiometer governing speed in present digital regulation resistance regulating circuit.
This method is the control method for mechanical potentiometer in the digital regulation resistance regulating circuit, described digital regulation resistance regulating circuit comprises: resistance R 1, resistance R 2, resistance R 3, resistance R 4, capacitor C 1, capacitor C 2, operational amplifier, digital regulation resistance, mechanical potentiometer A, mechanical potentiometer B.
One end ground connection GND of resistance R 1, the other end is connected with the end of resistance R 2, mechanical potentiometer B; The other end of resistance R 2, mechanical potentiometer B is connected with the IN+ pin of operational amplifier.The IN-pin of operational amplifier is connected with the voltage reference end of circuit outside, the GND pin ground connection GND of operational amplifier.The VCC pin of operational amplifier, an end of capacitor C 1 are connected with power supply VCC, the other end ground connection GND of capacitor C 1.The OUT pin of operational amplifier is connected with an end of resistance R 3, and the other end of resistance R 3 is connected with the end of resistance R 4, mechanical potentiometer A; The other end of resistance R 4, mechanical potentiometer A is connected with the W1 pin of digital regulation resistance.The A1 pin of digital regulation resistance is connected with the IN+ pin of operational amplifier.The VDD pin of digital regulation resistance, an end of capacitor C 2 are connected with power supply VCC, the GND pin ground connection GND of the other end of capacitor C 2, digital regulation resistance.The hexadecimal data 0x00 of the CS pin of digital regulation resistance, CLK pin, SDI pin receiving circuit external microprocessor~0xff command information.
In a kind of digital regulation resistance regulating circuit, the concrete steps of the control method of mechanical potentiometer are:
First step digital regulation resistance receives data 0x00
Digital regulation resistance receives the data 0x00 from external microprocessor.
Second step is adjusted the OUT pin voltage of operational amplifier to lower limit
Regulate mechanical potentiometer A, within the OUT pin voltage of operational amplifier is adjusted to pressure regulation target lower limit ± lower limit permissible variation scope; , if adjust to this scope, carry out next step.If adjust less than this scope, illustrate that circuit parameter does not mate, should return to design department and process, therefore stop regulating.
The 3rd step number word potentiometer receives data 0xff
Digital regulation resistance receives the data 0xff from external microprocessor.
OUT pin voltage and the pressure regulation target upper limit of the 4th step comparator/operational amplifier
When the OUT of operational amplifier pin magnitude of voltage is within the pressure regulation target upper limit ± upper limit permissible variation scope, the adjusting of mechanical potentiometer A and mechanical potentiometer B finished; If during the condition of the OUT pin magnitude of voltage that does not meet operational amplifier within the pressure regulation target upper limit ± upper limit permissible variation scope, the pressure regulation target upper limit is designated as U_sx.
The 5th step was recorded the current voltage of the OUT pin of operational amplifier
Record the current voltage numerical value of operational amplifier OUT pin, be designated as U_ff.
The 6th circuit output voltage desired value corresponding to step computational data 0xff
Calculate the difference of U_ff and U_sx, if difference, greater than 1V, is calculated U_sx*U_sx/U_ff, it is recorded as U_js; If difference between 0.5V and 1V, is calculated U_sx*U_sx/U_ff+ (U_sx-U_ff) * 0.5, it is recorded as U_js; If difference, less than 0.5V, is calculated U_sx*U_sx/U_ff+ (U_sx-U_ff), it is recorded as U_js.
The OUT pin voltage of the 7th whole operational amplifier of step is to U_js
Regulate mechanical potentiometer B, after adjusting to the OUT pin voltage of operational amplifier in U_js ± upper limit permissible variation scope, digital regulation resistance receives the data 0x00 from external microprocessor, adjusts the OUT pin voltage of operational amplifier to lower limit, and digital regulation resistance receives data 0xff.The OUT pin magnitude of voltage of operational amplifier within the pressure regulation target upper limit ± upper limit permissible variation scope, finishes the adjusting of mechanical potentiometer A and mechanical potentiometer B.
Circulation several times through above-mentioned steps is regulated, and realizes the range of regulation of mechanical potentiometer in the digital regulation resistance regulating circuit: pressure regulation target lower limit~pressure regulation target upper limit, and deviation is within allowed band.
The present invention has the ability of mechanical potentiometer in quick adjustment digital regulation resistance regulating circuit, regulates cycle index less than 5 times, and the traditional method of adjustment with respect to tens circulations, improved governing speed greatly.
Description of drawings
The digital regulation resistance pressure regulation typical circuit of the control method of mechanical potentiometer in a kind of digital regulation resistance regulating circuit of Fig. 1.
1. operational amplifier 2. mechanical potentiometer A3. mechanical potentiometer B4. digital regulation resistances
Embodiment
This method is the control method for mechanical potentiometer in the digital regulation resistance regulating circuit, described digital regulation resistance regulating circuit comprises: resistance R 1, resistance R 2, resistance R 3, resistance R 4, capacitor C 1, capacitor C 2, operational amplifier 1, digital regulation resistance 4, mechanical potentiometer A2, mechanical potentiometer B3.
One end ground connection GND of resistance R 1, the other end is connected with the end of resistance R 2, mechanical potentiometer B3; The other end of resistance R 2, mechanical potentiometer B3 is connected with the IN+ pin of operational amplifier 1.The IN-pin of operational amplifier 1 is connected with the voltage reference end of circuit outside, the GND pin ground connection GND of operational amplifier 1.The VCC pin of operational amplifier 1, an end of capacitor C 1 are connected with power supply VCC, the other end ground connection GND of capacitor C 1.The OUT pin of operational amplifier 1 is connected with an end of resistance R 3, and the other end of resistance R 3 is connected with the end of resistance R 4, mechanical potentiometer A2; The other end of resistance R 4, mechanical potentiometer A2 is connected with the W1 pin of digital regulation resistance 4.The A1 pin of digital regulation resistance 4 is connected with the IN+ pin of operational amplifier 1.The VDD pin of digital regulation resistance 4, an end of capacitor C 2 are connected with power supply VCC, the GND pin ground connection GND of the other end of capacitor C 2, digital regulation resistance 4.The hexadecimal data 0x00 of the CS pin of digital regulation resistance 4, CLK pin, SDI pin receiving circuit external microprocessor~0xff command information.
The control method of mechanical potentiometer in a kind of digital regulation resistance regulating circuit, key step is:
First step digital regulation resistance 4 receives data 0x00
The data 0x00 that digital regulation resistance 4 receives from external microprocessor.
Second step is adjusted the OUT pin voltage of operational amplifier 1 to lower limit
Regulate mechanical potentiometer A2, within the OUT pin voltage of operational amplifier 1 is adjusted to pressure regulation target lower limit ± lower limit permissible variation scope.
The 3rd step number word potentiometer 4 receives data 0xff
The data 0xff that digital regulation resistance 4 receives from external microprocessor.
OUT pin voltage and the pressure regulation target upper limit of the 4th step comparator/operational amplifier
When the OUT of operational amplifier 1 pin magnitude of voltage is within the pressure regulation target upper limit ± upper limit permissible variation scope, the adjusting of mechanical potentiometer A2 and mechanical potentiometer B3 finished; If during the condition of the OUT pin magnitude of voltage that does not meet operational amplifier 1 within the pressure regulation target upper limit ± upper limit permissible variation scope, the pressure regulation target upper limit is designated as U_sx.
The 5th step was recorded the current voltage of the OUT pin of operational amplifier 1
Record the current voltage numerical value of the OUT pin of operational amplifier 1, be designated as U_ff.
The 6th circuit output voltage desired value corresponding to step computational data 0xff
During greater than 1V, calculate U_sx*U_sx/U_ff in the difference of U_ff and U_sx, it is recorded as U_js.
The OUT pin voltage of the 7th whole operational amplifier 1 of step is to U_js
Regulate mechanical potentiometer B3, after adjusting to the OUT pin voltage of operational amplifier 1 in U_js ± upper limit permissible variation scope, the data 0x00 that digital regulation resistance 4 receives from external microprocessor, adjust the OUT pin voltage of operational amplifier 1 to lower limit, and digital regulation resistance 4 receives data 0xff.The OUT pin magnitude of voltage of operational amplifier 1 within the pressure regulation target upper limit ± upper limit permissible variation scope, finishes the adjusting of mechanical potentiometer A2 and mechanical potentiometer B3.
Iterative cycles through seven steps is regulated, and realizes the range of regulation of mechanical potentiometer in the digital regulation resistance regulating circuit: pressure regulation target lower limit~pressure regulation target upper limit, and deviation is within allowed band.
Claims (1)
1. the control method of mechanical potentiometer in a digital regulation resistance regulating circuit, described digital regulation resistance regulating circuit comprises: resistance R 1, resistance R 2, resistance R 3, resistance R 4, capacitor C 1, capacitor C 2, operational amplifier (1), digital regulation resistance (4), mechanical potentiometer A(2), mechanical potentiometer B(3);
One end ground connection GND of resistance R 1, the other end and resistance R 2, mechanical potentiometer B(3) an end be connected; Resistance R 2, mechanical potentiometer B(3) the other end be connected with the IN+ pin of operational amplifier (1); The IN-pin of operational amplifier (1) is connected with the voltage reference end of circuit outside, the GND pin ground connection GND of operational amplifier (1); The VCC pin of operational amplifier (1), an end of capacitor C 1 are connected with power supply VCC, the other end ground connection GND of capacitor C 1; The OUT pin of operational amplifier (1) is connected with an end of resistance R 3, the other end of resistance R 3 and resistance R 4, mechanical potentiometer A(2) an end be connected; Resistance R 4, mechanical potentiometer A(2) the other end be connected with the W1 pin of digital regulation resistance (4); The A1 pin of digital regulation resistance (4) is connected with the IN+ pin of operational amplifier (1); The VDD pin of digital regulation resistance (4), an end of capacitor C 2 are connected with power supply VCC, the GND pin ground connection GND of the other end of capacitor C 2, digital regulation resistance (4); The hexadecimal data 0x00 of the CS pin of digital regulation resistance (4), CLK pin, SDI pin receiving circuit external microprocessor~0xff command information;
The control method of mechanical potentiometer in a kind of digital regulation resistance regulating circuit is characterized in that concrete steps are:
First step digital regulation resistance (4) receives data 0x00
Digital regulation resistance receives the data 0x00 from external microprocessor;
Second step is adjusted the OUT pin voltage of operational amplifier (1) to lower limit
Regulate mechanical potentiometer A(2), within the OUT pin voltage of operational amplifier (1) is adjusted to pressure regulation target lower limit ± lower limit permissible variation scope; , if adjust to this scope, carry out next step; If adjust less than this scope, illustrate that circuit parameter does not mate, should return to design department and process, therefore stop regulating;
The 3rd step number word potentiometer (4) receives data 0xff
Digital regulation resistance receives the data 0xff from external microprocessor;
OUT pin voltage and the pressure regulation target upper limit of the 4th step comparator/operational amplifier
When the OUT pin magnitude of voltage of operational amplifier (1) is within the pressure regulation target upper limit ± upper limit permissible variation scope, to mechanical potentiometer A(2) and mechanical potentiometer B(3) adjusting finish; If during the condition of the OUT pin magnitude of voltage that does not meet operational amplifier (1) within the pressure regulation target upper limit ± upper limit permissible variation scope, the pressure regulation target upper limit is designated as U_sx;
The 5th step was recorded the current voltage of the OUT pin of operational amplifier (1)
The current voltage records of values of the OUT pin of operational amplifier (1) is got off, be designated as U_ff;
The 6th circuit output voltage desired value corresponding to step computational data 0xff
Calculate the difference of U_ff and U_sx, if difference, greater than 1V, is calculated U_sx*U_sx/U_ff, it is recorded as U_js; If difference between 0.5V and 1V, is calculated U_sx*U_sx/U_ff+ (U_sx-U_ff) * 0.5, it is recorded as U_js; If difference, less than 0.5V, is calculated U_sx*U_sx/U_ff+ (U_sx-U_ff), it is recorded as U_js;
The OUT pin voltage of the 7th whole operational amplifier of step (1) is to U_js
Regulate mechanical potentiometer B(3), after adjusting to the OUT pin voltage of operational amplifier (1) in U_js ± upper limit permissible variation scope, digital regulation resistance (4) receives the data 0x00 from external microprocessor, adjust the OUT pin voltage of operational amplifier (1) to lower limit, digital regulation resistance (4) receives data 0xff; The OUT pin magnitude of voltage of operational amplifier (1) is within the pressure regulation target upper limit ± upper limit permissible variation scope, to mechanical potentiometer A(2) and mechanical potentiometer B(3) adjusting finish;
Regulate through the iterative cycles of seven steps, complete mechanical potentiometer A(2) and mechanical potentiometer B(3) adjustment, thereby realize that the range of regulation of circuit is adjusted to: pressure regulation target lower limit~pressure regulation target upper limit, and deviation is within allowed band.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101552528A CN102354239B (en) | 2011-06-10 | 2011-06-10 | Method for regulating mechanical potentiometer in digital potentiometer voltage-regulation circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101552528A CN102354239B (en) | 2011-06-10 | 2011-06-10 | Method for regulating mechanical potentiometer in digital potentiometer voltage-regulation circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102354239A CN102354239A (en) | 2012-02-15 |
CN102354239B true CN102354239B (en) | 2013-11-13 |
Family
ID=45577809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101552528A Active CN102354239B (en) | 2011-06-10 | 2011-06-10 | Method for regulating mechanical potentiometer in digital potentiometer voltage-regulation circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102354239B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893889A (en) * | 2016-03-21 | 2016-08-24 | 杨露萍 | Absolute value circuit |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4716518A (en) * | 1984-11-14 | 1987-12-29 | W. Vinten Limited | Incremental control |
US20030155902A1 (en) * | 2002-02-20 | 2003-08-21 | Stanescu Cornel D. | Buffered configurable nonvolatile programmable digital potentiometer |
CN1828467A (en) * | 2005-03-03 | 2006-09-06 | 华邦电子股份有限公司 | Adjustable stabilized voltage supply device |
-
2011
- 2011-06-10 CN CN2011101552528A patent/CN102354239B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4716518A (en) * | 1984-11-14 | 1987-12-29 | W. Vinten Limited | Incremental control |
US20030155902A1 (en) * | 2002-02-20 | 2003-08-21 | Stanescu Cornel D. | Buffered configurable nonvolatile programmable digital potentiometer |
CN1828467A (en) * | 2005-03-03 | 2006-09-06 | 华邦电子股份有限公司 | Adjustable stabilized voltage supply device |
Also Published As
Publication number | Publication date |
---|---|
CN102354239A (en) | 2012-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE112011105008B4 (en) | Microphone and method for positioning a membrane between two counter electrodes | |
CN108897367B (en) | Voltage control circuit, method, apparatus and storage medium | |
CN102289239A (en) | Floating-gate programmable low-dropout regulator and methods therefor | |
JP2014096769A (en) | Comparison circuit and a/d conversion circuit | |
CN103281083A (en) | Successive approximation fully differential analog-digital converter with figure correction function and processing method thereof | |
CN103036538A (en) | Circuit and method for correcting offset voltage of comparator | |
CN102354239B (en) | Method for regulating mechanical potentiometer in digital potentiometer voltage-regulation circuit | |
CN109842297A (en) | A kind of output voltage regulator and method | |
US8724349B2 (en) | Apparatus and method for output voltage calibration of a primary feedback flyback power module | |
CN102576062B (en) | Automatic characterization of an actuator based on capacitance measurement | |
KR20140013945A (en) | Trimming circuit, trimming method, and power supply including trimming circuit | |
CN104917528A (en) | AD conversion circuit | |
CN103023499B (en) | Analog to digital converter and method of work thereof | |
CN106303190A (en) | Zoom tracking curve antidote and device | |
CN102554478B (en) | Control device and control method for power of high-speed laser | |
CN108667463A (en) | Monitoring data compression method | |
US8824701B2 (en) | Determining automatic gain control levels | |
US9871517B1 (en) | Method for determining resistance calibration direction in ZQ calibration of memory device | |
CN105262405B (en) | Closed loop disturbance observation compensation method for servomotor electric current loop | |
CN102834995B (en) | System and method for balancing input current with parallel power supplies | |
CN106788439A (en) | The regulating system and method for integral form digital analog converter transfer characteristic | |
CN204168131U (en) | A kind of high voltage source soft-start circuit | |
CN114114126B (en) | Digital calibration method and system for low-permeability magnetic powder core current transformer | |
CN206960878U (en) | Time-to-digit converter | |
CN105081562A (en) | Totally-digital laser focusing automatic tracking system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |