Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 4 months ago.
Slave address of mbed lpc1768
Hi guys, I'm trying to interface 2 mbed lpc1768 together - making 1 as the master, and the other mbed as slave. My problem is the address of the slave. I looked at some code (lpc 1768 program) and the slave address was set to 0x52 with a comment of "arbirtary even number" http://mbed.org/users/Kit1/code/I2CSlave/rev/42d461c96301 line 12. Can you please help me determine the slave address of mbed lpc 1768? or I can set it myself?
1 Answer
10 years, 4 months ago.
You set it yourself, you can put any number there, as long as it is even (otherwise it will be rounded down most likely), not 0 (that is general call address), and not larger than 0xFF (I believe 0xFE has no special properties so can be used).