Author |
Message |
Topic: CRC16, very efficient |
PaulHolland
Replies: 18
Views: 241385
|
Forum: Code Library Posted: Sun Dec 13, 2009 10:21 am Subject: Fastest CRC-8 for PIC 12 & 16 |
crc_8:
xorwf crc,f
clrw
btfsc crc,0
xorlw 0x5e
btfsc crc,1
xorlw 0xbc
btfsc crc,2
xorlw 0x61
btfsc crc,3
xorlw 0xc2
btfsc crc,4
xorlw 0x9d
btfsc crc,5
xorlw ... |
Topic: CRC16, very efficient |
PaulHolland
Replies: 18
Views: 241385
|
Forum: Code Library Posted: Sun Dec 13, 2009 10:16 am Subject: Fastest CRC-CCITT for PIC 12 & 16 |
CRC_16: movf INDF,w ; FSR is pointing at input byte !.
CRC_16_Direct: xorwf CrcH,w ;
movwf TMP ;
andlw 0xF0 ;
swapf TMP,f ;
xorwf TMP,f ;
movf TMP,W ;
... |
|
Page 1 of 1 |
All times are GMT - 6 Hours |
Powered by phpBB © 2001, 2005 phpBB Group
|