Velocity Reviews > Checksum calculator

# Checksum calculator

dan457brfc
Junior Member
Join Date: Dec 2008
Posts: 1

 12-16-2008
hi,

i am trying to design a circuit that reads a 6 digit bcd signal and calculates a 4 bit checksum value and then adds that to the end of the data.

then at the recieve side takes the data calculates the checksum and compares it to the checksum sent with the data.

can anybody help me? i am really struggling with this.

Thankyou

dan

technoplume
Member
Join Date: Jan 2009
Posts: 55

 01-09-2009
I havent program for a will ^^ check this site koders.com

Also I think u can do this whit a mask. The way I would to this would be to transform the 6 digit in binary if there not already then make and HEX value. If I assume you 6 digit are binary 0 and 1, I would had 2 zero or 11 at the end making 2 pair of 4 binary. Those can be transform in HEX very easy then add them to make the check sum in hex. U could then transmit the information in ASCII caracter in your network retrived the last letter or 2 last and use the reverse fonction to check the 2 first letter. Now if 1 bit got corrupted, the ASCII caracter will change. Also u can print the ASCII to trouble shoot problem and compare input output. Now if your digit are in fact number on a logic circuit it's the same process cause each digit has an hex equivalent. U just have to know if u need 1,2or4 hex for each digit. I hope this help.

Last edited by technoplume; 01-12-2009 at 03:11 PM..