Running 2 MCP2221A devices

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jfrye1
 
Posts: 1
Joined: Thu Jun 08, 2023 3:26 pm

Running 2 MCP2221A devices

Post by jfrye1 »

Hi,

I have two separate MCP2221A's. If I have both plugged in to the same laptop. I want to be able to issue I2C commands to chips connected to each's individual I2C bus. I can do this just fine when I have just one of the MCPs plugged in, but how can I have both connected over USB and be able to write to the slave devices on their busses separately?

Example: I want to have both MCPs connected over USBs, but only issue an I2C command to a specific slave device on one of the MCP's and do nothing with the other MCP at the time.

User avatar
sj_remington
 
Posts: 997
Joined: Mon Jul 27, 2020 4:51 pm

Re: Running 2 MCP2221A devices

Post by sj_remington »

The Adafruit installation and operation guide does not appear to suggest that there is a mechanism to distinguish between two MCP2221A devices.

User avatar
adafruit_support_carter
 
Posts: 29153
Joined: Tue Nov 29, 2016 2:45 pm

Re: Running 2 MCP2221A devices

Post by adafruit_support_carter »

The Adafruit libraries only support one MCP2221A. Huge discussion on this here:
https://github.com/adafruit/Adafruit_Blinka/pull/637

Could possibly use one of those forks?

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”