How to enter LPC824 I2C slave mode(SLVPENDING bit problem)

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

How to enter LPC824 I2C slave mode(SLVPENDING bit problem)

890件の閲覧回数
jiayiyu
Contributor I

Hi all,

I am now working on the LPC824 as I2C slave to receive data from the master.

Now the program is that the SLVPENDING bit cannot become 1(default 0) after I enable the I2C slave function.

This leads to that the slave cannot acknowledge the slave address which the master sends.

And the salve cannot communicate with the master.

Does anyone can help me to enter LPC824 I2C slave mode successfully(let SLVPENDING bit become 1)?

Thanks a lot if you can help me to solve the problem.

Following are my codes:

Now it always in the loop to check if the SLVPENDING bit is 1. Actually for some reason, the SLVPENDING bit is always 0. So the next codes cannot be executed.

pastedImage_0.png

Best regards,

Jiayi Yu

ラベル(3)
0 件の賞賛
返信
1 返信

612件の閲覧回数
lpcware
NXP Employee
NXP Employee
bump
0 件の賞賛
返信