Browsing this Thread:
1 Anonymous Users
|
CRC 8
|
|
新會員
Joined
: 2009/4/24 11:45 最後登入時間
: 2009/4/24 11:45
Group:
註冊會員
Level : 1 HP : 0 / 0 MP : 0 / 0 EXP : 0
|
您好: 我用PIC24FJ16GA002的CRC有一些問題想要請教一下: 由於我需要的是CRC-8,所以Init 設定如下: _PLEN = 7; CRCXOR = 0B0000000100000110; //X8+X2+X+1 當我送進CRCDAT的資料連續如下時: 0x12,0x34,0x56,0x00 CRCWDAT所算出來的值是0x4F
但是這個值似乎不對,應該是0x73。
連續資料是0x12,0x00,0x34,0x00,0x56,0x00算出來的才是0x4F。
為什麼PIC24FJ16GA002的CRC-8都會自動在每個byte後面自動加上0x00,這樣的算法是正確的嗎? 還是我的設定不正確? 請問有誰知道可以幫忙解釋一下,謝謝。
發表於: 2009/4/24 12:02
|
|
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.