I2C_GenerateSTART(ENABLE); while (!I2C_CheckEvent(I2C_EVENT_MASTER_MODE_SELECT)); I2C_Send7bitAddress(EAddr, I2C_DIRECtiON_TX); while (!I2C_CheckEvent(I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED)); I2C_SendData(Waddr>>8); while (!I2C_CheckEvent(I2C_EVENT_MASTER_BYTE_TRANSMITTING)); I2C_Se...