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.

TMP112/TMP108 I2C , sample code

Guru 20090 points
Other Parts Discussed in Thread: TMP112, TMP108, TMP102, TMP112EVM

Hello,

Are the FAST mode and the High-Speed mode  of TMP112/TMP108 compliant with NXP UM10204 specification?

Also , could you please share the sample code of TMP112 and TMP108?
Is this included in GUI software?
If yes, please let me know the directory when I installed it.

Best Regards,
Ryuji Asaka

  • TMP112 and TMP108 are compliant with Fast mode and High Speed mode of the NXP UM10204 specification with the following exceptions:
    TMP112 Fast Mode:
    tHDDAT (Data Hold Time) has a minimum of 100ns compared to the I2C Spec of 0ns.

    TMP112 High Speed Mode:
    tHDDAT (Data Hold Time) has a minimum of 25ns compared to the I2C Spec of 0ns.
    fSCL (SCL Frequency) has a maximum of 2.85MHz compared to the I2C Spec of 3.4MHz.
    tSUDAT (Data Setup Time) has a minimum of 25ns compared to the I2C Spec of 10ns.
    tLOW (SCL clock low period) has a minimum of 210ns which correlates to the lower fSCL max.

    TMP108 High Speed Mode with Supply less than 1.8V:
    fSCL (SCL Frequency) has a maximum of 2.5MHz when the supply is less than 1.8V.
    tSUDAT (Data Setup Time) has a minimum of 50ns when the supply is less than 1.8V.
    tLow (SCL clock low period) has a minimum of 260ns which correlates to the lower fSCL max when the supply is less than 1.8V.

    Ren
  • Hello Ren san,

    Thank you for the reply.
    Are there any sample code of TMP112, TMP108 for android ?

    Best Regards,
    Ryuji Asala
  • Hi Ryuji-san,

    The linux kernel has a driver for TMP102 in drivers/hwmon/tmp102.c. The TMP102 is a compatible with TMP112.

    Ren
  • Hello Ren san,

    I got the additional questions.

    (1) Are there any possibility that the SCL,SDA pins are latched low?
    Did you have the experience of this?
    (2) Are there the sample code for TMP112/108 ? Is there TMP102 only?
    For example, if I installed the GUI of TMP112EVM/108EVM, can I found the sample code from the installed folder ?

    Best Regards,
    Ryuji Asaka
  • 1. The SCL pin is an input only so it is not capable of controlling the state. The SDA pin functions as an output during certain phases of the I2C transaction. If communication is corrupted for any reason, the device features a 30ms Timeout that will release the SDA pin.
    2. TMP102 software is the same as TMP112. There is no sample code available for TMP112/TMP108 that I'm aware of.

    Ren
  • Hello Ren san,

    Sorry again.
    I would like to know about the linux driver of tmp102.
    I got the linux driver from the following url.
    lxr.free-electrons.com/.../tmp102.c

    Can we use this driver for TMP112 if we change from the part number in the driver from TMP102 to TMP112?
    Also, are there any usage result this driver for the equipment?

    Best Regards,
    Ryuji Asaka
  • Yes you can use the TMP102 driver for TMP112.

    Ren