This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28027: IIC操作AT24C02简单的读写程序,故参考了官方程序,但发现与原来的其他芯片IIC有不同,故问题如下:

Part Number: TMS320F28027

官方代码Example_2802xI2C_eeprom.c的函数uint16_t I2CA_WriteData(struct I2CMSG *msg)中疑惑代码段如下:

// Setup data to send
I2caRegs.I2CDXR = msg->MemoryHighAddr;
I2caRegs.I2CDXR = msg->MemoryLowAddr;

请问AT24C02也适合上述代码?我写地址1的时候如下编程对不?

I2caRegs.I2CDXR = 0;//msg->MemoryHighAddr;
I2caRegs.I2CDXR = 1;//msg->MemoryLowAddr;

请问上述代码适合所有的AT24系列EEPROM芯片不?

我什么我按照例程来读取数据全是0xff?希望这种问题不要发到英文论坛耗时还几乎得不到解决,能否中国这边帮助解决?

谢谢!