DS18B20-Resolution change. How?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,116

    Default DS18B20-Resolution change. How?

    How can we change the resolution of the DS18B20?

    I tried this in vein:

    Code:
    OWOut DQ, 0, [$CC,$4E, $00,$00,$3F]' set to 10bits
    owout DQ,0,[$BE]
    OWIN DQ, 0, [STR ID\9]
    It returns only $FF, like there is no device connected.

    The DS18B20 is confirmed to work OK.

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default Re: DS18B20-Resolution change. How?

    The command to set the resolution is OK, as long as you're not using the alarms.

    But you need to do a SkipROM before the Read_Scratchpad.
    And the reset modes should be different.
    Code:
    OWOut DQ, 1, [$CC, $4E, $00,$00,$3F]' set to 10bits
    ; Convert and wait here
    owout DQ, 1, [$CC, $BE]
    OWIN  DQ, 2, [STR ID\9]
    Last edited by Darrel Taylor; - 4th December 2012 at 22:36.
    DT

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,116


    Did you find this post helpful? Yes | No

    Default Re: DS18B20-Resolution change. How?

    I mis-understood the reset pulse. Thought that if the device was set, say for 10 bits, and then a reset pulse was sent, it would set it again at the default 12 bit state.

    Thanks Darrel, is OK now.
    Ioannis
    Last edited by Ioannis; - 5th December 2012 at 17:40.

Similar Threads

  1. MIBAM resolution
    By david parish in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th October 2009, 23:04
  2. PULSIN Resolution
    By cotang in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 28th December 2008, 21:47
  3. DS1820 resolution
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 5th June 2008, 14:41
  4. pulseout resolution
    By cpayne in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th October 2005, 20:58
  5. High resolution ADC
    By vsingh in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th April 2004, 18:53

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