Temperature sensor device, light sensor device, mobile computing device including the device, and method of using the device

By using a ratiometric measurement of a current integrating modulator and matched resistors in a temperature sensor device, the issues of process variation and temperature drift are addressed, enabling a more accurate and economical temperature measurement.

CN113056658BActive Publication Date: 2024-09-24AMS INTERNATIONAL AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980057054.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-08-29
Filing Date
2019-08-19
Publication Date
2024-09-24
Estimated Expiration
2039-08-19

AI Technical Summary

Technical Problem

Existing temperature sensor devices are susceptible to process variations during manufacturing, resulting in less accurate temperature measurements, and operating temperatures may introduce additional variations that are difficult to compensate for.

Method used

Using a current integrating modulator combined with a temperature sensitive element and a matched resistor, process variations and temperature drift are eliminated through ratiometric measurements, resulting in a digital signal representing absolute temperature.

Benefits of technology

More accurate temperature measurement is achieved, the manufacturing cost of the temperature sensor device is reduced, and operating accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113056658B_ABST
    Figure CN113056658B_ABST
Patent Text Reader

Abstract

A temperature sensor device comprises a current integrating modulator (10) which provides a count value (ADC_COUNT) according to a current supplied to its input terminal (11). A temperature sensitive element (20) comprises a resistor (223) to generate a current depending on a temperature (IPTAT). First and second switches (31, 32) alternately connect the temperature sensitive element (20) and another resistor (40) to the input terminal (11) of the current integrating modulator (10). The temperature sensor device can be combined with an ambient light sensor to share the current integrating modulator (10).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a temperature sensor device. In particular, the present disclosure relates to a temperature sensor device, which includes a current integrating modulator and a temperature sensitive element for generating a current that depends on temperature. The present disclosure also relates to a light sensor device, which includes a temperature sensor device and a photodiode for generating a photocurrent to be measured. The present disclosure also relates to a mobile computing device including a light sensor device. The present disclosure also relates to a method of measuring temperature and to a method of measuring ambient light, the method of measuring ambient light including a method of measuring temperature. Background Art

[0002] Temperature sensors are widely used in electronic devices to measure temperature and control the operation of the device based on the determined temperature. The temperature sensor generates a signal (such as a temperature-dependent current) that depends on the temperature and changes with the change of temperature. The temperature-dependent current can be a current proportional to the absolute temperature (IPTAT). The temperature-dependent current is converted into a digital signal, which can be further used to control the electronic device or to be output from the device for display or can be used to control other devices. The current digital conversion can be performed by an analog-to-digital modulator that performs a current integral modulation process. Temperature measurement can be combined with the measurement of other physical entities such as ambient light, thereby sharing the same current integral modulator circuit. A combined ambient light and temperature sensor is described in US Patent US 9,146,162 B2.

[0003] Temperature measurements using current-integrating modulators and IPTAT temperature-dependent current sources can provide sufficient accuracy for many technical applications. However, the manufacturing process for IPTAT is subject to inherent process variations, so that the manufactured temperature sensor device may require extensive calibration processing or the determined temperature value may not be very accurate. In addition, the operating temperature of the temperature measurement circuit may introduce additional variations that are difficult to compensate.

[0004] An object of the present disclosure is to provide a temperature sensor device which avoids the above-mentioned disadvantages.

[0005] Another object of the present disclosure is to provide a temperature sensor device that measures temperature more accurately.

[0006] Still another object of the present disclosure is to provide a temperature sensor device capable of accurately measuring temperature at a relatively low cost.

[0007] Yet another object of the present disclosure is to provide a light sensor device that operates more accurately.

[0008] Yet another object of the present disclosure is to provide a mobile computing device including a light sensor device and a temperature sensor device.

[0009] Yet another object of the present disclosure is to provide methods of operating a temperature sensor device and a light sensor device. Summary of the invention

[0010] According to the present disclosure, one or more of the above objects is achieved by a temperature sensor device according to the features of claim 1 of the present invention.

