Dallas 1-Wire CRC Calculation


Closed Thread
Results 1 to 4 of 4
  1. #1

    Default Dallas 1-Wire CRC Calculation

    Can someone tell me how the CRC is calculated for the DS18S20 temperature sensors? I use the following line to receive the temperature and CRC but I'm not sure how to calculate the CRC to do a comparison.

    owin portb.7, 0, [temp.byte0, temp.byte1,SKIP 6,crc]

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


    Did you find this post helpful? Yes | No

    Default

    Tom Estes posted two different Dallas 1-wire CRC routines here in the Code Examples forum.

    Dallas CRC16 Routines

    Dallas CRC8 Routines<br><br>

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thanks to the link/info. This is exactly what I was looking for.

  4. #4
    Join Date
    Mar 2005
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Thank you for the posts. I found where I was looking for. For those who want to know more about CRC read this article called: 'A painless guide to CRC error detection algorithms' http://www.geocities.com/SiliconVall...s/8659/crc.htm

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