Problems with CRC8 Calc in 1Wire


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Location
    Grand Lake O' Cherokees USA
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    You are jumping around the subroutine upon start up right? If your software is verbatum to what you posted then you need to add Goto Start just before the CRC8: label and place a Start: label before your testcode comment. I'm not sure what PBP will do with variables declared after coding starts but I would move the TestData VAR Byte(8) up to before the subroutine where the other declarations are.

    Again, I'm away from home for a couple of days so I can't test the code.....
    Tom

  2. #2
    Join Date
    Jan 2007
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Can't believe how stupid I have been, indeed it was an extract from a much larger program which I was having a problem with. In the extract I was skipping over loading the array so it was never getting to operate on correct data.

    I will now have to go back to my original code and see where it is going wrong as I still have a problem with the real code, it just not with the CRC calc as I h ad originally thought.

    Sorry to have bothered you.

    JohnB

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Cool

    Yesterday I have implemented the CRC-8-calculating from 1-wire with a short routine without tables from:

    http://www.dattalo.com/technical/software/pic/crc.php
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

Similar Threads

  1. Dallas CRC8 Routines
    By Tom Estes in forum Code Examples
    Replies: 23
    Last Post: - 8th May 2018, 19:07
  2. 2 PWM in 16F690 problems
    By ciendavila in forum mel PIC BASIC
    Replies: 9
    Last Post: - 27th April 2008, 10:03
  3. bootloader Freqout problems
    By handgio in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2007, 14:38
  4. Problems with 16F876 on interrupts an WRITE / READ
    By BigWumpus in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2005, 15:38
  5. USART problems
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 47
    Last Post: - 6th March 2005, 22:45

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