Hello,
i have a question....could i use 10 lps22hb on same I2C bus?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-15 5:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-15 6:28 AM
​Hi @FItal​ , you can use max n.2 lps22hb on the same physical lines by setting the SA0 pad (SAD[0] bit in the Slave address) high (Vdd) or low (GND). However, you can of course share the communication lines by using the SPI protocol and lowering the CS when you want to communicate with a specific device. Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-15 6:37 AM
Thanks for the reply.
best regards,
Francesco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-15 6:55 AM
With "dirty" tricks, one can use 10 or more I2C bus slaves with the same address in one bus.
You can gate the SCL line (or better both SCL and SDA) to the slaves, having only two slaves accessible at the bus on any time (at different addresses, set by SA0 pin).
The effort would be similar to managing /CS lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-15 7:02 AM
There are also I2C Muxes like the PCA9543.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-07-15 7:28 AM
Connect each pressure sensor slave address select pin to an individual GPIO of the MCU, and make sure only one of them is high (or low) to talk to the one.
Running out of pins on the MCU? Use an I2C IO Expander.