[0011] According to one embodiment, a temperature sensor device includes a current integrating modulator having an input terminal for receiving an input current and an output terminal for providing a count value, the count value depending on the input current supplied to the input terminal. The current integrating modulator performs an analog-to-digital conversion of an analog current into a digital signal by using an integral modulation process. The current integrating modulator integrates the input current onto an integrating capacitor. When the capacitor charge or voltage exceeds a threshold, a reference charge is subtracted from the integrating capacitor of the trigger counter. The integration operation is continued during a predetermined time window. Both the subtraction event and the count event occurring within the time window indicate the amount of the input current.

[0012] The temperature sensitive element generates a current that is dependent on temperature, wherein an increased temperature generates an increased current. In practice, the current may be proportional or substantially proportional to the absolute temperature. The temperature sensitive element may include an electronic component (such as a transistor) and at least one resistor that determines the current.

[0013] According to the present disclosure, another resistor is provided. A corresponding first switch and a second switch are provided, which connect the temperature sensitive element and the other resistor to the input terminal of the current integrating modulator. The switch determines that only one of the temperature sensitive element and the other resistor provides current to the modulator input terminal. The first switch and the second switch are operated alternately so that the current from the temperature sensitive element or the current from the other resistor is input to the input terminal of the current integrating modulator.

[0014] In conventional temperature sensor devices, it has been shown that the value of the resistor in the temperature sensitive element is affected by manufacturing process variations. In fact, it is difficult to produce resistors with precise absolute resistance values ​​in semiconductor circuit manufacturing. Process variations during integrated circuit manufacturing can lead to relatively large variations in the resistance of the manufactured resistors. A similar situation applies to capacitors and, therefore, to the frequency of oscillators used on integrated circuits, especially when the oscillator is an RC oscillator provided on the semiconductor chip. In addition, the parameters of the components within the integrated circuit exhibit temperature drift, so that their absolute values ​​vary with temperature changes.

[0015] According to the present disclosure, a temperature sensor device includes a resistor in a temperature sensitive element and another resistor arranged in parallel with the temperature sensitive element. According to the principle of integrated circuit manufacturing, it is very simple to directly produce resistors with matching resistance values. Although its absolute resistance value may change according to the change of process, the relative relationship of its resistance value can be controlled quite accurately. Therefore, the ratio of the resistance value of a resistor and another resistor implemented in the same integrated circuit or arranged on the same integrated circuit according to the present disclosure can be well controlled. The device according to the present disclosure determines a count value from a temperature sensitive element (including a resistor) and another count value from another resistor, and a digital value representing absolute temperature is obtained from the ratio metric measurement of the two count values. Because the temperature characteristics of the two resistors when the two resistors are located on the same integrated circuit are the same, the temperature drift is also eliminated by the ratio metric measurement.

[0016] According to one embodiment, the other resistor and the resistor of the temperature sensitive element preferably have the same resistance. Even if there are inevitable process variations during the integrated circuit manufacturing, it is relatively simple to generate two resistors with the same resistance, because when the resistors are manufactured in the same manufacturing process using the same manufacturing steps, the relative matching of the resistors is relatively good.

[0017] According to one embodiment, the other resistor and the resistor of the temperature sensitive element can be manufactured at the same time so that they are arranged on the same integrated circuit and benefit from the matching of the resistors manufactured during the same manufacturing process. Generally, it is acceptable to use resistors of different resistances, provided that they are manufactured on the same integrated circuit and the ratio between the resistor and the other resistor is known. Manufacturing resistors on the same integrated circuit means using the same process steps to manufacture the resistor and the other resistor at the same time. Since the matching of different resistors on the same integrated circuit is relatively good, the influence of the absolute change of the resistor value is eliminated during the ratiometric measurement. Generally, the resistors can have any predetermined relationship of resistance value, which includes the same resistance or integer multiples of resistance or any other ratio of resistance known and determined by the circuit designer. The resistance value ratio of the resistor in the temperature sensitive element to the other resistor can include 1:1, 1:2, ..., 1:N, where N is an integer or real number. The resistance of the resistor of the temperature sensitive element can be greater than the resistance of the other resistor, or it can also be less than the resistance of the other resistor, depending on the choice of the circuit designer.

[0018] According to one embodiment, the temperature sensitive element is connected to the input terminal of the current integration modulator through a first switch, and the other resistor is connected to the input terminal of the current integration modulator through a second switch. The first switch and the second switch are controlled to be turned on alternately. When the temperature sensitive element is connected to the input terminal of the current integration modulator, the other resistor is disconnected from the input terminal, and vice versa. The current integration modulator obtains a count value of the current supplied by the temperature sensitive element and another count value of the current supplied by the other resistor. A digital signal representing the absolute temperature is derived from the two count values ​​obtained. Since the temperature sensitive element includes a resistor that matches the other resistor, although process variations may cause absolute resistance value variations, good relative matching can still be achieved between resistors on the same integrated circuit, thereby eliminating process variations from the final digital temperature value.

[0019] According to one embodiment, a calculator is connected downstream of the current integrating modulator. The calculator generates a value representing the temperature from count values, which are generated from the temperature sensitive element and from another resistor by the current integrating modulator. The calculator can be integrated on the same integrated circuit as the temperature sensor device including the current integrating modulator. The calculator can also be implemented by a microprocessor, in which case the microprocessor can be separated from the chip containing the temperature sensor and the modulator. The calculator can perform a calculation that determines a digital value representing the absolute temperature from a ratiometric measurement that conveys the ratio of the count values ​​from the absolute temperature sensor and the modulation result of the other resistor. According to one embodiment, the calculation can include a linear regression that assumes a linear relationship between the ratio of the count values ​​and the temperature. Other second-order or higher-order relationships may also be useful.

[0020] According to one embodiment, the temperature sensitive element may include a bandgap circuit, which includes at least two circuit paths, one of which includes a transistor and a resistor, and the other includes another transistor. The transistors may have different sizes, specifically, different collector widths so that the transistors supply different currents. The difference in size may be very large, such as N:1, where the collector width of the transistor connected to the resistor is N, and the collector width of the other transistor is 1. The input of the amplifier is connected to the two circuit paths of the bandgap device, and the output of the amplifier controls a current mirror circuit that supplies current to the input of the current integrating modulator. The output path of the current mirror is coupled to the input terminal of the current integrating modulator. The combination of the bandgap device and the amplifier that regulates the current from the different voltages in the bandgap device path generates a current that is substantially proportional to the absolute temperature, that is, a current proportional to absolute temperature (IPTAT) device is generated.

[0021] According to one embodiment, the output path of the temperature sensitive element generating the IPTAT current comprises a MOS transistor having a drain-source path connected in series with a first switch connected to an input terminal of a current integrating modulator. Another resistor operating in parallel with the temperature sensitive element is connected in series with a second switch connected to an input terminal of the current integrating modulator. Therefore, the series connection of the MOS transistor with the first switch and the series connection of the other resistor with the second switch are connected in parallel with each other. The parallel connection is connected to the input terminal of the current integrating modulator and is connected to the ground potential. Compared with the rest of the circuit, the additional consumption of the other resistor and the second switch is almost negligible. Compared with the improvement in accuracy, the area required for implementation in an integrated circuit is very small. The additional operating power consumed by the resistor and the corresponding current integrating modulation process are reasonable. Therefore, the improvement in accuracy measured by ratiometric measurement is achieved by an almost negligible semiconductor area on an integrated circuit, and only reasonable power consumption is required for the additional measurement of the current (of the other resistor and the downstream connected calculator).

[0022] According to one embodiment, the current integrating modulator may be a first-order integrating modulator. Higher-order modulators are also useful. A first-order current integrating modulator includes an integrating amplifier and an integrating capacitor, which connects one of the inputs and the output of the amplifier to form an analog integrator. A comparator is connected downstream of the integrating amplifier or to the output of the integrating amplifier. The comparator compares the integrator output with a threshold voltage. The comparator output drives a latch connected downstream of the comparator. The latch operates at a determined oscillation frequency, which may be in the megahertz range, such as 2 MHz. The oscillation frequency may be provided by an on-chip RC oscillator so that the oscillation frequency may vary with process variations and may exhibit temperature drift. Using ratiometric measurements as described above, variations in the oscillation frequency are eliminated. A controller generates a plurality of control signals to operate switches within the modulator, the switches including a first switch and a second switch to connect a temperature sensitive element and another resistor to the modulator input, respectively. The controller generates control signals in response to output signals from the latch.

[0023] According to one embodiment, a temperature sensor device can be used in an ambient light sensor, which includes a photodiode to generate a current that depends on ambient light. The current related to ambient light is input to the same current integrating modulator that operates the temperature sensor device. Therefore, the combined measurement of ambient light and temperature uses substantially the same components, such as the same current integrating modulator. Having an accurate temperature sensor according to the present disclosure on an ambient light sensor integrated circuit allows compensation for the offset of the integrating amplifier, which offset causes the presence of a dark current of the integrator when no light signal is input to the modulator. In operation, a temperature measurement can be performed before the ambient light measurement to perform an offset calibration or auto-zeroing of the integrating amplifier input. Since the offset voltage of the integrating amplifier depends on temperature, an accurate temperature measurement can improve the offset compensation of the integrating amplifier and improve the auto-zeroing. Preferably, the temperature measurement is performed before each cycle of the auto-zeroing process and the ambient light measurement. Since the accurate auto-zeroing procedure requires almost no additional implementation space on the integrated circuit and only very moderate additional power consumption, the combined temperature and ambient light sensor circuit according to the present disclosure provides accurate temperature measurement and accurate ambient light measurement.

[0024] According to one embodiment, the field of application of ambient light sensors including temperature sensors is in the field of mobile computing, which includes mobile communication devices such as smartphones and tablets. The light sensor device according to the present disclosure is included in the mobile communication device to measure the ambient light and control the brightness of the display screen of the computing device (such as smartphones and tablets) to provide a convenient display appearance to the user. If the measured amount of ambient light is high, the brightness of the display screen of the mobile computing device is increased; if the measured amount of light is low, the brightness of the display screen is reduced. This increases the usability of the device to the user and, as mentioned above, only a modest additional cost is required.

[0025] One or more of the above objects are also achieved by a method for measuring temperature or a method for measuring ambient light according to the features of claims 12 and 13, respectively.

[0026] According to one embodiment, a method of measuring temperature includes generating a temperature-dependent current using a resistor to determine a count value through a current integration modulation process. Another current is generated through another resistor to determine another count value through another current integration modulation process. The generated count value is used to determine a value indicative of the temperature.

[0027] According to one embodiment, the temperature measurement process is performed by a current integration modulation process using an integrating amplifier. The integrating amplifier inherently has an offset that causes a dark current to pass through the integrator when no light is present at the photodiode. Offset compensation of the integrating amplifier is performed using temperature measurements. A photocurrent generated in response to ambient light received by the photodiode is then generated and input to the current integration modulation process using an integrating amplifier that is offset compensated using accurate temperature measurements. The current integration modulation process generates a count value representing the received ambient light, which has enhanced accuracy due to enhanced offset compensation based on accurate temperature measurements.

[0028] It should be understood that the above general description and the following detailed description are only exemplary and are intended to provide an overview or framework for understanding the nature and characteristics of the claims. The accompanying drawings are intended to provide a further understanding and are included in and constitute a part of this specification. The accompanying drawings illustrate one or more embodiments and, together with the description, are used to explain the principles and operations of the various embodiments. The same elements in different figures of the drawings are represented by the same reference numerals. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In the attached picture:

[0030] Figure 1 shows a detailed circuit diagram of a combined temperature and ambient light sensor device according to the principles of the present disclosure;

[0031] Figure 2 Shown includes Figure 1 A block diagram of a mobile computing device in circuit form; and

