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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

708 Views
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

Labels (3)
0 Kudos
1 Reply

430 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos