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.
官方代码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?希望这种问题不要发到英文论坛耗时还几乎得不到解决,能否中国这边帮助解决?
谢谢!
您好,
不需要,AT24C02无需为其 I2C 通信使用高/低字节。 它似乎只有one Word地址。 请查看 AT24器件数据表以了解以下信息:
https://ww1.microchip.com/downloads/en/DeviceDoc/doc0180.pdf