hello there i want to interface accelerometer with nrf51822 using i2c. any sample example available for i2c?
hello there i want to interface accelerometer with nrf51822 using i2c. any sample example available for i2c?
You should check the latest SDK (v10) where we added quite a lot regarding i2c interface:
there is a basic example which is using nrf_drv_twi peripheral driver.
There is a new module called app_twi. It is very useful if you plan to have more than one slave on the i2c bus. There is also an example to show how to use the module.
You should check the latest SDK (v10) where we added quite a lot regarding i2c interface:
there is a basic example which is using nrf_drv_twi peripheral driver.
There is a new module called app_twi. It is very useful if you plan to have more than one slave on the i2c bus. There is also an example to show how to use the module.
can you tell me soft device for this example? because this is not working for soft device s110
code compliled . but when i am trying to upload on kit. it shows me error no ulink device found
@rushin: Have a look at this No ULINK Device found Keil.
thanks it works. but now i am getting error like Error: Flash Download failed - "Cortex-M0". may be it is because of softdevice. can you tell me which soft device should i use?
The examples mentioned above are not supposed to be used together with a softdevice. If you have a softdevice already programmed on your board and you try to program these examples also you will in effect try to write the application on top of the softdevice and you will see your error. See this.