1. 首页
  2. 课程学习
  3. 嵌入式
  4. 循环冗余校验(CRC)

循环冗余校验(CRC)

上传者: 2022-10-22 13:09:29上传 PDF文件 387.61 KB 热度 29次

CRCisoneofthemostversatileerrorchecking

algorithmusedinvariousdigitalcommunication

systems.CRCstandsforCyclicRedundancyCode

CheckorsimplyCyclicRedundancyCheck.

Mostofthepopularcommunicationprotocols,like

CAN,USB,IrDA

Æ

,SDLC,HDLCandEthernet,employ

CRCforerrordetection.

Normally,fortheerrordetectionindigital

communicationsystems,achecksumiscomputedon

themessagethatneedstobetransmitted.Thecom-

putedchecksumisthenappendedattheendofthe

messagestreamandistransmitted.Atthereceiving

end,themessagestreamíschecksumiscomputedand

comparedwiththetransmittedchecksum.Ifbothare

equal,thenthemessagereceivedistreatedaserror

free.

CRCworksinasimilarway,butithasgreater

capabilitiesforerrordetectionthantheconventional

forms.DifferentCRCpolynomialsareemployedfor

errordetection.ThesizeofCRCdependsuponthe

polynomialchosen.

ThisapplicationnotedescribestheCRCoperationand

itsimplementationusingadedicatedhardwaremodule.AN1148CyclicRedundancyCheck(CRC)Author:SudhirBommenaConsideramessageof‘M’of‘k’bitsandgeneratorMicrochipTechnologyInc.polynomial‘G’of‘n+1’bits.Dividingthemessagebythegeneratorwillyieldaremainder‘R’of‘n’bits.There-fore,M=GQ+R;whereQisthequotientobtainedINTRODUCTIONwhenMisdividedbyG.CRCisoneofthemostversatileerrorchecking

用户评论