Another DS18B20 problem


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Thanks all,

    Alain, is this what you mean?

    digital:

    owout digitalin,1,[$CC,$44] 'TELL SENSOR TO START A TEMPERATURE CONVERSION

    Wait_Up:
    OWIN digitalin,4,[Busy] ' Read busy-bit
    IF Busy = 0 THEN Wait_Up ' Still busy..?, Wait_Up..!

    OWOUT digitalin,1,[$CC,$BE] 'TELL SENSOR YOU WANT TO READ THE TEMPERATURE
    OWIN digitalin,0,[STR DQ\9] 'RECEIVE TEMPERATURE FROM SENSOR

    .

  2. #2


    Did you find this post helpful? Yes | No

    Default

    I just tested the change but the result is the same

    I've placed a led and added a : toggle led1 right at the beggining of the label digital.

    I can see that if i remove the sensor's data conection the led freezes, so it means that the waiting lines are doing their job.

    However i'm still stuck with the same values on my lcd

    .

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


    Did you find this post helpful? Yes | No

    Angry S.e.a.r.c.h.

    As the title says ... make a little SEARCH on this forum and you'll find tons of WORKING examples about DS 1820 and 18B20 or 18S20 ...

    Then just "cut and paste" ... instead of trying to re-invent the wheel !!!

    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 " !!!
    *****************************************

  4. #4


    Did you find this post helpful? Yes | No

    Default No help there :(

    Thanks Alain,

    But that's what i did in the first place...that's how i found CocaColaKid's example... and it didnt helped me much

    .

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ruijc View Post
    But that's what i did in the first place...that's how i found CocaColaKid's example... and it didnt helped me much
    Hate to say it, but it must be a hardware or keyboard problem.

Similar Threads

  1. DS18B20 error reading
    By Gaetano in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th August 2007, 17:21
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 09:12
  3. DS18B20, 16F88 problem
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 10th June 2007, 17:11
  4. Reading 5 DS18B20 Problem
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2005, 21:51
  5. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 23:59

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