CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 2 matches
CCS Forum Index
Author Message
  Topic: CRC16, very efficient
PaulHolland

Replies: 18
Views: 241073

PostForum: 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: 241073

PostForum: 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
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group