麻烦大神给看看,我用6018a写EEPROM怎么一直是写不进去,代码如下:
BYTE xdata iicsed[10] = {0,1,2,3,4,4,3,7,8,9};
BYTE xdata iicrec[10] = {0,};
//BYTE *iicrec = (BYTE*)malloc(10);
EZUSB_WriteI2C(0,10,iicsed);
SYNCDELAY;
EZUSB_WaitForEEPROMWrite(0);
SYNCDELAY;
EZUSB_ReadI2C(0,10,iicrec);
SYNCDELAY;
BYTE xdata iicsed[10] = {0,1,2,3,4,4,3,7,8,9};
BYTE xdata iicrec[10] = {0,};
//BYTE *iicrec = (BYTE*)malloc(10);
EZUSB_WriteI2C(0,10,iicsed);
SYNCDELAY;
EZUSB_WaitForEEPROMWrite(0);
SYNCDELAY;
EZUSB_ReadI2C(0,10,iicrec);
SYNCDELAY;