20.07.2015 Views

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

M16C/62 Group DATASHEET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CRCMitsubishi microcomputers<strong>M16C</strong> / <strong>62</strong> <strong>Group</strong>SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER(1) Setting 000016b15b0CRC data registerCRCD[03BD16, 03BC16]b7(2) Setting 0116 CRC input register CRCIN[03BE16]b02 cyclesAfter CRC calculation is completeb15118916b0CRC data registerCRCD[03BD16, 03BC16]Stores CRC codeThe code resulting from sending 0116 in LSB first mode is (1000 0000). Thus the CRC code in the generating polynomial,(X 16 + X 12 + X 5 + 1), becomes the remainder resulting from dividing (1000 0000) X 16 by (1 0001 0000 0010 0001) inconformity with the modulo-2 operation.LSB1000 10001 0001 0000 0010 0001 1000 0000 0000 0000 0000 00001000 1000 0001 0000 11000 0001 0000 1000 01000 1000 0001 0000 11001 0001 1000 1000LSB9 8 1 1MSBMSBModulo-2 operation isoperation that complieswith the law given below.0 + 0 = 00 + 1 = 11 + 0 = 11 + 1 = 0-1 = 1Thus the CRC code becomes (1001 0001 1000 1000). Since the operation is in LSB first mode, the (1001 0001 1000 1000)corresponds to 118916 in hexadecimal notation. If the CRC operation in MSB first mode is necessary in the CRC operationcircuit built in the <strong>M16C</strong>, switch between the LSB side and the MSB side of the input-holding bits, and carry out the CRCoperation. Also switch between the MSB and LSB of the result as stored in CRC data.(3) Setting 2316b7b0CRC input registerCRCIN[03BE16]After CRC calculation is completeb150A4116b0CRC data registerCRCD[03BD16, 03BC16]Stores CRC codeFigure 1.22.3. Calculation example using the CRC calculation circuit165

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!