[0032] Figure 3 A flow chart of a method of measuring ambient light is shown, the method of measuring ambient light including a method of measuring temperature. DETAILED DESCRIPTION

[0033] The present disclosure will be described more fully below with reference to the accompanying drawings showing embodiments of the present disclosure. However, the present disclosure can be implemented in many different forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure will fully convey the scope of the present disclosure to those skilled in the art. The accompanying drawings are not necessarily drawn to scale, but are configured to clearly illustrate the present disclosure.

[0034] Figure 1The combined ambient light sensor (ALS) and temperature sensor device in the embodiment of the present invention comprises a current integrating modulator 10, a temperature sensor device 20, a resistor 40 and a photodiode 50. The current integrating modulator 10 comprises an input terminal 11 to which the current to be integrated is supplied. The terminal 11 is connected to the input of an operational amplifier OPAMP. The amplifier OPAMP is configured as an integrator, wherein an integrating capacitor CF is connected between its negative input "-" and its output terminal 12. The negative input terminal of the amplifier OPAMP carries an integrated voltage Vforce present at a summing node 13 of the integrator. The positive input "+" of the amplifier OPAMP is supplied with a reference voltage VCM. The output 13 of the amplifier OPAMP drives the integrating capacitor CF to achieve Vforce=VCM+ / -Voffset, where Voffset is the offset voltage of the operational amplifier OPAMP.

[0035] The output terminal 12 of the operational amplifier OPAMP is connected to the positive input "+" of the comparator COMP. The reference input or negative input "-" of the comparator COMP is supplied with a reference voltage VREF. The output 14 of the comparator COMP is the data input of the latch 15, which is controlled by the clock signal CLK1. The clock signal can be generated on the chip by an RC oscillator with an oscillation frequency of about 2MHz. The output Q of the latch 15 carries the signal LOUT and controls the clock input Clk of the counter 16.

[0036] The latch output signal LOUT is also supplied to the controller 17. The controller 17 generates control signals to operate the modulator 10, which includes corresponding control logic and circuits to generate several clocks Φ1, Φ2, Φ3, Φ4, Φ5 used in the circuit.

[0037] The input node 11 is also connected to a reference capacitor CREF which is charged with a reference voltage VREF. During operation of the device, the switch connected to the reference capacitor CREF is controlled so that when the output signal OPOUT of the operational amplifier OPAMP exceeds the threshold VREF at the comparator COMP, the reference charge is subtracted from the integration capacitor CF. During a predetermined integration time window, the number of reference charge packets from the reference capacitor CREF subtracted from the integration capacitor CF is counted in the counter 16 and supplied as a count value ADC_COUNT at the output 18 of the counter 16. The count value ADC_COUNT represents the amount of current supplied to the input 11.

[0038] The temperature sensor device 20 supplies a current proportional to the absolute temperature IPTAT at a terminal 21. The terminal 21 is connected to the input terminal 11 of the modulator 10 via a switch 31 controlled by a control signal Φ4. The temperature sensor device 20 comprises a bandgap device consisting of two bipolar PNP transistors 221, 222 connected as a diode device, wherein the collector terminals and base terminals of the transistors 221, 222 are connected to each other. The relationship of the transistor sizes (i.e., the relationship of the collector widths of the transistors 221, 222) is N:1, so that the transistor 221 drives N times the current of the transistor 222. The emitter of the transistor 221 is connected to the resistor 223. The emitter path of the resistor 222 does not include a resistor. The transistors 221, 222 and the resistor 223 form a bandgap device.

[0039] The temperature sensor 20 includes an amplifier 230 whose input is connected to the resistor 223 and the collector of the transistor 222. The amplifier 230 controls the PMOS transistors 241, 242 connected to the circuit path of the bipolar transistors 221, 222. In addition, the output of the amplifier 230 controls the transistor 251, which supplies the current mirrored by the current mirrors 252, 253 to the output 21 of the temperature sensor circuit 20. Basically, the amplifier 230 generates an output voltage V Bias1 , which output voltage controls the current through transistor 251, which is mirrored through transistor 252 to transistor 253 forming the output path of the current mirror. The drain-source path of transistor 253 supplies a current proportional to the ambient temperature IPTAT at terminal 21. During operation, when the control signal Φ4 is activated, the current IPTAT is supplied to the input 11 of the current integrating modulator 10, so that the modulator 10 generates a count value ADC_COUNT, which represents the amount of current supplied to the terminal 11.

[0040] After measuring the temperature-dependent current IPTAT, the switch 31 is opened and the switch 32 is closed by the control signal Φ3, so that the current is measured through the resistor 40, thereby providing another count value ADC_COUNT for the current through the resistor 40. It should be noted that the resistors 223 and 40 are manufactured so that they have matching resistance values. For example, the resistors 223 and 40 can have the same resistance value R. This is achieved by manufacturing the resistors 223 and 40 using the same process steps in the same manufacturing process, wherein the resistors 223 and 40 are arranged on the same integrated circuit chip. It is obvious to those skilled in the art of semiconductor circuit manufacturing that a predetermined matching factor between different ohmic resistors can be easily achieved. In fact, the resistors 223 and 40 can have the same resistance value R. It is also possible to manufacture the resistors 223 and 40 so that they have a known resistance value ratio. The resistance value ratio of the resistors 223 and 40 can be N: 1, ..., 1: 1, 1: 2, ... 1: N (N is an integer or a real number). This ratio is a well controlled parameter during the fabrication of the circuits, as long as they are integrated on the same chip.

[0041] Figure 1 The circuit shown performs two measurements. The first measurement is based on the current IPTAT, and the corresponding count value ADC_COUNT is C IPTAT Another measurement, the second measurement, is based on resistor 40, using the same modulator 10 to generate a corresponding count value C IR The ratio of these two count values ​​cancels out and eliminates any errors in the absolute values ​​that may be caused by process variations and temperature drifts of components used in the circuit (particularly the resistance values ​​of resistors 223, 40). In addition, variations in the capacitance values ​​of related capacitors (such as CREF and CF) and the operating clock signal CLK1 are eliminated. IPTAT and C IR The count value can be expressed using the following calculation:

[0042]

[0043] Where, ΔVBE=V BE1 -V BE2 , V BE1 is the base-emitter voltage of transistor 222, and V BE2 is the base-emitter voltage of the transistor 221 , and where R is the resistance value of the resistor 223 .

[0044] When the input current is IPTAT, the modulator counts (C IPTAT ) is given by

[0045]

[0046]

[0047] When the input current is the resistor current (IR), the modulator counts (C IR ) is given by

[0048]

[0049]

[0050] The parameter Atime represents the integration time window and is related to the clock signal CLK1 (eg, 2 MHz).

[0051] C can be calculated from the ratio metric using the linear relationship using equations (3) and (5) IPTAT / C IR Calculate the temperature:

[0052]

[0053] T=A*C ratio -B (7)

[0054] Formula (7) is a linear relationship in this example. Any other higher order (second order, third order, etc.) relationship may also be used. The following Tables 1 and 2 describe the relationship between the temperature range of -40°C and 80°C that causes C ratio The current value C IPTAT and C IR Simulation performed.

[0055] Table 1

[0056]

[0057] Table 2

[0058]

[0059] The simulation results show that using Figure 1 The calculation shows the typical case, the worst power case, and the worst speed case. Assuming that the ratiometric calculation of the temperature according to formula (7) and formula (6) shows linear behavior, the same slope can be applied to all temperature samples and the intercept can be calculated. The simulation results show that the temperature error is -1.61°C to 1.51°C, so the temperature measurement is very accurate.

[0060] Back again Figure 1, a calculator 60 is provided, which is connected to the output of the counter 16. The calculator 60 performs calculations according to formula (7) and generates a digital value TEMP, which represents the value of Figure 1 The temperature at which the circuit is measured.

