TEMPERATURE SENSOR CIRCUIT AND SYSTEM
A method and system for sensing the temperature of an integrated circuit are presented. The method compares a first current that is proportional to a temperature reading of the integrated circuit to a reference current. While the first current is greater than the reference current, a counter is incremented, and the reference current is increased in response to incrementing the counter. A system for sensing the temperature of an integrated circuit includes a first current source providing a source current to a node. The first current source is based on an input from a proportional to absolute temperature device. The system also includes a second current source providing a sink current to the node, with the amount of sink current being based on an input from a digital control module. The system also includes a comparator coupled to the node to provide a comparator signal that indicates a relationship between the source current and the sink current.
Latest SigmaTel, Inc. Patents:
- Flexible memory interface system for independently processing different portions of an instruction
- Decimation filter
- Power management for a battery-powered handheld audio device
- Buffer controller, codec and methods for use therewith
- Audio output driver for reducing electromagnetic interference and improving audio channel performance
The disclosure relates to a system and method for sensing temperature.
BACKGROUNDThe performance of many integrated circuit components varies according to the temperature of the component. For example, dynamic memory modules, such as DRAM, are refreshed at a higher rate as the temperature of the module increases. However, refreshing a dynamic memory module at a predetermined high rate can waste power if the rate is not demanded by the memory module temperature.
Furthermore, the temperature of an integrated circuit may vary over time Moreover, because power usage is often at a premium in an integrated circuit, it is beneficial if a system or method for measuring the temperature conserves power.
Accordingly, there is a need for an improved low power system and method that is capable of measuring the temperature in an integrated circuit.
BRIEF DESCRIPTION OF THE DRAWINGS
A method and system of sensing the temperature of an integrated circuit are presented. In a particular embodiment, the method compares a first current that is proportional to the temperature reading of an integrated circuit to a reference current. While the first current is greater than the reference current, a counter is incremented, and the reference current is increased in response to incrementing the counter. A digital code based on the sensed temperature may be provided to other components of the integrated circuit.
The temperature sensor 102 measures the temperature of the integrated circuit 100 and provides a digital temperature code (labeled TEMP CODE 1) based on the measured temperature to the memory refresh circuit 104. In a particular embodiment, the memory refresh circuit 104 determines a refresh rate for a dynamic memory module based on this digital temperature code. In the illustrated example, the temperature sensor 102 sends a second digital temperature code (labeled TEMP CODE 2) to the digital module 106. The digital module 106 may be any digital circuitry on the integrated circuit 100, including a microprocessor, data register, digital logic or other digital module. In a particular embodiment, the digital module 106 uses the second digital temperature code in connection with the performance characteristics of the integrated circuit. The second digital temperature code can differ in size from the first digital temperature code. In a particular embodiment, the first digital temperature code is 3 bits and the second digital temperature code is 4 bits.
Referring to
The temperature sensor 102 further includes a variable reference current source 208. The variable reference current source 208 is coupled to a digital control module 210. The digital control module 210 controls the level of current produced by the variable reference current source 208.
The temperature based current produced by the current source 202 is provided as a source current to a node 216. The current produced by the variable reference current source 208 is provided as a sink current to the node 216. A comparator 204 is coupled to the node 216 and the current source 202 to provide a comparator signal that indicates a relationship between the source current and the sink current. The comparator signal produced by the comparator 204 remains in a first state (herein referred to as a READ state) when the level of current produced by the current source 202 is greater than the level of current produced by the variable reference current source 208. The comparator signal produced by the comparator 204 is in a second state (herein referred to as a COMPLETE state) when the level of current produced by the current source 202 is less than the level of the variable reference current source 208. Thus the comparator 204 transitions from a READ state to a COMPLETE state to indicate a substantial match between the outputs of the current source 202 and the variable reference current source 208.
An inverter 206 is coupled to the comparator 204 to receive the comparator signal and produce an inverted comparator signal output. The inverted comparator signal output is coupled to an input of the digital control module 210.
The digital control module 210 is able to control the level of current produced by the variable reference current source 208. When the output of the comparator 204 transitions from the READ state to the COMPLETE state, the digital control module 210 completes a temperature measurement and provides first and second digital temperature codes as outputs TEMP CODE 1 and TEMP CODE 2. In a particular embodiment, the digital temperature codes are based on the value of a digital counter that is stopped upon the transition of the comparator 204 from the READ state to the COMPLETE state.
The digital control module 210 has a first clock input coupled to the clock 212 and a second clock input coupled to the clock 214. In response to the clock 212, the digital control module 210 provides a start signal to the PTAT device 200 and starts a temperature reading. In a particular embodiment, the digital control module 210 is in a powered down state prior to providing the start signal and returns to the powered down state after performing a temperature measurement and storing a temperature code.
The digital control module 210 responds to the output of the clock 212 to generate the digital temperature codes. The clock 214 can be divided and a divided clock can drive digital elements within the digital control module 210 to conduct the temperature measurement. In a particular embodiment, the clock 212 operates at a frequency of 10 Hz and the clock 214 operates at a rate of 24 MHz.
Referring to
The counter 300 is further coupled to the output of the inverter 206 that transmits a feedback signal derived from the output of the comparator 204. While the output of the comparator 204 is in the READ state, the counter 300 continues counting, at a rate determined by the output of the clock divider 312. In response to the output of the comparator 204 transitioning to a COMPLETE state, the counter 300 is stopped.
The counter 300 is coupled to a plurality of memory latch devices such as the latches 302, 304, 306 and 308 illustrated. In a particular embodiment, the memory latch devices 302, 304, 306 and 308 are flip-flops. After the counter 300 has stopped after performing a temperature measurement, the counter 300 output is stored in the flip-flops 302, 304, 306 and 308.
The digital control module 210 further includes a counter decoder 310. The counter decoder 310 has an input coupled to the output of inverter 206 and is responsive to the output of the counter 300. The counter decoder 310 is further coupled to the variable reference current source 208. If the output of the comparator 204 is in the READ state, the counter decoder 310 sends a signal to the variable reference current source 208, incrementally increasing the level of current produced by the variable reference current source 208 in a stepwise manner. The current level of the variable reference current source 208 may be increased by adding individual current sources to a current summing node. The current level of the variable reference current source 208 is incremented in a step by step manner in response to each increment of the counter 300 until the comparator 204 detects a substantial match between the current source 202 and the counter controlled variable reference current source 208. Upon detecting a match, the counter 300 is stopped and the counter value is stored as a digital code.
In the event that the integrated circuit 100 is in an extremely low or high temperature state, the counter decoder 310 may increase the output of the variable reference current source 208 to a maximum level. If the counter decoder 310 determines that this maximum level has been reached and the counter 300 has not stopped counting, the counter decoder 310 can output a digital temperature code to the counter 300. The counter 300 can then output this digital temperature code to memory latch devices 302, 304, 306 and 308. In a particular embodiment, this digital temperature code is selected from an overflow temperature code or an underflow temperature code depending on the amount of current generated by the current source 202.
Referring to
If, at step 404, the comparison indicates that the current level produced by the variable current source is greater than the current based on the PTAT reference, the counter is stopped, at step 408. The stopped counter value is then stored at step 410. In a particular embodiment, the counter is a 4 bit counter and the three least significant bits are provided as a first digital code and all four bits are provided as a second digital code. The digital codes are determined at step 412. In a particular embodiment, the codes are determined according to the following table:
In a particular embodiment, at step 414 the first digital code is provided to a memory refresh circuit and the second digital code is provided to a digital module at step 416.
Referring to
The switches 508, 510, 512 and 514 are controlled by the digital control module 210. The counter decoder 310 is coupled to the switches 508, 510, 512 and 514 through a plurality of control signals. As the counter 300 moves from its initial state to a final state through a step by step digital count sequence, the counter decoder 310 selectively applies additional control signals to close the switches 508, 510, 512 and 514 and activate the current sources 500, 502, 504 and 506, incrementally increasing the total current produced by the variable reference current source 208 corresponding to the digital count sequence provided by the counter 300.
After a temperature reading is complete, the digital control module 210 can open the switches 508, 510, 512 and 514, so that the variable reference current source 208 is in a proper initial state for subsequent temperature measurements. While only four current source elements 500, 502, 504 and 506 and four switches 508, 510, 512 and 514 have been shown for illustrative purposes, it should be understood that many additional current sources and switches may be used and controlled to provide greater resolution in temperature measurement and/or a wider range of temperature measurement.
The above disclosed subject matter is to be considered illustrative, and not restrictive, and the appended claims are intended to cover all such modifications, enhancements, and other embodiments which fall within the true spirit and scope of the present invention. Thus, to the maximum extent allowed by law, the scope of the present invention is to be determined by the broadest permissible interpretation of the following claims and their equivalents, and shall not be restricted or limited by the foregoing detailed description.
Claims
1. A temperature sensor circuit comprising:
- a first current source providing a source current to a node based on an input from a proportional to absolute temperature device;
- a second current source providing a sink current from the node, the amount of sink current based on a digital input from a digital control module; and
- a comparator coupled to the node to provide a comparator signal that indicates a relationship between the source current and the sink current.
2. The temperature sensor circuit of claim 1, further comprising an inverter coupled to the comparator to receive the comparator signal and to produce an inverted comparator signal output.
3. The temperature sensor circuit of claim 2, wherein the inverted comparator signal output is coupled to an input to the digital control module.
4. The temperature sensor circuit of claim 1, wherein the digital control module has a first clock input and a second clock input.
5. The temperature sensor circuit of claim 4, wherein the digital control module provides a first digital temperature code output that indicates one of a plurality of temperature ranges.
6. The temperature sensor circuit of claim 5, wherein the digital control module provides a second digital temperature code output that indicates one of a plurality of temperature ranges.
7. The temperature sensor circuit of claim 6, wherein the first digital temperature code output is a three bit value that identifies one of eight temperature ranges and the second digital temperature code output is a four bit value that identifies one of sixteen temperature ranges.
8. The temperature sensor circuit of claim 6, wherein the first digital temperature code output is provided to a memory refresh circuit and wherein the second digital temperature code output is provided to a digital module, and wherein the memory refresh circuit and the digital module are within the same semiconductor device as the temperature sensor circuit.
9. The temperature sensor circuit of claim 1, wherein the second current source includes a plurality of current source elements that may be selectively summed together and wherein the digital control module includes a plurality of control signal outputs coupled to the plurality of current source elements.
10. The temperature sensor circuit of claim 9, wherein the digital control module includes a counter and a counter decoder coupled to the counter, the counter decoder coupled to each of the plurality of control signals, wherein as the counter moves from an initial state to a final state through a step by step digital count sequence, the counter decoder sequentially applies additional ones of the control signals to activate additional current source elements, to incrementally increase a total current provided by the second current source in a step by step manner corresponding to the digital count sequence provided by the counter.
11. The temperature sensor circuit of claim 10, wherein the counter is stopped in response to a feedback signal derived from the comparator signal output.
12. The temperature sensor circuit of claim 11, wherein an output of the counter after the counter is stopped is stored in a memory latch device.
13. The temperature sensor circuit of claim 12, wherein the memory latch device is a plurality of flip-flops.
14. The temperature sensor circuit of claim 12, wherein first and second output codes are determined based on the output of the counter stored in the memory latch device.
15. The temperature sensor circuit of claim 14, wherein the first and second output codes are selected from a high temperature code and a low temperature code based on an output of the first current source.
16. The temperature sensor circuit of claim 10, wherein the digital control module provides a start signal to the proportional to absolute temperature device and provides a start signal to the counter.
17. The temperature sensor circuit of claim 16, wherein the digital control module is in a powered down state prior to providing the start signal.
18. The temperature sensor circuit of claim 17, wherein the digital control module returns to the powered down state after performing a temperature measurement and storing a temperature code.
19. The temperature sensor circuit of claim 17, wherein the start signal is provided in response to a first clock input.
20. The temperature sensor circuit of claim 19, wherein the counter is incremented in response to a signal derived from a second clock input.
21. The temperature sensor circuit of claim 20, wherein the first clock input operates at a frequency of 10 Hz and the second clock input operates at a higher frequency.
22. The temperature sensor circuit of claim 1, wherein the temperature sensor circuit uses an average of less than 10 microwatts of power.
23. The temperature sensor circuit of claim 1, wherein the comparator output changes from a first state to a second state to indicate a substantial match between the outputs of the first current source and the second current source.
24. A method comprising:
- comparing a first current to a reference current, wherein the first current is proportional to a temperature reading of an integrated circuit;
- incrementing a counter while the first current is determined to be greater than the reference current; and
- increasing the reference current in response to incrementing the counter.
25. The method of claim 24, further comprising:
- stopping the counter when the first current is determined to be greater than the reference current:
- storing a stopped counter value; and
- providing a first measured temperature code based on the stored counter value.
26. The method of claim 25, further comprising:
- providing the first measured temperature code to a memory refresh circuit.
27. The method of claim 26, further comprising:
- adjusting a memory refresh rate at the memory refresh circuit based on the first measured temperature code.
28. A semiconductor device comprising:
- a digital logic module including a control circuit having a first temperature input;
- a dynamic memory including a refresh rate control circuit having a second temperature input;
- a temperature sensor providing a first temperature code to be applied to the first temperature input and a second temperature code to be applied to the second temperature input, the temperature sensor comprising: a first current source that provides current proportional to a measured temperature; a reference current source; a comparator responsive to the first current source and the reference current source; and a control module including a digital counter, a first input of the control module coupled to an output of the comparator, wherein the control module increments the digital counter and increases the current provided by the reference current source based on the comparator output.
29. The semiconductor device of claim 28, wherein the control module increments the digital counter and increases the current provided by the reference current source when the comparator output indicates that the first current source is less than the reference current source.
30. The semiconductor device of claim 28, wherein the temperature sensor enters a powered up state in response to a first clock signal.
31. The semiconductor device of claim 30, wherein the temperature sensor enters a powered down state after providing the first and second temperature codes.
Type: Application
Filed: May 17, 2005
Publication Date: Nov 23, 2006
Applicant: SigmaTel, Inc. (Austin, TX)
Inventor: John Willis (Austin, TX)
Application Number: 11/130,946
International Classification: H01L 35/00 (20060101);