1. Technical Field
The disclosure generally relates to integrated circuits, and more particularly to a resistance measurement circuit and a measuring method employing the same used for temperature-compensating circuits.
2. Description of the Related Art
Integrated circuits (ICs) such as power circuits are designed with built in temperature-compensating circuits which allow satisfactory operation across a wide temperature range to compensate for the temperature differences of electronic components and also to stabilize the output voltages of the power circuits, for example. However, in use, to ensure the power circuits can work normally within a predetermined temperature range, different temperature-compensating resistors in the temperature-compensating circuit need to be manually assembled or replaced one by one to establish a desired resistor with matching resistance, which may waste testing time and result in high costs and low accuracy.
Therefore, there is room for improvement within the art.
Many aspects of a resistance measurement circuit and a measuring method employing the same can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the resistance measurement circuit and measuring method employing the same. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views. Wherever possible, the same reference numbers are used throughout the drawings to refer to the same or like elements of an embodiment.
The CPU power circuit 200 includes a pulse width modulation (PWM) controller 210, a thermistor RNTC, an induction coil Lo, a first resistor R, a second resistor DCR, a capacitor C, and an output terminal VOUT. In this embodiment, the PWM controller 210 includes an output port OUT, a first detection port T, a second detection port S−, and a third detection port S+. The thermistor RNTC, with a resistance varying with temperature, is electrically connected between the first detection port T and ground. The second detection port S− and the third detection port S+ are electrically connected to opposite ends of the capacitor C to measure voltage of the capacitor C.
An inductor is preferred as the induction coil Lo, and the second resistor DCR can be a direct current (DC) resistor. The output port OUT, the first resistor R, the capacitor C and the output terminal VOUT are electrically connected in series in that order, and the output port OUT, the induction coil Lo, the second resistor DCR and the output terminal VOUT are electrically connected in series in that order. Thus, the PWM controller 210 can adjust the output voltage of the output terminal VOUT according to the measured voltage of the capacitor C, and the output terminal VOUT of the PWM controller 210 thus has the desired output voltage value.
The resistance measurement circuit 100 includes an analog to digital converter (ADC) 10, a signal control module 20, a switch 22, a potentiometer 30, and a display module 40. The ADC 10, the switch 22, the potentiometer 30 and the display module 40 are electrically connected to the signal control module 20. The potentiometer 30 is electrically connected to the thermistor RNTC, the first detection port T and a power supply unit VCC. The ADC 10 is further electrically connected to the output terminal VOUT.
In this embodiment, the ADC 10 can be a 24-bit analog-to-digital microchip and includes an input port VIN, a clock port SCL, a data port SDA, and a control port CS. The input port VIN electrically connects to the output terminal VOUT of the CPU power circuit 200 to get the output voltage from the output terminal VOUT. The clock port CSL, the data port SDA and the control port CS electrically connect to the signal control module 20. The ADC 10 converts an output analog voltage from the output terminal VOUT into a digital signal proportional to the magnitude of the voltage, and the digital signal is transmitted to the signal control module 20 via the data port SDA.
The signal control module 20 can be a microcontroller and includes an enable pin RC1, a control pin RC2, a clock pin RC3, a data pin RC4, and a group of input/output (I/O) pins RB2, RB3, RB4, RB5, RB6 and RB7. In this embodiment, the enable pin RC1 is electrically connected to the switch 22, so that when the switch 22 is switched on, the enable pin RC1 activates the signal control module 20. The control pin RC2 is electrically connected to the control port CS of the ADC 10 to control and enable the ADC 10 to record the output voltage of the output terminal VOUT at certain intervals (e.g., 5 seconds or 10 seconds). The clock pin RC3 is electrically connected to the clock pin SCL of the ADC 10. The data pin RC4 is electrically connected to the data port SDA of the ADC 10. The I/O pins RB2-RB7 are electrically connected to the potentiometer 30.
The signal control module 20 compares two consecutive digital signals transmitted from the ADC 10 corresponding to the output voltages of the output terminal VOUT to obtain a voltage difference according to the comparison, and further determines whether or not the voltage difference is within a predetermined voltage range (e.g., between 0.8 mV and 1.2 mV). If the voltage difference is outside the predetermined voltage range, the signal control module 20 transmits a command signal to the potentiometer 30 to adjust the resistance of the potentiometer 30, to further control and adjust the output voltage of the output terminal VOUT. If the current voltage difference is within the predetermined voltage range, the signal control module 20 records and stores the current resistance of the potentiometer 30. If the voltage difference is still within the predetermined voltage range within a certain period of observational time (e.g., 10 or 15 minutes), the signal control module 20 records and stores the current resistance of the potentiometer 30 which is determined as the desired resistance of a temperature compensation resistor in the CPU power circuit 200. Then, a temperature compensation resistor having the desired resistance determined by the resistance measurement circuit 100 may be substituted for the potentiometer 30 and be electrically connected between a power supply unit VCC and a node between the thermistor RNTC and the first detection port T of the PWM controller 210.
In this embodiment, the potentiometer 30 is preferred to a digital potentiometer that carries out the functions of a variable resistor or rheostat and has a adjustable resistance. The potentiometer 30 includes a group of address pins A0, A1, A2 and A3, two data pins SD and SC, and two measurement ports RH1 and RH2. The address pins A0-A3 electrically and respectively connect the I/O pins RB7-RB4 in that order, so that the signal control module 20 can communicate with the potentiometer 30 via the address pins A0-A3, and initialize the potentiometer 30. The data pins SD and SC are electrically connected to the I/O pins RB2 and RB3, respectively, to receive the command signal from the signal control module 20 and send an instantaneous feedback signal to the signal control module 20.
The measurement port RH1 is electrically connected to the power supply unit VCC to power the potentiometer 30, the measurement port RH2 is electrically connected to the node between the thermistor RNTC and the first detection port T of the PWM controller 210. In this embodiment, when the voltage of the thermistor RNTC detected by the first detection port T is equal to a preset voltage of the PWM controller 210, the PWM controller 210 is activated, and changes the output voltage of the output terminal VOUT to achieve a desired output voltage.
The display module 40 can be a touch screen and is electrically connected to the signal control module 20. The display module 40 displays the resistance values of the potentiometer 30 as the values are applied.
Moreover, a loudspeaker can be substituted for the display module 40. The loudspeaker can produce sound to indicate the resistance(s) of the potentiometer 30 as the values change.
Further referring to
In step S1, the switch 22 is switched on, the signal control module 20 is activated, and starts to measure the desired resistance of the temperature-compensating resistor during a testing time (e.g., 10 minutes or 15 minutes).
In step S2, the ADC 10 receives an output voltage V1 from the output terminal VOUT of the CPU power circuit 200, and converts the output voltage V1 to a first digital signal which is transmitted to the signal control module 20 via the data port SDA.
In step S3, the signal control module 20 controls and enables the ADC 10 to receive and record another output voltage V2 from the output terminal VOUT at certain intervals (e.g., 5 seconds or 10 seconds), and the ADC 10 converts the output voltage V2 to a second digital signal which is transmitted to the signal control module 20 via the data port SDA.
In step S4, the signal control module 20 compares the first digital signal with the second digital signal respectively corresponding to the output voltage V1 and the output voltage V2 to establish any voltage difference (which might be 0.8 mV or 1.2 mV for example), according to the comparison to determine whether or not the voltage difference is within the predetermined voltage range. If the voltage difference is within the predetermined voltage range, then the method proceeds to step S5; otherwise, the method proceeds to step S6.
In step S5, the signal control module 20 stores the current resistance of the potentiometer 30 and displays that information on the display module 40 in real-time, then the method proceeds to step S7.
In step S6, the signal control module 20 transmits a signal to adjust the resistance of the potentiometer 30, to control and adjust the output voltage of the output terminal VOUT, and then step S2 is repeated.
In step S7, the signal control module 20 determines whether or not the testing time has finished (e.g., after 15 minutes). If the observation period within the testing time has been reached, then the method proceeds to step S8; otherwise, the step S2 is repeated.
In step S8, the signal control module 20 records and stores the current resistance of the potentiometer 30, having determined that resistance value as the desired resistance of a temperature-compensating resistor in the CPU power circuit 200, and the value of the current resistance of the potentiometer 30 is displayed on the display module 40 in real-time.
In summary, in the resistance measurement circuit 100 of this disclosure, the ADC 10 can obtain a number of output voltages from the output terminal VOUT, and the signal control 20 automatically compares two consecutive output voltages. The signal control module 20 then adjusts the potentiometer 30 appropriately, to further control and change the output voltage of the output terminal VOUT, which can improve the accuracy of the output voltage. Moreover, the measured resistance of the potentiometer 30 can be used as the desired resistance of a temperature-compensating resistor in the CPU power circuit 200 or other power circuits, so the need to frequently and manually assemble and substitute different temperature-compensating resistors for testing in the power circuits is entirely avoided.
In the present specification and claims, the word “a” or “an” preceding an element does not exclude the presence of a plurality of such elements. Further, the word “comprising” does not exclude the presence of other elements or steps other than those listed.
It is to be understood, however, that even though numerous characteristics and advantages of the exemplary disclosure have been set forth in the foregoing description, together with details of the structure and function of the exemplary disclosure, the disclosure is illustrative only, and changes may be made in detail, especially in the matters of shape, size, and arrangement of parts within the principles of exemplary disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
201110108626.0 | Apr 2011 | CN | national |