This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMP1075: UnderTemperature Interrupt issues usingTLow on TMP1075

Part Number: TMP1075
Other Parts Discussed in Thread: TMP390, TMP108, TMP119, TMP117, TMP116, HDC2080, HDC2010, TMP4718

Tool/software:

Hi,

Does the TMP1075 has a UnderTemperature interrupt functionality? Or just OverTemperature?
I've been testing the scenario below, but unfortunately I get no signal on ALERT pin.

Scenario:

    - Board is powered on at room temperature (20°C), and THigh is set to 60°C and TLow to 10°C.
    - Interrupt is activated while device still measures (20°C)
    - Temperature start to drop from 20°C until it reaches 0°C.
    - A signal must be emitted via ALERT pin, regarding the UnderTemperature, to wake board and read current temperature. (DONT WORK, NO SIGNAL RECEIVED)
    - After a while, temperature comes back to 20°C.
    - Board resets sensor, and cycle repeats from first step again.

Shortly: I need an interruption to wake my board on:

    - Consecutive UnderTemperature cases (T < TLow) since sensor start/reset.
    - Consecutive OverTemperature cases (T > THigh) since sensor start/reset.
    - Mixed Over/Under-Temperature cases (Over, Over, Under, Over, Under, Under...) since sensor start/reset.

and not only OverTemperature cases.


I found out this question here on the forum: https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/786430/tmp1075-alert-active-condition-in-interrupt-mode
which, from what I understood, the scenario above must works, but it simply not.

In case it is not possible to "work" with two limits (THigh and TLow) and interrupt trigger sources, independent
of each other, is there any other sensor from TI which is capable of handling such task?

Many thanks in advance,
Nathan

  • Hi Nathan,

    TMP1075 can use the Tlow limit for Under Temperature Alert. Is it possible the device is not in the correct Thermostat Mode (TM)? There is a Comparator mode and an Interrupt mode, and you should ensure the device is in Interrupt mode (TM=1). The Register Map in the datasheet shows which bit in the Configuration register can change TM. 

    Best,

    Sakeenah

  • Hello Sakeenah,

    Actually, I'm using the device in Interrupt mode.
    I also believe my read/write I2C functions are working properly, as the ALERT pin reacts according
    to the defined THigh.

    Here is how the configuration register is written:

    int stats = 0;
    uint16_t cfg = 0b0111011011111111; /*
    									* One-shot disables
    									* Conversion rate set to 220ms
    									* 3 fault
    									* Alert pin Active High
    									* Interrupt mode
    									* Continuous conversion
    									*/
    
    uint8_t val[2] = {0x00};
    
    val[1] = cfg & 0xff;
    val[0] = (cfg >> 8) & 0xff;
    
    stats = TMP_WriteReg(0x01, val);
    if (stats != 0){
    	DEBUG_MSG("Failed to write config values!");
    }

    and, to be sure the TLow value convertion from float to uint16_t isn't wrong,
    I've also tried the 0,25°C value directly from the datasheet table, instead of a converter number:

    // Convert temp from float to uint16
    uint16_t t = 0x0040;//(uint16_t)(temp * 16 / 0.0625f);
    
    uint8_t val[2] = {0x00};
    val[1] = t & 0xff;
    val[0] = (t >> 8) & 0xff;
    
    stats = TMP_WriteReg(0x02, val);
    if (stats != 0){
    	DEBUG_MSG("Failed to set LowLimit value!");
    }

    Any ideas why the code above is not working?
    PS: I'm using a Freeze Spray to force the scenario described on my first post. Could it be that a drastic/instant
    temperature change may cause it not to trigger properly?

    Best Regards,
    Nathan

  • Hi Nathan,

    Devices in the 75 family do not provide under-temperature alert. The TLOW behavior should be called hysteresis instead, because it only unlocks the alert after the THIGH was previously exceeded. Note Figure 7-10 in the TMP1075 datasheet shows that no alert will occur when the TLOW is exceeded prior to THIGH. 

    The under temperature behavior you're looking for is commonly called a window comparator and can be found in the following devices:

    TMP390 temperature switch

    TMP108 die-size BGA temperature sensor

    TMP116 / TMP117 / TMP119 family of high accuracy temperature sensors

    HDC2010 / HDC2080 humidity sensors

    TMP4718 remote temperature sensor

    thanks,

    ren

  • Hello Ren,

    Thanks for your feedback.
    I've noticed what your pointed out on the datasheet, but my first thought was that the graph was a little bit too ilustrative, missing that first TLow cross.

    We will look for the alternatives you mentioned for our re-design.

    Have a nice weekend!
    Nathan