This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I2C while using a Softdevice with nRF51822

Hello,

I read a while in this forum and found out it might be a little tricky to get I2C working when using a Softdevice. Is that information still valid or outdated?

developer.nordicsemi.com/.../a00784.html

Could I use this on a nRF51822 based module with S110 loaded to talk with my I2C enabled sensor?

Kind Regards muhkuhns

Parents
  • I have not tested the burst mode, but looking at the function code it looks like the read address is hardcoded into the library.

    void sdio_read_burst(uint8_t * target_buffer, uint8_t target_buffer_size) {
        uint_fast8_t address = 0x63;
    

    This is most probably not correct address for your slave device and you need to change it. If it is still not working then I would recommend you to check the maximum and mimum clock speeds of your device and check if this driver is not clocking too fast.

Reply
  • I have not tested the burst mode, but looking at the function code it looks like the read address is hardcoded into the library.

    void sdio_read_burst(uint8_t * target_buffer, uint8_t target_buffer_size) {
        uint_fast8_t address = 0x63;
    

    This is most probably not correct address for your slave device and you need to change it. If it is still not working then I would recommend you to check the maximum and mimum clock speeds of your device and check if this driver is not clocking too fast.

Children
No Data
Related