I2C Slave Address with K60D100M

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I2C Slave Address with K60D100M

ソリューションへジャンプ
2,339件の閲覧回数
valerierabon
Contributor I

I'm very new to this. I'm trying to build a simple code that will send a block of data to the EEPROM. Once the data is received, an LED will blink for each index of the array.

The code however does not work, and I was wondering if I have the wrong slave address (I've been using 0000011101) and/or I am missing key pieces of code.

I've included a screenshot of my code as well as the project so far.

Thank you very much!

Valerie

Original Attachment has been moved to: I2C_Test_K60.zip

タグ(4)
0 件の賞賛
返信
1 解決策
2,136件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Valerie,

I don't have I2C demo code created by PE on hand. However I've included a I2C demo which KL25 as master control accelermeter sensor and also select 7 bit salve address mode too.

I think it should be useful for reference and I send it along with the email. Please refer to it for details.

If you have any further questions, please feel free to contact with me.

Best regards,

Ping

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,136件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Valerie,

There were some errors when I complie your project. I also have question question want to ask you.

Which address mode did you choose? 7bit or 10bit? Becase I'm not sure based on your PE configurtion and I attach the screenshot that you can check it.

Best regards,

Ping

1.jpg

0 件の賞賛
返信
2,136件の閲覧回数
valerierabon
Contributor I

Hi Ping,

Thank you for taking the time to look at it. I used the 7 bit addressing mode. I've attached a screenshot of my I2C configurations.

Valerie

I2C_Config.PNG.png

0 件の賞賛
返信
2,137件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Valerie,

I don't have I2C demo code created by PE on hand. However I've included a I2C demo which KL25 as master control accelermeter sensor and also select 7 bit salve address mode too.

I think it should be useful for reference and I send it along with the email. Please refer to it for details.

If you have any further questions, please feel free to contact with me.

Best regards,

Ping

0 件の賞賛
返信