mcuzone 发表于 2013-12-17 21:19:13

K70例程017: 硬件CRC测试_IAR

使用J-LinkV8
IAR版本6.6
调试串口波特率:115200
基于MDKK70-EK_T43硬件平台

实验现象:
编译并下载调试程序,根据串口提示信息进行测试。

串口输出信息:
====== CRC Lab ==========

Please select CRC width (16-bit/32-bit):
1. CRC16
2. CRC32
select:1

Please select CRC polynomial:
1. poly = 0x1021 (CRC-CCITT)
2. poly = 0x8408 (XMODEM)
3. poly = 0x8005 (ARC)
4. poly = 0x04C11DB7 (CRC32)
5. others
select:1

Please select type of Transpose for input:
1. No Transposition
2. Only transpose bits in a byte
3. Transpose both bits and bytes
4. Only transpose bytes
select:4

Please select type of Transpose for Read:
1. No Transposition
2. Only transpose bits in a byte
3. Transpose both bits and bytes
4. Only transpose bytes
select:4
XOR final checksum (y/n)?y
Please enter seed in hex:0102
Please enter an ASCII Message:Mcuzone
CRC result = 0x901C
Press any key to continue...,'q' to quit!

mcuzone 发表于 2013-12-17 21:19:39

串口输出:

mcuzone 发表于 2013-12-17 21:22:12

源码包:

jinyi7016 发表于 2015-2-25 15:01:55

mcuzone 发表于 2013-12-17 21:22
源码包:

下载 学习了,,感谢
页: [1]
查看完整版本: K70例程017: 硬件CRC测试_IAR