??? 08/13/07 20:40 Read: times |
#143230 - FYFI Responding to: ???'s previous message |
I suspect you'd like to work things out on paper first, so for your future information, I refer you to this document:
http://www.danlhenry.com/hdlc/hdlcbcc.pdf That document's section 2.2.5 specifies the 16-bit FCS (CRC) used by the international standard HDLC protocol. In section 4.1, you will find various FCS implementations. The code I posted in your thread here was a slight optimization of Fcs16_b(). Fcs16_b() is an 8-bit optimized version of Fcs16_a(). I refer you to Fcs16_a() because it shows the algorithm in a 'simpler' form for comparison to your pencil and paper work. |