Hi @Jorge_Gonzalez
Can you please give me an example based on the EEPROM read/write format above.
based on Figure8 and Figure9 that I showed above, would the following work:
uint8 buffer[4];
buffer[0] = 0x57 //address of the slave
buffer[1] = 0x00 // first byte address
buffer[2] = 0x00 //second byte address
buffer[3] = 0x55 // one byte data
I2C1_SelectSlaveDevice(I2C1ptr, LDD_I2C_ADDRTYPE_7BITS, passin[0]);
Sent = 0;
I2C1_MasterSendBlock(I2C1ptr, passin , sizeof(passin), LDD_I2C_SEND_STOP); //LDD_I2C_SEND_STOP LDD_I2C_NO_SEND_STOP
while (Sent == 0){}
I tried this and it did not work. Do you have any suggestions?