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.
Hello,
I've been finding I2C example with AT24C02 EEPROM.
But there's only AT24C256 example.
I wanna know if there are any example with AT24C02 or how to change AT24C256 example to AT24C02 example.
Thanks!
Jaehoon,
We don't have any specific examples in the C2000Ware-DigitalPower-SDK package specific to EEPROM I2C examples. Perhaps you can cross-reference the C2000Ware package and refer to the I2C examples. I'll forward this post to that team for more information.
Regards,
Ozino
Hi Jaehoon,
Refer to this Application Note that details interfacing with the AT24C256 EEPROM. Taking a quick look at the AT24C02 datasheet, it is also a standard two-wire I2C EEPROM, so it should be fairly straightforward to configure it using given code. Make sure that you are configuring the right GPIOs on both the controller/target side.
Aishwarya
Hi Aishwarya!
Thanks for reply my question.
I think there's only one difference between AT24C02C & AT24C256.
As shown above, 02C has one byte address and 256 has two bytes of address.
Can you tell me the correction points to make this difference the same?
I'm testing with project named "C:\ti\c2000\C2000Ware_DigitalPower_SDK_4_03_01_00\c2000ware\driverlib\f28003x\examples\i2c\i2c_ex6_eeprom_interrupt.c
Thanks,
Hi Jaehoon,
Since the only difference is the bytes of address, the main value to change is the EEPROM.NumOfAddrBytes to 1 and remove one of the ACKs. Everything else should be okay to stay the same though you might want to take a look at that LSB since in AT24C256, it is at the second word address and for AT24C02C it is in the first word address.
Aishwarya