This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

msp430f5418a CRC校验问题



Hi all,

通过看5418a手册知道了如何使用CRC校验模块,并通过程序验证了将数字1-9送入到CRC中做校验,得出结果和手册上写的是一致的。但是我不是很明白的是比如我给

CRC的输入时数字1,但是为什么要将0x31送到CRCDI_L呢?其他的数字也是一样的。2:0x32、3:0x33... 请问这个3是什么意思?

手册上给的例程如下:

mov #0FFFFh,&CRCINIRES ; initializeCRC

mov.b #00031h,&CRCDI_L ; "1"

mov.b #00032h,&CRCDI_L ; "2"

mov.b #00033h,&CRCDI_L ; "3"

mov.b #00034h,&CRCDI_L ; "4"

mov.b #00035h,&CRCDI_L ; "5"

mov.b #00036h,&CRCDI_L ; "6"

mov.b #00037h,&CRCDI_L ; "7"

mov.b #00038h,&CRCDI_L ; "8"

mov.b #00039h,&CRCDI_L ; "9"

Thanks

Regards

Nick