I2C about 24C02

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,481件の閲覧回数
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 解決策
1,156件の閲覧回数
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 返答(返信)
1,157件の閲覧回数
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 件の賞賛
返信
1,156件の閲覧回数
about
Contributor II
HI, Thanks! I will have a try.
0 件の賞賛
返信