I was wondering if the standalone nRF51822 microcontroller has support for i2c. If so which pins are supported. There doesn't seem to be any reference on i2c for the board.
I was wondering if the standalone nRF51822 microcontroller has support for i2c. If so which pins are supported. There doesn't seem to be any reference on i2c for the board.
I'm working with the NRF52, but it should apply for this too:
You can use any digital pin for I2C.
I2C is referred to as TWI in Nordic documentation. Look a the TWI example in the SDK
sorry, I apologize if I sound naïve. I just started considering using this microcontroller for a school project. Is this true for the mbed sdk as well?
No worries
I don't know about mbed, but I assume if changing the pins from C are possible it should also work for mbed?
No worries
I don't know about mbed, but I assume if changing the pins from C are possible it should also work for mbed?
Thank you for the answer. Btw, what IDE do you recommend for Nordic SDK firmware dev
I think I've seen some people recommend Segger embedded studio.
I use my own setup:
VScode+cortex debug
That way I can use the armgcc Makefile from the SDK.
You could maybe start by looking at all the configurations they have for building included with each SDK example in a folder named after the board for example the PCA10056 folder, it will contain different folders for the different supported IDE's. (In my case I use the armgcc folder)
I prefer Eclipse GCC. It is full feature C/C++ and highly flexible. Unlike Segger Studio which stripped out C++ supports. It's also a stripped down version of CrossWorks. Only works with Jlink not thing else.
Best library for I2C is this https://github.com/IOsonata/IOsonata. nRF5x port is located here https://github.com/IOsonata/IOsonata/tree/master/ARM/Nordic