共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 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
vscode+cmake搭建雅特力AT32L021开发环境被打赏30分 | |
【换取逻辑分析仪】自制底板并驱动ArduinoNanoRP2040ConnectLCD扩展板被打赏47分 | |
【分享评测,赢取加热台】RISC-V GCC 内嵌汇编使用被打赏38分 | |
【换取逻辑分析仪】-基于ADI单片机MAX78000的简易MP3音乐播放器被打赏48分 | |
我想要一部加热台+树莓派PICO驱动AHT10被打赏38分 | |
【换取逻辑分析仪】-硬件SPI驱动OLED屏幕被打赏36分 | |
换逻辑分析仪+上下拉与多路选择器被打赏29分 | |
Let'sdo第3期任务合集被打赏50分 | |
换逻辑分析仪+Verilog三态门被打赏27分 | |
换逻辑分析仪+Verilog多输出门被打赏24分 |