10 years, 5 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, 5 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).

Accepted Answer

Hi, thanks for the info :) Just a clarification, what if the address I chose is being used by the mbed itself? (Please exclude 0x00 and greater than 0xFF as you've said a while ago)

posted by Happy Bumblebee 11 Jul 2014

It doesn't have an own address, it only has the address you set it to have.

posted by Erik - 11 Jul 2014