One-Wire Communications


Closed Thread
Results 1 to 2 of 2
  1. #1
    Dunsmuir's Avatar
    Dunsmuir Guest

    Angry One-Wire Communications

    I am using a PIC 16F870 controller and two Dallas/Maxim DS18S20 High Precision 1-wire digital thermometers but am having problems getting data from the DS18S20 devices. If I only use one device I there is no problem, but the minute I add the other one problems start. I tried to modify the PIC Basic program that was used for the X1 Lab by using the DS18S20 data sheets, but have been unsuccessful. I know there must be a buss contention problem and have tried all of the options I can think about. If I use the original one-wire program and put the second device on a separate port, it works well but that is certainly not a one-wire system.
    The other concern I have has to do with addressing the DS18S20 devices. According to the data sheet each device has separate addressing capabilities, but from what I can see, you can't find out what they are.
    Any ideas of where I have gone wrong?

    Martin

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by Dunsmuir View Post
    I am using a PIC 16F870 controller and two Dallas/Maxim DS18S20 High Precision 1-wire digital thermometers but am having problems getting data from the DS18S20 devices. If I only use one device I there is no problem, but the minute I add the other one problems start. I tried to modify the PIC Basic program that was used for the X1 Lab by using the DS18S20 data sheets, but have been unsuccessful. I know there must be a buss contention problem and have tried all of the options I can think about. If I use the original one-wire program and put the second device on a separate port, it works well but that is certainly not a one-wire system.
    The other concern I have has to do with addressing the DS18S20 devices. According to the data sheet each device has separate addressing capabilities, but from what I can see, you can't find out what they are.
    Any ideas of where I have gone wrong?

    Martin
    You're answer is right there on page 9 and page 17 of the DS18S20 datasheet.

Similar Threads

  1. Need Single wire serial LCD converter example
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 16th December 2009, 02:30
  2. Communications headset tester
    By skimask in forum Off Topic
    Replies: 20
    Last Post: - 13th December 2006, 14:40
  3. PIC Basic Pro <-> HP-IL communications
    By swr999 in forum Serial
    Replies: 0
    Last Post: - 6th March 2006, 18:30
  4. PIC Basic Pro <-> HP-IL communications
    By swr999 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th March 2006, 18:22
  5. RPM with wire and PIC
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th December 2004, 20:42

Members who have read this thread : 1

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