Using the TMP100 series of I2C temperature sensor from Texas Instruments


Results 1 to 4 of 4

Threaded View

  1. #3
    Join Date
    Dec 2007
    Location
    Paris
    Posts
    101


    Did you find this post helpful? Yes | No

    Default

    Bug report on the conversion routine... should be:
    Code:
    TempL = TempL + 16 'adding 1 temperature unit
    Wiki article was fixed

    Code:
    TempDec = 0
    IF TempL.7 = 1 THEN TempDec = 5000
    IF TempL.6 = 1 THEN TempDec = TempDec + 2500
    IF TempL.5 = 1 THEN TempDec = TempDec + 1250
    IF TempL.4 = 1 THEN TempDec = TempDec + 625
    can also be replaced by:

    Code:
    TempDec = TempL * 625
    Not sure what takes the longest to compute, use whichever you like.
    Last edited by aberco; - 27th September 2010 at 16:36.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts