DS18B20 using ROM ID


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    this what i got when issue command OWOUT DQ, 1, [$33]
    $28, $D3, $60, $F6, $01, $00, $00, $41

    $28 is the FAM as i think
    $41 is the CRC

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink Here we are !!!

    Quote Originally Posted by ahmed_salah View Post
    this what i got when issue command OWOUT DQ, 1, [$33]
    $28, $D3, $60, $F6, $01, $00, $00, $41

    $28 is the FAM as i think ... yes.
    $41 is the CRC
    ... yes.

    you had printed

    Code:
     OWOut DQ, 1, [$55, $28,  $D3,  $60,  $F6,  $01,  $00,  $00,  $00, $41 ,$44]
    3 times $00

    instead of

    Code:
     OWOut DQ, 1, [$55, $28,  $D3,  $60,  $F6,  $01,  $00,  $00,  $41 ,$44]
    only 2 times $00 needed !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Aug 2008
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    hi,
    your are right it was my wrong i add extra 00 on id , now it working good ,
    but when i change sensor or remove it i got 0.6 reading on LCD the first part of the program checks for presistance of specific ds18B20 and if it found complete the program and read temp else display no sensor , can u help in that

  4. #4
    Join Date
    Aug 2008
    Posts
    31


    Did you find this post helpful? Yes | No

    Default

    hi,
    i update the code as attached i remove the initialization part and i got the same right reading
    do u think it is not important to use initialization part

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