⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 spce061单片机的一些程序!C语言和汇编语言都有
💻 C
字号:
//======================================================================================
//
//        The information contained herein is the exclusive property of
//      Sunplus Technology Co. And shall not be distributed, reproduced,
//      or disclosed in whole in part without prior written permission.
//
//            (C) COPYRIGHT 2001   SUNPLUS TECHNOLOGY CO.
//                           ALL RIGHTS RESERVED
//
//    The entire notice above must be reproduced on all authorized copies.
//
//========================================================================================
//  工程名称: TestCRC.spj
//  功能描述:  CRC校验
//				
//  文件来源: 《SPCE061单片机原理及应用技术》第八章 凌阳单片机应用及开发技术,第357页
//  IDE环境:  	SUNPLUS u'nSPTM  IDE 1.8.0(or later)
//
//  涉及的库:	CMacro.lib
//
//  组成文件:	main.c
//    	 		crc.asm
//	                 	
//  日期:       2002-6-12
//===========================================================================================
 typedef unsigned char uchar; 
 unsigned int cal_crc(unsigned char *ptr, unsigned char len);
 main()
{
 	unsigned  int  sendBuf[12]= {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a};
 	unsigned  int crcValue ;
 	crcValue = cal_crc(sendBuf,10);
 	for(;;);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -