This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I2C slave device address diff bw data sheet and nRF52

I am using Martin's code to test my I2C connection.

I use PC10040 evaluation board, SCL and SDA are 3 and 4.

My sensor is a Max 30102 pulse and HR sensor. I used Martin's code to detect my device at address 0x57; however, address in its datasheet is 0xAE/write 0xAF/read.

What I am missing?

Parents
  • Hi,

    As Alex mentions 0xAE/F is the seven bit address 0x57 left shifted one bit and with a read/write bit subsequently placed at the Least Significant Bit (LSB). You should use address 0x57 in your code as the TWI drivers in the SDK takes care of left shifting and read/write bits for you. Here is an explanation of what is going on.

Reply
  • Hi,

    As Alex mentions 0xAE/F is the seven bit address 0x57 left shifted one bit and with a read/write bit subsequently placed at the Least Significant Bit (LSB). You should use address 0x57 in your code as the TWI drivers in the SDK takes care of left shifting and read/write bits for you. Here is an explanation of what is going on.

Children
No Data
Related