ds1820 error


Closed Thread
Results 1 to 14 of 14

Thread: ds1820 error

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hmmm, something doesn't seem right.

    The lower value pull-up, and pause 750 shouldn't be needed.
    The OWIn DQ, 4, [count_remain] will check the busy bit until the conversion is complete.

    ..... Unless it's running on "Parasite Power". In which case you need a Strong Pull-up on DQ during the conversion, and you can't read from the device for 750ms.

    If that fixed your problem, then you probably don't have 5V on pin 3 of the 1820.
    And if "Parasite Power" was intentional, you may need to do things differently.
    <br>
    DT

  2. #2
    Join Date
    Nov 2006
    Location
    Melbourne, Australia
    Posts
    25


    Did you find this post helpful? Yes | No

    Thumbs down

    Hi everyone
    Well this ds1820 ic is being a real pain. have gone over things with a multimeter and i have 5v going to pin 3. data is pin 2 and gnd is pin 1

    This is what the front of the ic looks
    ________
    dallas
    ds1820
    0634C3
    +552AC
    ________
    1 2 3
    GND 5V
    DATA
    2k4 resistor tied between pin 2 and pin 3

    I did notice "Vpu" figure 1 page 2 of the data sheet. What is Vpu is that the 5v line as i am using it. I assume it is. Could this be the problem??

    Am BALD cause of this ic. hahaha
    IF ITS STOCK IT WONT ROCK

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Yes, Vpu is VDD or +5V.

    If you have time, can you try this...
    Code:
    ;-----------------------------------------------------------------------------
    Done      VAR BIT
    Parasite  VAR BIT
    Family    VAR BYTE
    
    Diag:
        OWIn DQ, 4, [Done]
        LCDOUT $FE,1,"Done =", bin1 Done
        
        OWOUT DQ, 1, [$CC, $B4] ' READ POWER SUPPLY
        OWIn DQ, 4, [Parasite]
        LCDOUT $FE,$C0,"Power="
        if Parasite = 0 then
            LCDOUT "Parasite"
        else
            LCDOUT "VDD"
        endif
        
        OWOUT DQ, 1, [$33]
        OWIN  DQ, 2,[Family]
        LCDOUT $FE,$89,"FAM=",IHEX2 Family
        
        PAUSE 1000
    goto Diag
    ;-----------------------------------------------------------------------------
    Just stick it before the main loop in your program.

    Ideally, you should see this on the LCD ...
    Code:
    Done = 1  FAM=$10
    Power=VDD
    <br>
    DT

  4. #4
    Join Date
    Nov 2006
    Location
    Melbourne, Australia
    Posts
    25


    Did you find this post helpful? Yes | No

    Default

    Thanks darren you have been a big help.

    The program initialy comes up with

    Done =1 FAM=$10
    Power=VDD

    then half second later changes to

    Done =1 FAM=$10
    Power=Parasite

    Regards
    crazy cooter
    IF ITS STOCK IT WONT ROCK

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Well, it's reporting the correct Family number so the communications is working.
    But as suspected, it's also reporting that there's no power on VDD Pin 3.

    Since you said you already verified that there is +5V on Pin 3.

    The only thing left, is to say that that particular part has a problem with it's power pin.
    Maybe it was plugged in backwards at some point along the way.

    The rest still seems to be working, I guess you can just use it in Parasite mode.
    But you may want to approach it differently than just a smaller Pull-Up resistor.

    HTH,
    &nbsp; Darrel

  6. #6
    Join Date
    Nov 2006
    Location
    Melbourne, Australia
    Posts
    25


    Did you find this post helpful? Yes | No

    Default

    Ok i i flipped the wires on the ds1820 around (PIN1=3 PIN2=2 PIN3=1)
    And now get

    Done =1 FAM=$FF
    Power=VDD

    When i put a 10K pullup resistor on i get

    Done =1 FAM=$10
    Power=Parasite

    when i take the resistor away i get

    Done =0 FAM=$00
    Power=Parasite

    I flipped the ic around and get these readings

    When i put a 10K pullup resistor on i get

    Done =1 FAM=$FF
    Power=VDD

    when i take the resistor away i get

    Done =1 FAM=$FF
    Power=VDD

    Does anyone have these problems?

    Regards CC
    IF ITS STOCK IT WONT ROCK

Similar Threads

  1. Using input from Switch to control a loop
    By MrRoboto in forum mel PIC BASIC
    Replies: 9
    Last Post: - 2nd February 2009, 05:02
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  4. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22
  5. Compiler/Assembler Error
    By LT_Pic in forum General
    Replies: 7
    Last Post: - 21st July 2005, 09:47

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