Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I had problems connecting to an I2C eeprom whose address from the data sheet was given as 0x51. I used this address in the MBED code but the eeprom didn’t acknowledge this. Then I remembered that an I2C address is 7 bits long and for the address to be handled by the MBED code it needs to be shifted by 1 bit to the left - multiply by 2. So 0x51 becomes 0xA2 and the eeprom can now be addressed