PDA

View Full Version : Help with PBP CRC-code for DS1820



Pjoms
- 21st February 2003, 12:37
Hi!
Have to test this new forum...

I'm quite new to PIC:s, and are now playing with a 16f84 and a DS1820 tempsensor.
Can anybody help me with some code exampels how I do the CRC-check.
All PBP-code with a 1820 I found on the net, so far, just ignore the CRC...

Thanks for some help!

/ Anders - Sweden

Andrew
- 21st February 2003, 17:41
Anders,

I just ran across this posting on the PICList regarding CRC for Dallas/Maxim devices:

http://www.dattalo.com/technical/software/pic/crc_8.asm

It's done in ASM but it may provide some clues or help you along the learning curve.

Andrew

Robert Soubie
- 23rd February 2003, 10:41
Anders and Andrew, give me an email address to my address below and I'll send you crc.zip, which contains 3 different subroutines for computing crcs under PicBasic.

This code was posted by a member of the mainstream PicBasic list.

Robert Soubie <[email protected]>