[0061] Figure 1 The circuit can also be used to measure ambient light impinging on the photodiode 50. The photodiode 50 generates a photocurrent IPD which is supplied to the input terminal 11 of the current integrating modulator 10 when the control signal Φ5 is activated and closes the corresponding switch 33. The photocurrent IPD is integrated with the same current integrating modulator 10 that performs the temperature measurement. In order to perform an accurate light measurement, the dark current at the operational amplifier OPAMP must be compensated when no light impinges on the diode 50. This offset compensation generates an offset trim value OSTRIM[8:0] which is forwarded to the operational amplifier OPAMP as a correction value. The offset trim value depends on the temperature of the device so that the accurate ratiometric temperature measurement provided by the temperature sensor device 20 and the additional resistor 40 is forwarded to the offset compensation process, thereby improving the accuracy of the automatic zeroing process that generates the offset compensation value OSTRIM[8:0].

[0062] Figure 2 Depicted Figure 1 A technical application of a combined temperature and ambient light sensor is shown. Figure 2 A mobile computing device 201, such as a tablet or smartphone, is shown. The device 201 includes a display screen 202 that displays information generated by a processor 204. A combined temperature and ambient light sensor 203 controls the brightness of the display screen 202 in response to an ambient light sensing function 206 of the device 203. The temperature sensing function 205 of the device 203 is used to perform an auto-zeroing process on an integrating amplifier in an ambient light sensor modulator to compensate for dark current and obtain accurate offset compensation.

[0063] Figure 3 Describes the operation Figure 1 1. Process diagram of a method for a combined temperature and ambient light sensing device in FIG. 1. According to step 301, a temperature-dependent current, such as a current proportional to an absolute temperature IPTAT, is generated. A corresponding count value C representing the temperature-dependent current is generated. IPTAT (Step 302). Then, a current is generated through the resistor 40 (Step 303) to generate a corresponding count value C IR(Step 304). The count value is used to provide an accurate temperature to the offset compensation process (Step 305). The offset compensation generates an offset trim value OSTRIM[8:0] to compensate for the offset error of the operational amplifier OPAMP. A photocurrent is then generated in the photodiode 50 (Step 306). The photocurrent is measured by the current integrating modulator 10 (Step 307), where the offset compensation is accurate due to the accurate measurement of the temperature, and therefore the ambient light measurement is relatively accurate.

[0064] It is obvious to those skilled in the art that various modifications and changes can be made without departing from the spirit or scope of the present disclosure as defined in the appended claims. Since those skilled in the art may modify, combine, sub-combinate and change the disclosed embodiments in combination with the spirit and essence of the present disclosure, the present disclosure should be interpreted as including all contents within the scope of the appended claims.

Claims

1. A temperature sensor device, comprising: - a current integrating modulator (10) having an input terminal (11) for receiving a current signal and an output terminal for providing a count value (ADC_COUNT), the count value being dependent on the current supplied to the input terminal; - a temperature sensitive element (20) which generates a current dependent on temperature (IPTAT), said temperature sensitive element comprising a resistor (223); - another resistor (40); and - a first switch and a second switch (31, 32) which connect the temperature sensitive element (10) and a further resistor (40) alternately to an input terminal (11) of a current integrating modulator (10), -Wherein, the temperature sensitive element (20) comprises: a bandgap circuit (221, 222, 223) having a first path and a second path, the first path comprising a transistor (221) and a resistor (223), the second path comprising another transistor (222), the transistor (221) and the other transistor (222) having different sizes; an amplifier (230) connected to the first path and the second path of the bandgap circuit; and a current mirror (252, 253) controlled by the output of the amplifier (230), which has an output path (253) coupled to the input terminal (11) of the current integrating modulator (10).

2. The temperature sensor device according to claim 1, wherein: The resistor (223) and the other resistor (40) have the same resistance.

3. The temperature sensor device according to claim 2, wherein: The resistor (223) and another resistor (40) are arranged on the same integrated circuit.

