DIGITAL TEMPERATURE SENSOR WITH INTEGRATED DIGITAL TEMPERATURE FILTER

申请号 EP14821473.7 申请日 2014-12-23 公开(公告)号 EP3087363B1 公开(公告)日 2018-08-15
申请人 Microchip Technology Incorporated; 发明人 ABERRA, Ezana; RICHARDS, Patrick; APPEL, Richard; ALEXANDER, Sam; LOYER, Stephen; BLAKE, Kumen; CAPPY, Sean;
摘要 An integrated temperature sensor device has a temperature sensor configured to provide an analog signal corresponding to an ambient temperature, an analog-to-digital converter receiving the analog signal and a programmable digital filter coupled to the analog-to-digital converter.
权利要求 Integrated temperature sensor device comprising:a temperature sensor (110, 120) configured to provide an analog signal corresponding to an ambient temperature;an analog-to-digital converter (130) receiving the analog signal;a programmable digital filter (150) coupled to the analog-to-digital converter; the integrated temperature sensor device being characterised by:a first register (142) coupled with the analog-to-digital converter (130) for storing the output of the analog-to-digital converter (130),a second register (146) coupled with the digital filter (150) for storing the filtered temperature value, anda serial interface (170) coupled with a control unit (160), wherein the control unit (160) is configured to access the first and second register (142, 146).The integrated temperature sensor device according to claim 1, wherein the temperature sensor comprises:a sensor element (110); anda sensor conditioning circuit (120) coupled with the sensor element (110).The integrated temperature sensor device according to claim 2, wherein the sensor element (110) is a semiconductor diode.The integrated temperature sensor device according to one of the preceding claims, further comprising a control register (144) coupled with the control unit (160) and the digital filter (150) for storing filter coefficients of said programmable digital filter (150).The integrated temperature sensor device according to claim 4, wherein the control register (144) is configured to disable the digital filter (150).The integrated temperature sensor device according to claim 5, wherein the control register (144) is set to 0 to disable the digital filter (150).The integrated temperature sensor device according to one of the preceding claims 4-6, wherein the control register (144) selects one of a plurality of predefined filter coefficients.The integrated temperature sensor device according to one of the preceding claims, wherein the analog-to-digital converter (130) is a high speed analog-to-digital converter operable to provide about 200 conversions per second.The integrated temperature sensor device according to one of the preceding claims, wherein the serial interface (170) is an SPI, I2C, or a single wire serial interface.A method for operating an integrated temperature sensor device (100) comprising the steps of:converting within the integrated temperature sensor device (100) an analog value provided by a sensor element (110) into a digital temperature value by an analog-to-digital converter (130),storing within the integrated temperature sensor device (100) the digital temperature value in an associated temperature register (142),feeding within the integrated temperature sensor device (100) the digital temperature value to a digital filter (150),storing within the integrated temperature sensor device (100) a filtered temperature value in an associated filtered temperature register (146); reading by a microprocessor or microcontroller through a serial interface (170) within the integrated temperature sensor device (100), said temperature register (142) or said filtered temperature register (146).The method according to claim 10, wherein the sensor element (110) is a semiconductor diode.The method according to claim 10 or 11, further comprising storing within the integrated temperature sensor device (100) a control value in a control register (144) coupled with the digital filter (170), wherein the control register (144) selects one of a plurality of predefined filter coefficients.The method according to claim 12, wherein the control register (144) is configured to disable the digital filter when the associated control value is 0 and wherein the control value is stored in a plurality of bits of said control register.The method according to one of the preceding claims 10-13, wherein the serial interface (170) is an SPI, I2C, or a single wire serial interface.The method according to one of the preceding claims 10-14, wherein the analog-to-digital converter (130) is a high speed analog-to-digital converter operable to provide about 200 conversions per second.
说明书全文

The present disclosure relates to digital temperature sensor devices, in particular to a digital temperature sensor with integrated digital temperature filter.

