This application claims priority to Chinese Patent Application No. 201410117739.0, filed on Mar. 26, 2014, which is hereby incorporated by reference in its entirety.
The present application relates to the field of electronic technologies, and in particular, to a method and apparatus for determining resistance values of a dynamic voltage-adjusting circuit.
In the prior art, Pulse width modulation (PWM) is a common means to dynamically adjusting voltage. As shown in
The direct current/direct current converter 110 determines, according to the voltage input by the first input end and the voltage input by the second input end, an output voltage Vout output by the output end of the direct current/direct current converter 110. The output voltage Vout is then fed back through the feedback branch 120 to the second input end of the direct current/direct current converter 110 for dynamically adjusting the output voltage Vout of the direct current/direct current converter 110. Likewise, the output voltage Vout is input to the pulse width modulator 140 for adjusting a width of a pulse output by the pulse width modulator 140, and an adjusted pulse is input to the second input end of the direct current/direct current converter 110, so as to dynamically adjust the output voltage Vout of the direct current/direct current converter 110.
It can be known from analysis of the dynamic voltage-adjusting circuit according to the foregoing principle that, the output voltage Vout meets formula (1) shown below:
Vout=Vref(1+(R3/R4))+(Vref−Vpwm)(R3/(R1+R2)) formula (1)
According to formula (1), if R1, R2, R3, R4 and Vref are deterministic, the output voltage Vout and the pulse voltage Vpwm meet a linear relationship.
The direct current/direct current converter 110 itself is a voltage feedback amplifier circuit, which serves to adjust an output voltage by adjusting a feedback voltage. A PWM signal is equivalent to compensation for a feedback signal. After PWM signals with different duty cycles pass through a low-pass filter, the low-pass filter outputs direct current levels with different voltages ranging from 0 to 3.3 Volts (V). As shown in
In the existing design, hardware architecture designs and hardware component parameters of all dynamic voltage-adjusting circuits are the same. When a dynamic voltage-adjusting circuit is used for secondary development, different reference voltages Vref can be applied to suit development needs. However, according to formula (1), when R1, R2, R3 and R4 are set to a fixed value but the reference voltage Vref varies, the linear relationship between the output voltage Vout and the pulse voltage Vpwm varies, which means that a different reference voltage Vref results in a different range of the output voltages Vout that can be adjusted by the dynamic voltage-adjusting circuit according to the pulse voltage Vpwm.
Software on the pulse width modulator 140 is responsible for adjusting the output voltage Vout according to the pulse voltage. The software may run on the CPU, and a linear relationship determined between the output voltage Vout and the pulse voltage Vpwm according to a particular reference voltage Vref is pre-stored in the software. In this case, if the pulse width modulator 140 outputs the pulse voltage Vpwm, the direct current/direct current converter 110 outputs the Vout according to the pre-stored linear relationship. However, when the reference voltage Vref changes, a range of the output voltage Vout changes. To address this problem, the prior art has resorted to using multiple versions of software, with each version corresponding to a linear relationship specific to a particular reference voltage. However, using different versions of software brings inconvenience to software maintenance.
The present application proposes a method and apparatus for determining resistance values of a dynamic voltage-adjusting circuit. By adjusting resistance values of multiple resistors in the dynamic voltage-adjusting circuit, voltage values output by the dynamic voltage-adjusting circuit can fall within a same range when a reference voltage takes different values.
One aspect of the present application provides a method for determining resistance values of a dynamic voltage-adjusting circuit, where the dynamic voltage-adjusting circuit includes a direct current/direct current converter, a feedback branch, a pulse input branch, and a pulse width modulator, where a first input end of the direct current/direct current converter is configured to input a reference voltage, a second input end of the direct current/direct current converter is configured to receive a signal fed back through the feedback branch and a pulse signal input by the pulse width modulator through the pulse input branch, and an output end of the direct current/direct current converter outputs a signal to the pulse width modulator, where the pulse signal is used to compensate for the feedback signal, the direct current/direct current converter compares the feedback signal compensated by the pulse signal with the reference voltage to adjust the output signal, and a linear relationship between the pulse signal and the output signal varies with the reference voltage; and the method includes determining a reference voltage, a maximum output voltage value, and a minimum output voltage value of the dynamic voltage-adjusting circuit, where the maximum output voltage value is a voltage output by the dynamic voltage-adjusting circuit when the pulse width modulator inputs a minimum pulse voltage through the pulse input branch, and the minimum output voltage value is a voltage output by the dynamic voltage-adjusting circuit when the pulse width modulator inputs a maximum pulse voltage through the pulse input branch; determining, according to the reference voltage and the maximum output voltage value, a first relational expression between the reference voltage, the maximum output voltage value, and multiple resistors in the feedback branch and the pulse input branch of the dynamic voltage-adjusting circuit, and determining, according to the reference voltage and the minimum output voltage value, a second relational expression between the reference voltage, the minimum output voltage value, and the multiple resistors; and determining, according to the first relational expression and the second relational expression, a group of resistance values, corresponding to the reference voltage, of the multiple resistors.
With reference to the first aspect, in a first possible implementation of the first aspect of the present application, the pulse input branch includes include a first resistor, a first capacitor and a second resistor, where one end of the first resistor is connected to the second input end of the direct current/direct current converter, the other end of the first resistor is connected to one end of both the first capacitor and the second resistor, the other end of the first capacitor is grounded, and the other end of the second resistor is connected to an output end of the pulse width modulator; and the determining, according to the first relational expression and the second relational expression, a group of resistance values of the multiple resistors includes setting a resistance value of the second resistor to a fixed value; and determining, according to the resistance value of the second resistor, the first relational expression and the second relational expression, a group of resistance values, corresponding to the reference voltage, of the multiple resistors.
With reference to the first possible implementation of the first aspect, in a second possible implementation of the first aspect of the present application, the first resistor is formed by at least two resistors connected in series.
With reference to the first or the second possible implementation of the first aspect, in a third possible implementation of the first aspect of the present application, the feedback branch includes a third resistor and a fourth resistor, where the third resistor and the fourth resistor divide a voltage output by the output end of the direct current/direct current converter, and input a divided voltage to the second input end of the direct current/direct current converter.
With reference to the third possible implementation of the first aspect, in a fourth possible implementation of the first aspect of the present application, the first relational expression is: V max=Vref(1+(R3/R4))+(Vref−Vpwm(min))(R3/(R1+R2)); where Vmax is the maximum output voltage value, Vref is the reference voltage, R1 is the first resistor, R2 is the second resistor, R3 is the third resistor, R4 is the fourth resistor, and Vpwm(min) is the minimum pulse voltage; and the second relational expression is: V min=Vref(1+(R31 R4))+(Vref−Vpwm(max))(R3/(R1+R2)), where Vmin is the minimum output voltage value, and Vpwm(max) is the maximum pulse voltage.
A second aspect of the application provides an apparatus for determining resistance values of a dynamic voltage-adjusting circuit, where the dynamic voltage-adjusting circuit includes a direct current/direct current converter, a feedback branch, a pulse input branch, and a pulse width modulator, where a first input end of the direct current/direct current converter is configured to input a reference voltage, a second input end of the direct current/direct current converter is configured to receive a signal fed back through the feedback branch and a pulse signal input by the pulse width modulator through the pulse input branch, and an output end of the direct current/direct current converter outputs a signal to the pulse width modulator, where the pulse signal is used to compensate for the feedback signal, the direct current/direct current converter compares the feedback signal compensated by the pulse signal with the reference voltage to adjust the output signal, and a linear relationship between the pulse signal and the output signal varies with the reference voltage; the apparatus includes a voltage determining module, a relational expression determining module, and a resistance value searching module, where the voltage determining module is configured to determine a reference voltage, a maximum output voltage value, and a minimum output voltage value of the dynamic voltage-adjusting circuit, where the maximum output voltage value is a voltage output by the dynamic voltage-adjusting circuit when the pulse width modulator inputs a minimum pulse voltage through the pulse input branch, and the minimum output voltage value is a voltage output by the dynamic voltage-adjusting circuit when the pulse width modulator inputs a maximum pulse voltage through the pulse input branch; and the voltage determining module sends the reference voltage, the maximum output voltage value, and the minimum output voltage value to the relational expression determining module; the relational expression determining module is configured to receive the reference voltage, the maximum output voltage value, and the minimum output voltage value, determine, according to the reference voltage and the maximum output voltage value, a first relational expression between the reference voltage, the maximum output voltage value, and the multiple resistors, and determine, according to the reference voltage and the minimum output voltage value, a second relational expression between the reference voltage, the minimum output voltage value, and the multiple resistors; and the relational expression determining module sends the first relational expression and the second relational expression to the resistance value searching module; and the resistance value searching module is configured to receive the first relational expression and the second relational expression, and determine, according to the first relational expression and the second relational expression, a group of resistance values of the multiple resistors.
With reference to the second aspect, in a first possible implementation of the second aspect of the present application, the pulse input branch includes a first resistor, a first capacitor and a second resistor, where one end of the first resistor is connected to the second input end of the direct current/direct current converter, the other end of the first resistor is connected to one end of both the first capacitor and the second resistor, the other end of the first capacitor is grounded, and the other end of the second resistor is connected to an output end of the pulse width modulator; and the resistance value searching module is configured to set a resistance value of the second resistor to a fixed value, and determine, according to the resistance value of the second resistor, the first relational expression and the second relational expression, a group of resistance values, corresponding to the reference voltage, of the multiple resistors.
With reference to the first possible implementation of the second aspect, in a second possible implementation of the second aspect of the present application, the first resistor is formed by at least two resistors connected in series.
With reference to the first or the second possible implementation of the second aspect, in a third possible implementation of the second aspect of the present application, the feedback branch includes a third resistor and a fourth resistor, where the third resistor and the fourth resistor divide a voltage output by the output end of the direct current/direct current converter, and input a divided voltage to the second input end of the direct current/direct current converter.
With reference to the third possible implementation of the second aspect, in a fourth possible implementation of the second aspect of the present application, the first relational expression is: V max=Vref(1+(R3/R4))+(Vref−Vpwm(min))(R3/(R1+R2)); where Vmax is the maximum output voltage value, Vref is the reference voltage, R1 is the first resistor, R2 is the second resistor, R3 is the third resistor, R4 is the fourth resistor, and Vpwm(min) is the minimum pulse voltage; and the second relational expression is: V min=Vref(1+(R3/R4))+(Vref−Vpwm(max))(R3/(R1+R2)), where Vmin is the minimum output voltage value, and Vpwm(max) is the maximum pulse voltage.
In embodiments of the present invention, a reference voltage, a maximum output voltage value, and a minimum output voltage value of a dynamic voltage-adjusting circuit are determined first; then, a first relational expression between the reference voltage, the maximum output voltage value, and multiple resistors in a feedback branch and a pulse input branch of the dynamic voltage-adjusting circuit are determined according to the reference voltage and the maximum output voltage value, and meanwhile, a second relational expression between the reference voltage, the minimum output voltage value, and the multiple resistors are determined according to the reference voltage and the minimum output voltage value; finally, a group of resistance values of the multiple resistors are determined according to the first relational expression and the second relational expression. It can be seen that, when the maximum output voltage value and the minimum output voltage value are definite, the group of resistance values of the multiple resistors vary with the reference voltage. Therefore, by adjusting the resistance values of the multiple resistors to fit with the varying reference voltage, it is ensured that the maximum output voltage value and the minimum output voltage value output by the dynamic voltage-adjusting circuit can remain unchanged when the reference voltage takes different values, that is to say, the output voltage values are within a same range. Therefore, there is no need to use multiple versions of software to adjust the output voltage of the dynamic voltage-adjusting circuit, which facilitates ease in software maintenance.
In the following description, specific details such as a particular system structure, an interface, and a technology are set forth in an illustrative rather than a restrictive sense to provide a thorough understanding of the present application. However, a person skilled in the art should understand that the present application may also be practiced in other implementation manners without these specific details. In other instances, well-known apparatuses, circuits and methods are not described in detail so as not to unnecessarily obscure description of the present application.
In the present invention, a dynamic voltage-adjusting circuit includes a direct current/direct current converter, a feedback branch, a pulse input branch, and a pulse width modulator, where a first input end of the direct current/direct current converter is configured to input a reference voltage, a second input end of the direct current/direct current converter is configured to receive a signal fed back through the feedback branch and a pulse signal input by the pulse width modulator through the pulse input branch, and an output end of the direct current/direct current converter outputs a signal to the pulse width modulator, where the pulse signal is used to compensate for the feedback signal; the direct current/direct current converter compares the feedback signal compensated by the pulse signal with the reference voltage to adjust the output signal; a linear relationship between the pulse signal and the output signal varies with the reference voltage; and an apparatus for determining resistance values of the dynamic voltage-adjusting circuit may determine, according to the reference voltage, resistance values of multiple resistors of the feedback branch and the pulse input branch to determine the linear relationship.
S201. Determine a reference voltage, a maximum output voltage value, and a minimum output voltage value of the dynamic voltage-adjusting circuit.
The dynamic voltage-adjusting circuit shown in
Then, when the dynamic voltage-adjusting circuit is used for secondary development, a reference voltage of the dynamic voltage-adjusting circuit is determined according to a need. After the reference voltage, the maximum output voltage value of the dynamic voltage-adjusting circuit, and the minimum output voltage value of the dynamic voltage-adjusting circuit are all determined, they are input to an apparatus that practices this method to determine resistance values of the dynamic voltage-adjusting circuit.
S202. Determine, according to the reference voltage and the maximum output voltage value, a first relational expression between the reference voltage, the maximum output voltage value, and multiple resistors in the feedback branch and the pulse input branch of the dynamic voltage-adjusting circuit; and determine, according to the reference voltage and the minimum output voltage value, a second relational expression between the reference voltage, the minimum output voltage value, and the multiple resistors.
As mentioned above, by way of example, the maximum output voltage value Vmax of the dynamic voltage-adjusting circuit is a voltage value produced when the pulse width modulator outputs a minimum value of 0 V, and the minimum output voltage value Vmin of the dynamic voltage-adjusting circuit is a voltage value produced when the pulse width modulator outputs a maximum value of 3.3 V. It is known that formula (1) is: Vout=Vref(1+(R3/R4))+(Vref−Vpwm)(R3/(R1+R2)), the reference voltage Vref, the maximum output voltage value Vmax, the minimum output voltage value Vmin, a minimum pulse voltage Vpwm(min) corresponding to the maximum output voltage value Vmax, and a maximum pulse voltage Vpwm(max) corresponding to the minimum output voltage value Vmin are substituted into the formula, to obtain a first relational expression for the Vmax and a second relational expression for the Vmin:
Vmax=Vref(1+(R3/R4))+(Vref−Vpwm(min))(R3/(R1+R2))=Vref(1+(R3/R4))+Vref(R3/(R1+R2)) formula (2)
Vmin=Vref(1+(R3/R4))+(Vref−Vpwm(max))(R3/(R1+R2))=Vref(1+(R3/R4))+(Vref−3.3)(R3/(R1+R2)) formula (3).
In combination with formula (2) and (3), relational expressions between the reference voltage, the maximum output voltage value, and the minimum output voltage value of the dynamic voltage-adjusting circuit of the version, and the resistors in the feedback branch and pulse input branch of the dynamic voltage-adjusting circuit can be obtained, such as formula (4) and formula (5). 1+(R3/R4)=(V max/Vref)−(V max−V min)/3.3 formula (4); R3/(R1+R2)=(V max−V min)/3.3 formula (5).
It should be understood that, in the statement that the maximum output voltage value Vmax of the dynamic voltage-adjusting circuit is a voltage value produced when the pulse width modulator outputs a minimum value of 0 V, and the minimum output voltage value Vmin of the dynamic voltage-adjusting circuit is a voltage value produced when the pulse width modulator outputs a maximum value of 3.3 V, 0 V and 3.3 V are merely example values and other values may be applied in other implementations, which are not specifically limited herein.
S203. Determine, according to the first relational expression and the second relational expression, a group of resistance values, corresponding to the reference voltage, of the multiple resistors.
A resistor R2 and a capacitor C1 form a low-pass filter, which converts an alternating current voltage output by the pulse width modulator into a direct current voltage. Time needed for the resistor R2 and the capacitor C1 to convert an output alternating current voltage into a direct current voltage is referred to as voltage regulation time. To ensure that the voltage regulation time can be same for dynamic voltage-adjusting circuits of different versions, a resistance value of the resistor R2 may be set to a fixed value.
After the resistance value of the resistor R2 is set to a fixed value, attempts will be made to search for a group of resistors R1, R2, R3 and R4 that meet formula (4) and formula (5). Generally, the resistor R1 that is found to meet the formulas has to provide extremely high resistance, and it would be a significant technical challenge to manufacture an individual resistor with such high resistance. For this reason, the resistor R1 may be formed by at least two resistors R11 and R12 connected in series.
After the foregoing method is applied, with Vmax=1.32V and Vmin=0.9V, resistance values, corresponding to reference voltages, of the resistors can be obtained, as shown in Table 1.
In this embodiment, a reference voltage, a maximum output voltage value, and a minimum output voltage value of a dynamic voltage-adjusting circuit are determined first; then, a first relational expression between a reference voltage, the maximum output voltage value, and multiple resistors in a feedback branch and a pulse input branch of the dynamic voltage-adjusting circuit are determined according to the reference voltage and the maximum output voltage value, and meanwhile, a second relational expression between the reference voltage, the minimum output voltage value, and the multiple resistors is determined according to the reference voltage and the minimum output voltage value; finally, a group of resistance values of the multiple resistors are determined according to the first relational expression and the second relational expression. It can be seen that, when the maximum output voltage value and the minimum output voltage value are definite, the group of resistance values of the multiple resistors vary with the reference voltage. Therefore, by adjusting the resistance values of the multiple resistors to fit with the varying reference voltage, it is ensured that the maximum output voltage value and the minimum output voltage value output by the dynamic voltage-adjusting circuit can remain unchanged when the reference voltage takes different values, that is to say, the output voltage values are within a same range. Therefore, there is no need to use multiple versions of software to adjust the output voltage of the dynamic voltage-adjusting circuit, which facilitates ease in software maintenance.
The voltage determining module 310 is configured to determine a reference voltage, a maximum output voltage value, and a minimum output voltage value of the dynamic voltage-adjusting circuit, where the maximum output voltage value is a voltage output by the dynamic voltage-adjusting circuit when a pulse width modulator inputs a minimum pulse voltage through a pulse input branch, and the minimum output voltage value is a voltage output by the dynamic voltage-adjusting circuit when the pulse width modulator inputs a maximum pulse voltage through the pulse input branch. The voltage determining module 310 sends the reference voltage, the maximum output voltage value, and the minimum output voltage value to the relational expression determining module 320.
The relational expression determining module 320 is configured to receive the reference voltage, the maximum output voltage value, and the minimum output voltage value; determine, according to the reference voltage and the maximum output voltage value, a first relational expression between the reference voltage, the maximum output voltage value, and multiple resistors in a feedback branch and the pulse input branch of the dynamic voltage-adjusting circuit; and determine, according to the reference voltage and the minimum output voltage value, a second relational expression between the reference voltage, the minimum output voltage value, and the multiple resistors. The relational expression determining module 320 sends the first relational expression and the second relational expression to the resistance value searching module 330.
The resistance value searching module 330 is configured to receive the first relational expression and the second relational expression, and determine, according to the first relational expression and the second relational expression, a group of resistance values of the multiple resistors.
Optionally, the pulse input branch includes a first resistor, a first capacitor, and a second resistor, where one end of the first resistor is connected to a second input end of a direct current/direct current converter, the other end of the first resistor is connected to one end of both the first capacitor and the second resistor, the other end of the first capacitor is grounded, and the other end of the second resistor is connected to the pulse width modulator; and the resistance value searching module 330 is configured to set a resistance value of the second resistor to a fixed value, and determine, according to the resistance value of the second resistor, the first relational expression and the second relational expression, a group of resistance values of the multiple resistors.
Optionally, the first resistor is formed by at least two resistors connected in series.
Optionally, the feedback branch includes a third resistor and a fourth resistor, where the third resistor and the fourth resistor divide a voltage output by an output end of the direct current/direct current converter, and input a divided voltage to the second input end of the direct current/direct current converter.
Optionally, the first relational expression is: V max=Vref(1+(R3/R4))+(Vref−Vpwm(min))(R3/(R1+R2)), where Vmax is the maximum output voltage value, Vref is the reference voltage, R1 is the first resistor, R2 is the second resistor, R3 is the third resistor, R4 is the fourth resistor, and Vpwm(min) is the minimum pulse voltage; the second relational expression is: V min=Vref(1+(R3/R4))+(Vref−Vpwm(max))(R3/(R1+R2)), where Vmin is the minimum output voltage value, Vref is the reference voltage, R1 is the first resistor, R2 is the second resistor, R3 is the third resistor, R4 is the fourth resistor, and Vpwm(max) is the maximum pulse voltage.
It should be understood that the apparatus shown in
The input device 410 is configured to input data.
The processor 420 controls an operation of the apparatus for determining resistance values of a dynamic voltage-adjusting circuit, and the processor 420 may also be called a CPU. The processor 420 may be an integrated circuit chip with a signal processing capability. The processor 420 may also be a general purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or another programmable logic device, a discrete gate or a transistor logic device, or a discrete hardware component. A general purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
The output device 430 is configured to output data.
The memory may include the read-only memory 440 and the random access memory 450, and provide instructions and data for the processor 420. A part of the memory may also include a non-volatile random access memory (NVRAM).
Components of the apparatus for determining resistance values of a dynamic voltage-adjusting circuit are coupled to each other through the bus 460, where the bus 460 may include a data bus, and may also include a power bus, a control bus, a status signal bus, and so on. For clarity purposes, various buses are all marked as the bus 460 in the figure.
The memory stores the following elements, executable modules or data structures, or their subsets, or their extension sets: operation instruction, including a variety of operation instructions and used to implement various operations; and operating system, including a variety of system programs and used to implement various basic services and process hardware-based tasks.
In this embodiment of the present invention, the processor 420 invokes an operation instruction stored in the memory (the operation instruction may be stored in an operating system), to perform the following operations: the processor 420 determines a reference voltage, a maximum output voltage value, and a minimum output voltage value of the dynamic voltage-adjusting circuit, where the maximum output voltage value is a voltage output by the dynamic voltage-adjusting circuit when a pulse width modulator inputs a minimum pulse voltage through a pulse input branch, and the minimum output voltage value is a voltage output by the dynamic voltage-adjusting circuit when the pulse width modulator inputs a maximum pulse voltage through the pulse input branch; the processor 420 determines, according to the reference voltage and the maximum output voltage value, a first relational expression between the reference voltage, the maximum output voltage value, and multiple resistors in a feedback branch and the pulse input branch of the dynamic voltage-adjusting circuit, and determines, according to the reference voltage and the minimum output voltage value, a second relational expression between the reference voltage, the minimum output voltage value, and the multiple resistors; and the processor 420 determines, according to the first relational expression and the second relational expression, a group of resistance values of the multiple resistors.
Optionally, the processor 420 sets a resistance value of a second resistor to a fixed value, and determines a group of resistance values of the multiple resistors according to the resistance value of the second resistor, the first relational expression, and the second relational expression.
Optionally, a first resistor is formed by at least two resistors connected in series.
Optionally, the feedback branch includes a third resistor and a fourth resistor, where the third resistor and the fourth resistor divide a voltage output by an output end of a direct current/direct current converter, and input a divided voltage to a second input end of the direct current/direct current converter.
Optionally, the first relational expression is: V max=Vref(1+(R3/R4))+(Vref−Vpwm(min))(R3/(R1+R2)), where Vmax is the maximum output voltage value, Vref is the reference voltage, R1 is the first resistor, R2 is the second resistor, R3 is the third resistor, R4 is the fourth resistor, and Vpwm(min) is the minimum pulse voltage; and the second relational expression is: V min=Vref(1+(R3/R4))+(Vref−Vpwm(max))(R3/(R1+R2)), where Vmin is the minimum output voltage value, Vref is the reference voltage, R1 is the first resistor, R2 is the second resistor, R3 is the third resistor, R4 is the fourth resistor, and Vpwm(max) is the maximum pulse voltage.
In this embodiment of the present invention, the apparatus for determining resistance values of a dynamic voltage-adjusting circuit determines a reference voltage, a maximum output voltage value, and a minimum output voltage value of the dynamic voltage-adjusting circuit; then determines, according to the reference voltage and the maximum output voltage value, a first relational expression between the reference voltage, the maximum output voltage value, and multiple resistors in a feedback branch and a pulse input branch of the dynamic voltage-adjusting circuit, and determines, according to the reference voltage and the minimum output voltage value, a second relational expression between the reference voltage, the minimum output voltage value, and the multiple resistors; and determines, according to the first relational expression and the second relational expression, a group of resistance values of the multiple resistors. It can be seen that, when the maximum output voltage value and the minimum output voltage value are definite, the group of resistance values of the multiple resistors vary with the reference voltage. Therefore, by adjusting the resistance values of the multiple resistors to fit with the varying reference voltage, it is ensured that the maximum output voltage value and the minimum output voltage value output by the dynamic voltage-adjusting circuit can remain unchanged when the reference voltage takes different values, that is to say, the output voltage values are within a same range. Therefore, there is no need to use software of multiple versions to adjust the output voltage of the dynamic voltage-adjusting circuit, and it is convenient to maintain software.
In this embodiment, a structure of a dynamic voltage-adjusting circuit involved in the method and apparatus for determining resistance values of a dynamic voltage-adjusting circuit may be as illustrated in
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in others. For example, the described apparatus embodiment is merely exemplary. For example, the module or unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. A part or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.
When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present application essentially, or the part contributing to the prior art, or all or a part of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform all or a part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes any medium that can store program code, such as a universal serial bus (USB) flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
Number | Date | Country | Kind |
---|---|---|---|
201410117739.0 | Mar 2014 | CN | national |