I2C about 24C02

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

I2C about 24C02

跳至解决方案
1,030 次查看
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 项奖励
回复
1 解答
705 次查看
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 项奖励
回复
2 回复数
706 次查看
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 项奖励
回复
705 次查看
about
Contributor II
HI, Thanks! I will have a try.
0 项奖励
回复