A variety of integrated semiconductor temperature sensor exists For example, WO 02/27449 A2 discloses a temperature sensor integrated in a microprocessor. Some sensors are available in housings having a low number of pins and may provide either an analog or a digital interface. Analog temperature sensors typically output a voltage that is proportional to the measured temperature while digital temperature sensors provide for a digital interface that is designed to encode the temperature value into a digital value and provide these to a processor, for example using a serial interface. To keep the number of pins low, these digital temperature sensors often use a single wire interface. However, other devices may use interfaces with more than one wire. While such digital temperature sensors are convenient and can be used in many applications, certain applications may in addition require post-processing of the temperature values. Hence, there exists a need for improved integrated digital temperature sensors. This and other objects can be achieved by an integrated digital temperature sensor and method of operating the same according to the independent claims. Further enhancements are characterized in the dependent claims. More specifically, the present invention provides an integrated temperature sensor device and a method for operating such a device, as claimed in independent claims 1 and 10, respectively.

  • Fig. 1 shows a block diagram according to various embodiments;
  • Fig. 2 shows a graph depicting transfer functions for various filter coefficients.

According to various embodiments, a digital temperature sensor may comprise a digital filter feature which enables a user to control the temperature sensor sensitivity. According to various embodiments, a variety of such filters may be implemented. The lowest filter setting enables the user to detect fast thermal transients, and the highest filter setting reduces the sensor sensitivity, outputting gradual changes in temperature. The temperature sensor may be configurable, for example comprising a configuration register which can be configured through a serial interface of the device.

According to various embodiments, such a low power and digital temperature sensor may output temperature data at faster speeds than conventional devices, for example at 5 millisecond intervals (typically), or 200 times per second, for a high resolution temperature data. This rate is approximately 25 times faster than the speed of a conventional temperature sensor. Due to this high speed conversion rate, the device spends less time in the temperature conversion mode which saves the overall operating power when it is used in conjunction with the low power or shutdown mode. However, due to the fast temperature conversion, fast thermal transients may be detected from the application and the device may output false temperature alerts. The solution is to implement an integrated digital filter with the options for the user to adjust the filter coefficient or the filter strength.

Typically, if the application needs a digital filter, a microcontroller is used to process and filter the temperature data. According to various embodiments, the microcontroller consumes significantly higher operating current or power than the temperature sensor. Therefore, this integrated feature eliminates the associated processing requirements of a microcontroller and makes the digital temperature sensor according to various embodiments ideal for extremely low power applications.

According to some embodiments, there can be several functional blocks to a temperature sensor 100 according to various embodiments as shown in Fig. 1: the sensor proper 110 and an associated conditioning circuit 120, an analog to digital converter 130, and user programmable registers 140. A diode 110 may be used in this example to measure temperature and the sensor conditioning circuit 120 is used to bias the sensor diode 110 and scale the diode voltage to measurable levels. However, according to other embodiments, other type of sensors and if necessary conditioning circuits may be used. Basically the temperature sensor provides for an analog signal, such as a voltage or a current that can easily be converted into a temperature value. The analog value may be proportional to the temperature or may have a known linear or non-linear relationship. For example, tables stored in memory may be used within the sensor device to retrieve a temperature value corresponding to the analog value.

The analog to digital converter 130 is used to convert the ambient temperature data in digital format. The digital temperature data is available to the user in the user Ambient Temperature data register 142. The temperature sensor may be designed to be configurable through the registers 140. For example, different operating modes may be available such as a request mode in which values are only transmitted upon request or an auto transmit mode in which temperature values are automatically transmitted in predetermined intervals. Yet another operating mode that may be implemented would provide a notification signal to the microcontroller or processor that new data can be read from the temperature sensor device. According to yet another mode, automatic transmission of new temperature values would take place once a predefined delta temperature value has been detected, or when combined with the notification mode, a notification of a new temperature that exceeded a predefined delta or absolute temperature value could be issued by the temperature sensor device. Other operating modes may be implemented. According to some embodiments, multiple operating modes may be implemented as described above wherein a user could programmably select one of the plurality of operating modes.

According to various embodiments, a digital filter block 150 is provided, wherein the ambient temperature digital data is passed through the filter engine of the digital filter 150. The filter coefficients or filter strength can be adjusted by the user using the Filter Coefficients data register 144. The filtered data is then available in the Filtered Temperature Register 146.

Such an arrangement allows for extremely low power thermal management. The sensor 100 according to various embodiments filters temperature data to prevent false alerts and is about 25x faster than a conventional device, wherein its short operating time saves power.

A typical microcontroller task includes conditioning temperature data by averaging multiple reads to reduce false temperature alerts, this consumes power by the microcontroller (much more than the sensor). Fast conversion time increases sensitivity to measuring system thermal noise. The added digital filter 150 with user programmable filter strength allows the device to manage thermal data within the temperature sensor so the microcontroller doesn't have to wake-up to perform this task.

Table 1 shows an example of a digital filter to be used in a temperature sensor 100 as shown in Fig. 1 according to various embodiments.

<b><u>TABLE 1</u></b>

BIT 6-4

N-FILTER

COEFFICIENT:

000 = 0 (No Filter - TA_FLT=TA)

001 = 1 Minimum Filter

010 = 2

011 = 3

100 = 4

101 = 5

110 = 6

111 = 7 Maximum Filter

Thus, the values stored in the control register 144, for example, in bits 6-4 of the control register as shown in table 1, are used as an index to select one of a plurality of predefined filter coefficients. Other bits could be used according to various embodiments and the above mentioned specific bits are merely an example. Hence, a user merely needs to store a selection number to activate a specific filter function. If the index is equal to 0, then the entire filter will be disabled. However, other embodiments may use a different configuration process. For example, the filter may have a plurality of variable parameters and a user may directly program these parameters into various registers. While this option provides a user more control over the filter, it also would involve a more complicated set-up procedure. More than one type of filter or other additional functions can be implemented and a user may have the opportunity to select one of the plurality of filters or post processing routines. For example, a digital temperature sensor device according to various embodiments may have additional averaging routines and associated registers that store selectable or pre-defined averaging numbers. Various averaging routines could be implemented that calculate a mean or geometric average and optional other statistical values.

In this embodiment, the filter is an infinite impulse response low pass filter. According to an embodiment, eight different filter coefficient settings may be provided. Three bits of a control register 144 may provide for these options as explained above. However, more or less options may be provided according to other embodiments. In addition, the control register may have more bits that can be used for other configurations such as operating mode as discussed above. As can be seen in Fig. 2, if the filter coefficient is set to zero, no filter function will be applied. Thus this setting can be used as a disable function. The remaining seven settings span from a minimum to a maximum filter function.

The digital temperature sensor 100 may further have control logic 160 for performing the filter function and may also include, for example a digital serial interface 170 for communication with an external microprocessor or microcontroller 180. The serial interface 170 may allow for access to all registers 140 to set the functionality, for example digital filter function and read the temperature data from at least one or more temperature registers 140, 146. The serial interface can be any type of serial interface such as an serial peripheral interface (SPI), an I2C interface, or in particular any type of single wire interfaces, such as UNI/O, 1-WIRE, etc.. Serial interface may also be used which are capable to supply power over the single communication line to further reduce the number of external pins. Other functions may be configured as discussed above.

As shown in Fig. 1, the measured temperature may be stored in a separate register 142 and the filtered temperature value may be stored in another register 146. Further control registers for controlling the analog-to-digital converter, for example speed and resolution may be present.

Typically, the temperature conversion rate of conventional digital sensors is about 4 to 8 times per second for a high resolution data device. During this slow conversion time the device consumes continuous current and if a digital filter is implemented by a microcontroller, then the controller can measure and filter the temperature data within fractions of the sensor conversion time, or power. Therefore, there isn't much advantage in implementing an integrated digital filter with slow conversion time sensors. But using a fast conversion time of a temperature sensor according to various embodiments saves power, and the filter feature saves power by off-loading the data processing need from the controller.

Fig. 2 shows the infinite impulse response (IIR) low pass filter depending on the various settings. A filtered temperature will be processed as follows: TA_FLT=aTA+1aTA_PRV This equation 1 can be simplified as: TA_FLT=aTATA_PRVa+TA_PRV wherein a=1/2n and n is a user selectable filter coefficient.

QQ群二维码
意见反馈