Trying to compute crc7
Hey guys, i've been trying to write a crc7 function, but mine seems to not work. Can anyone help out?
Thanks, I'm not sure whats wrong...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Post Edited (Kye) : 4/18/2009 1:43:11 PM GMT
PRI computeCRC7(value)
value <<= 24
repeat 16
value <-= 1
CRC7 |= (value & 1)
CRC7 <<= 1
if(CRC7 & $80)
CRC7 ^= $09
CRC7 &= $7F
VAR
byte CRC7
Thanks, I'm not sure whats wrong...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Post Edited (Kye) : 4/18/2009 1:43:11 PM GMT

Comments
Over a year ago there was a thread that I remember posting in about CRC8. There were some other useful links in there two. Here is the thread:
http://forums.parallax.com/showthread.php?p=696007
I hope this helps point you in the right direction.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com