1-Wire


Results 1 to 10 of 10

Thread: 1-Wire

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Sure, that'll work. Added: (not the beating your head part)
    Or you could just use 25.

    Code:
    OWOUT DQ, 1, [$CC, $4E, 25, 0]
    High limit = 25°C
    Low limit = 0°C

    If you want to use negative alarms, it's easier to use a variable

    Code:
    LowLimit   VAR BYTE
    HighLimit  VAR BYTE
    
    HighLimit = 20
    LowLimit = -10
    
    OWOUT DQ, 1, [$CC, $4E, HighLimit, LowLimit]
    Do you know how to read the alarm status yet?
    <br
    Last edited by Darrel Taylor; - 9th May 2008 at 07:13. Reason: Add:
    DT

Similar Threads

  1. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 07:31
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  3. 32 bit square root
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 6th May 2009, 03:37
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 12:19
  5. HSERIN doesn´t work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 14:23

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