4. The temperature sensor device according to claim 1, wherein: The first switch (31) is connected between the temperature sensitive element (20) and an input terminal (11) of a current integrating modulator, and the second switch (32) is connected between another resistor (40) and the input terminal (11) of the current integrating modulator, wherein the first switch and the second switch (31, 32) are controlled to be alternately turned on.

5. The temperature sensor device according to claim 1 further comprises a calculator (60) connected downstream of the current integrating modulator (10) to generate a value (TEMP) representing the temperature in response to a count value (ADC_COUNT) generated by the current integrating modulator (10) from the temperature sensitive element (20) and another count value (ADC_COUNT) generated by the current integrating modulator (10) from another resistor (40).

6. The temperature sensor device according to any one of claims 1 to 5, wherein: The temperature sensitive element (20) comprises a transistor (253) for providing a current dependent on temperature (IPTAT), the series connection of the drain-source path of the transistor (253) and the first switch (31) being connected to the input terminal (11) of the current integrating modulator, and wherein the series connection of the further resistor (40) and the second switch (32) is connected in parallel to the series connection of the drain-source path of the transistor (253) and the first switch (31).

7. The temperature sensor device according to any one of claims 1 to 5, wherein: The transistor (221) and the further transistor (222) of the temperature sensitive element (20) have base terminals and collector terminals connected together and have collectors of different widths, wherein the resistor (223) is connected to the emitter terminal of the transistor (221), wherein the amplifier (230) controls the current through the current mirror, the current mirror having a transistor (253) coupled to an input terminal (11) of a current integrating modulator (10) via a first switch (31), wherein the resistor (223) and the further resistor (40) have matching resistance values.

8. The temperature sensor device according to claim 1, wherein: The current integrating modulator (10) comprises an integrating amplifier (OPAMP), an integrating capacitor (CF) connected to the integrating amplifier, a comparator (COMP) connected downstream of the integrating amplifier (OPAMP), a latch (15) connected downstream of the comparator, a counter (16) connected downstream of the latch, and a controller (17) which generates control signals (φ1, φ2, φ3, φ4, φ5) in response to an output signal (LOUT) of the latch (15).

9. A light sensor device comprising: - A temperature sensor device according to claim 8; as well as - a photodiode (50) coupled via a switch (33) to an input terminal (11) of the current integrating modulator (10), the current integrating modulator (10) being configured to perform offset compensation of an integrating amplifier (OPAMP) in response to a count value (ADC_COUNT) generated for the temperature sensitive element (20) and a further resistor (40).

10. A mobile computing device comprising the light sensor device (203) according to claim 9 and a display screen (202), wherein: The light sensor device comprises an output terminal for supplying a signal indicative of ambient light, wherein the brightness of the display screen (202) is controlled in dependence on the signal indicative of ambient light, the signal being generated by the light sensor device (203).

11. A method for measuring temperature, the method comprising the following steps: - generating a temperature-dependent current (301) by using a temperature-sensitive element (20) including a resistor (223), and determining a count value (302) by a current integration modulation process; - generating another current (303) through another resistor (40) and determining another count value (304) through another current integration modulation process; and - generating a value indicative of temperature based on the count value and a further count value, in, The temperature sensitive element (20) generates a temperature-dependent current using a bandgap circuit (221, 222, 223) and an amplifier (230) connected to a first path and a second path of the bandgap circuit, the bandgap circuit (221, 222, 223) having a first path and a second path, the first path comprising a transistor (221) and a resistor (223), the second path comprising another transistor (222), the transistor (221) and the another transistor (222) having different sizes, wherein the output of the amplifier (230) controls a current mirror (252, 253), the current mirror (252, 253) having an output path (253) coupled to an input terminal (11) of the current integrating modulator (10).

12. A method for measuring ambient light, the method comprising the following steps: - performing a current integration modulation process by using an integrating amplifier to perform the method for measuring temperature as claimed in claim 11; - performing an offset compensation of the integrating amplifier by using the measured temperature (305); then - generating a photocurrent (306) in response to receiving ambient light by the photodiode and determining a count value (307) representative of the received ambient light by using a current integration modulation process of the integrating amplifier.