这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 综合技术 » 基础知识 » 89S8252,EEPROM 急寻找89S8252的EEPROM对二维数组读写的

共2条 1/1 1 跳转至

89S8252,EEPROM 急寻找89S8252的EEPROM对二维数组读写的C语言程序

院士
2006-09-17 18:14:16     打赏
89S8252,EEPROM 急寻找89S8252的EEPROM对二维数组读写的C语言程序



关键词: 89S8252     EEPROM     寻找     二维     数组         

院士
2006-12-22 22:43:00     打赏
2楼
问 我有如下二维数组:
static const unsigned char cL_reg[2][40] = {
{0x33,0x0f,0xff,0x8f,0x3d,0x62,0x21,0x38,0x1c,0x9d,0x5d,
0x78,0x44,0x50,0x2b,0xc6,0x25,0x61,0x55,0x2d,0x29,0x20,
0x76,0x87,0x10,0x25,0xae,0x34,0x60,0xf0,0x00,0x00,0x00,
0x4d,0x10,0x06,0x00,0x40,0x00,0x00},
{0x33,0x0f,0xff,0x8f,0x39,0xf0,0x0f,0x38,0x7b,0x8e,0xeb,
0x38,0x44,0x50,0x1b,0xc6,0x25,0x61,0x55,0x2d,0x29,0x20,
0x78,0x47,0x14,0x22,0xae,0x34,0x0f,0x00,0x00,0x00,0x00,
0x4d,0x10,0x06,0x00,0x40,0x00,0x00}

};
如何把上面的二维数组写入89S8252R的EEPROM里面,以及从89S8252EEPROM里面读出来.
还有一维数组:
unsigned char  cc_reg[]={
0x33,0x0f,0xff,0x8f,0x3d,0x62,0x21,0x38,0x1c,0x9d,0x5d,
0x78,0x44,0x50,0x2b,0xc6,0x25,0x61,0x55,0x2d,0x29,0x20,
0x76,0x87,0x10,0x25,0xae,0x34,0x60,0xf0,0x00,0x00,0x00,
0x4d,0x10,0x06,0x00,0x40,0x00,0x00,//reader
0x33,0x0f,0xff,0x8f,0x39,0xf0,0x0f,0x38,0x7b,0x8e,0xeb,
0x38,0x44,0x50,0x1b,0xc6,0x25,0x61,0x55,0x2d,0x29,0x20,
0x78,0x47,0x14,0x22,0xae,0x34,0x0f,0x00,0x00,0x00,0x00,
0x4d,0x10,0x06,0x00,0x40,0x00,0x00 ,//responser
0xee

}; 1: 急啊!怎么没人理采呢?

共2条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]