Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C addresses > 127 are invalid #10

Closed
timcharper opened this issue Feb 23, 2019 · 1 comment · Fixed by #11
Closed

I2C addresses > 127 are invalid #10

timcharper opened this issue Feb 23, 2019 · 1 comment · Fixed by #11

Comments

@timcharper
Copy link
Contributor

I2C addresses are 7bits; the 8th bit is reserved for the protocol to indicate whether a read or a write is intended. If one accidentally writes an invalid address, then it "bricks" the device as a sensor, and one must use an avr programmer to manipulate eeprom manually or erase the contents and reprogram.

https://www.totalphase.com/support/articles/200349176-7-bit-8-bit-and-10-bit-I2C-Slave-Addressing

https://learn.adafruit.com/i2c-addresses/overview

@timcharper
Copy link
Contributor Author

I think several of the first couple of addresses are reserved, also. On page 17 of https://www.nxp.com/docs/en/user-guide/UM10204.pdf they're detailed. So address must be in the range [8..123]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant