1. Field of the Invention
The present invention relates to a temperature detector and the method using the same, and more particularly to a temperature detector which uses a phase detector to make an adjustment and the method thereof.
2. Description of the Related Art
Most electronic appliances or devices are sensitive to variance of operating temperature. For example, the output performance of the digital camera is significantly affected by the operating temperature. Temperature variations also affect the operating point and speed of ICs. To facilitate more stable performance, most electronic appliances use a temperature detector to detect outside temperature and compensate signals accordingly.
Most well-known temperature detectors use voltage dividers. However, there is a trend to gradually reduce power voltage. In the design of voltage dividers, it is more difficult to deal with a low power voltage and a large range of input voltage levels. In addition, the manufacture of such temperature detector is also difficult.
The temperature detector in accordance with one embodiment of the present invention comprises a first current mirror, a second current mirror, a first capacitor, a second capacitor, a first comparator, a second comparator, a phase detector, a first transistor, a second transistor and a controller. The current of the first current mirror is temperature-dependent. The current of the second current mirror is temperature-independent. The first capacitor is connected to an output of the first current mirror. The second capacitor is connected to an output of the second current mirror. The input terminal of the first comparator is connected to the first capacitor and a reference voltage. The input terminal of the second comparator is connected to the second capacitor and the reference voltage. The phase detector is connected to the output of the first comparator and the output of the second comparator. The first transistor has a gate, an input terminal and an output terminal, wherein the gate is connected to the output of the first comparator, the input terminal is connected to the first capacitor and the output terminal is grounded. The second transistor has a gate, an input terminal and an output terminal, wherein the gate is connected to the output of the second comparator, the input terminal is connected to the second capacitor and the output terminal is grounded. The input of the controller is connected to the output of the phase detector, and the controller is configured to control the output current of the second current mirror.
The temperature detector in accordance with one embodiment of the present invention comprises a first current mirror, a second current mirror, a first pulse generator, a second pulse generator, a phase detector and a controller. The current of the first current mirror is temperature-dependent. The current of the second current mirror is temperature-independent. The first pulse generator is connected to an output of the first current mirror, wherein the pulse period of the first pulse generator is inversely proportional to the current value of the first current mirror. The second pulse generator is connected to an output of the second current mirror, wherein the pulse period of the second pulse generator is inversely proportional to the current value of the second current mirror. The phase detector is connected to the output of the first and second pulse generators. The input terminal of the controller is connected to the output of the phase detector and used to control the output current of the second current mirror, wherein if the output pulse of the first pulse generator appears earlier than the output pulse of the second pulse generator, the controller enhances the output current of the second current mirror; otherwise, the controller reduces the output current of the second current mirror.
The method of using a temperature detector in accordance with one embodiment of the present invention comprises the steps of: providing a temperature-dependent current from a first current mirror and a temperature-independent current from a second current mirror; generating a first pulse and a second pulse, wherein the period of the first pulse is inversely proportional to the current value of the first current mirror, and the period of the second pulse is inversely proportional to the current value of the second current mirror; increasing the output current of the second current mirror if the first pulse appears earlier than the second pulse; decreasing the output current of the second current mirror if the first pulse appears later than the second pulse; and calculating a temperature value in accordance with the current value of the second current mirror if the first pulse and the second pulse appear at substantially the same time.
The invention will be described according to the appended drawings in which:
a) shows an initial current increasing with the increase in temperature;
b) shows the relation of the output voltage of the first capacitor and second capacitor versus time; and
a) shows that the increase of an initial current corresponds to an increase in temperature. However, the initial current can also increase with the decrease of the temperature as known by persons skilled in the art.
The initial current i1 in accordance with the embodiment of the present invention can be enhanced to increase the difference between the current per degree Centigrade and the period such that the objective of greater accuracy can be realized. In addition, the phase detector 105 can provide a better accuracy. For example, if the difference between T1 and T2 is in a range of −20 ps and 40 ps, it is determined that the alignment is completed.
The above-described embodiments of the present invention are intended to be illustrative only. Numerous alternative embodiments may be devised by persons skilled in the art without departing from the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
097114788 | Apr 2008 | TW | national |