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

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

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

872 次查看
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 回复

594 次查看
lpcware
NXP Employee
NXP Employee
bump
0 项奖励
回复