10 years, 2 months ago.

Why has mbed got two I2C ports?

Can each port control a seperate I2C bus, running from the same program? My problem is that I have two identical I2C devices that I want to utilise, however they both have the same fixed address. Therefore I was thinking that if I set up 2 busses then I could control both devices without any bus contention or same address issues. Does that sound feasible?

You might want to be more specific about which platform you are referring to! :)

posted by Dan Ros 18 Feb 2014

1 Answer

10 years, 2 months ago.

In addition to Dan's comment, why not? Sometimes it is useful to have two I2C peripherals, for example because of what you ran into, but there could also be other reasons. So the LPC1768 indeed has two I2C peripherals that you can use seperately.

Accepted Answer