??? 08/12/06 07:02 Read: times Msg Score: +1 +1 Informative |
#122116 - Maybe it is X^5+X^4+X^3+X^2+X+1 Responding to: ???'s previous message |
From the datasheet of the encoder, the data bits seems to be 18bits (1bit Alarm + 17bit angle) + 5bits (CRC).
"EnDat2.1 - Transfer of Position Values" (p48) http://www.heidenhain.com/wcmsmimef..._15078.pdf Then the CRC polynomial is G(X) = X5 + a4X4 + a3X3 + a2X2 + a1X + 1 (a1-a4: 0, 1) The candidates are 24 = 16 polynomials. As G(x) is a generator polynomial, X18 - 1 must be divisible by G(X). a) Calculate (X18 - 1) / G(X) as an usual decimal polynomial with a symbolic calculation software, such as Mathematica. http://www.wolfram.com/products/...ex.en.html b) Select the polynomial that brings all of the parameter of the remainder polynomial are even. Applying this criteria to G(X) candidates, this polynomial is selected. No other candidate passed this criteria. G(X) = X5 + X4 + X3 + X2 + X + 1 Tsuneo |