10 years, 2 months ago.

Using other Pins for I2C, SPI

Hi,

I want to use I2C and SPI on other pins than described in the picture here: http://developer.mbed.org/platforms/Nordic-nRF51822/

Accodring to the datasheet any pin can be assigned to any peripheral interface:

Quote:

The GPIOs used for each two-wire interface line can be chosen from any GPIO on the device and are independently configurable.

Will this be supported by the mbed library at some point?

Jonas

Question relating to:

The nRF51822-mKIT is a low cost ARM mbed enabled development board for Bluetooth® Smart designs with the nRF51822 SoC. The kit gives access to all GPIO pins via pin headers …

2 Answers

10 years, 2 months ago.

Hi,

The following might help you:

https://developer.mbed.org/users/nemovn/notebook/assigning-i2c-pins-manually-/

Best regards, Petter Myhre

Accepted Answer

Thanks! I will use this workaround for now.

posted by Jonas Gartmann 16 Oct 2014
10 years, 2 months ago.

Hello,

I can see, that pwm for example is available for all pins, but I2C and some other peripherals have defined only some selection of pins. I don't have any estimation when can this be fixed, but I'll create an issue on github.

Are you familiar with github? There are mbed SDK sources, which are open for community to contribute. You can fix those pins for two-wire interface and send a pull request.

Regards,
0xc0170

Thank you, i prefer the official library (not a modified source) because it will be used in a sample code. Im not familiar with github, but I hope this will get fixed.

posted by Jonas Gartmann 16 Oct 2014