共2条
1/1 1 跳转至页
89S8252,EEPROM 急寻找89S8252的EEPROM对二维数组读写的C语言程序
问
我有如下二维数组:
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里面,以及从89S8252的EEPROM里面读出来.
还有一维数组:
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: 急啊!怎么没人理采呢?
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里面,以及从89S8252的EEPROM里面读出来.
还有一维数组:
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 跳转至页
我要赚赏金
