I2C about 24C02

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C about 24C02

Jump to solution
826 Views
about
Contributor II
Hi, Currently,I start to learn about I2C about MCF52259. So I begin to read the example I2C in the MQX 3.5. On the example,I find it difficult to understand its meaning about 24LC16. If I want to implement on the chip 24C02, what work mainly should I do? Thanks!
0 Kudos
1 Solution
501 Views
PetrM
Senior Contributor I

Hello,

 

the I2C example should work for you without any change. 24C02 has the same page size and the example doesn't access memory at addresses above 2 kB. Just check whether you have set the same HW address of the memory (A0=A1=A2=0), otherwise change I2C_EEPROM_ADDRESS in eeprom.h.

 

Regards,

PetrM

 

View solution in original post

0 Kudos
2 Replies
502 Views
PetrM
Senior Contributor I

Hello,

 

the I2C example should work for you without any change. 24C02 has the same page size and the example doesn't access memory at addresses above 2 kB. Just check whether you have set the same HW address of the memory (A0=A1=A2=0), otherwise change I2C_EEPROM_ADDRESS in eeprom.h.

 

Regards,

PetrM

 

0 Kudos
501 Views
about
Contributor II
HI, Thanks! I will have a try.
0 Kudos