Facing problem with I2C in i.MX51 evk board

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

Facing problem with I2C in i.MX51 evk board

ソリューションへジャンプ
1,415件の閲覧回数
electronguy
Contributor I

Hi all,

I have just started working with i.MX51 evaluation board and I am trying to write a byte of data to EEPROM (AT24C512B). This EEPROM is a part of expansion board and is not on the main board. The problem is I am not able to read whatever data I am writing, i.e I always read the value 0xFF or 0x00. So there must be two problems, either the write operation is failing or I am not accessing the right location while reading.

My question is how do i find out if the write operation is successful? Where are the control registers of I2C on i.MX51 processor using which I can monitor the ACK bit which would inturn tell me about the success/failure of the write operation?

Plz help

Thanks in advance

ラベル(1)
0 件の賞賛
返信
1 解決策
1,261件の閲覧回数
maheshmahadeva1
NXP Employee
NXP Employee

The I2C control and status registers are documented in the I2C chapter of the MX51 Reference manual that can be found at the below link:

i.MX515 Product Summary Page

I2C module is documented in chapter 40.

You may also have to configure the IOMUX settings for the MX51 pins used to connect the I2C clock and data signals. IOMUX registers can be found in the Appendix section.

Please connect a scope to see you see an active clock signal during the I2C transactions.

Best regards,

-Mahesh

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,261件の閲覧回数
YixingKong
Senior Contributor IV

Guy, please click Correct Answer/Helpful Answer, if your question had bee answered.

Thanks,

Yixing

0 件の賞賛
返信
1,262件の閲覧回数
maheshmahadeva1
NXP Employee
NXP Employee

The I2C control and status registers are documented in the I2C chapter of the MX51 Reference manual that can be found at the below link:

i.MX515 Product Summary Page

I2C module is documented in chapter 40.

You may also have to configure the IOMUX settings for the MX51 pins used to connect the I2C clock and data signals. IOMUX registers can be found in the Appendix section.

Please connect a scope to see you see an active clock signal during the I2C transactions.

Best regards,

-Mahesh

0 件の賞賛
返信