Software I2C for 36 channels - Will it work?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

Software I2C for 36 channels - Will it work?

Post by Brendan »

Good day gentlemen.

In dealing with 36 simple I2C devices with conflicting base addresses, I need to assign each to a dedicated I2C port.

I can do this in software mode, though unsure of any gotcha's if configuring a PIC33EP512MU814 running full-smoke, to serve 36 separate ports/devices? Incidentally, the PIC need serve no other purpose other than as slave I2C interface to a driving master.

I'm aware of mux switches (etc), each adding line capacitance that I'd prefer to avoid, though just as-well to throw an on-hand PIC at it - if it will work? I can also add that transactions with each target device will be performed and completed separately, so no need to handle asynchronous messages from targets (etc).

All comments appreciated.

Thanks and all the best,
Brendan
Last edited by Brendan on Thu Oct 19, 2017 3:11 pm, edited 1 time in total.

Brendan
Posts: 243
Joined: Tue Nov 27, 2012 12:53 pm
Location: Cambridge, UK
Has thanked: 140 times
Been thanked: 118 times
Contact:

Re: Software I2C for 36 channels - Will it work?

Post by Brendan »

UPDATE:

I've since managed to find and switch to suitable SPI devices, so much easier to control logical CSBs and not have to deal with potential I2C bus hangs and power-cycling.

An interesting question though, for possible future reference.

Many thanks,
Brendan

Post Reply