Description
PaHUB, is a expander for I2C GROVE PORTA(red port on M5Core). 1-to-6. If you want connect mutiple I2C slave devices and some of them may sharing the same address, this unit can resolve I2C address conflicts.
At the Unit PaHUB’s heart is an TCA9548A produced by TI. The TCA9548A device has eight bidirectional translating switches that can be controlled through the I2C bus. The SCL/SDA upstream pair fans out to downstream pairs, or channels. Any individual SCn/SDn channel or combination of channels can beselected, determined by the contents of the programmable control register.
Technically this Unit allows mutiple levels of nesting, for example you can wire PaHUBs to the root PaHUB to get more seats for your I2C slave devices, if you have 7 of them you can have up to 36 I2C GROVE ports, which makes it easier to get your project more organized.
The I2C address of this unit is 0x70 (changable by resistors).
Notice:Please pay attention to the channel order while programing
Product Features
I2C GROVE PORTA Expander
Two Leigo-compatible holes
Nested allowed
1-to-6
Product Size:48.2mm x 24.2mm x 11mm
Product weight:6.7g
Learn
The connections of the I2C data path are controlled by the same I2C master device that is switched tocommunicate with multiple I2C slaves. After the successful acknowledgment of the slave address (hardwareselectable by A0, A1, and A2 pins), a single 8-bit control register is written to or read from to determine the selected channels.
Package includes
1x PaHUB Unit
1x Grove Cable
DOCUMENTS
Datasheet – TCA9548A
Code
protovol type – I2C
address – 0x70
1. for IDE
The code below is incomplete. To get complete code, please click here.
Additional information
Weight | 0.02 kg |
---|
Reviews