Page 1 of 1
software i2c?
Posted: Fri Jul 10, 2020 1:39 pm
by navanod
Ive run out of pins to use i2c on my blue pill and would love to try software i2c. I cant see any in the example but perhaps someone else has some more info?
Re: software i2c?
Posted: Fri Jul 10, 2020 3:25 pm
by fpiSTM
I've move this topic in libmaple core section as softWire is only available in this core.
Re: software i2c?
Posted: Fri Jul 10, 2020 3:52 pm
by navanod
1 need 3 i2C devices in this blue pill while at the same time 12 hardware PWMs pins. Either core wouldnt bother me if I knew it was going to work...either that or porting the softwire to the other core....

?
Re: software i2c?
Posted: Fri Jul 10, 2020 4:07 pm
by fpiSTM
Well you can connect several I2c device on the same I2C instance...
Re: software i2c?
Posted: Fri Jul 10, 2020 5:05 pm
by navanod
these particular i2c devices dont have a changeable address..its the as5600.
Re: software i2c?
Posted: Fri Jul 10, 2020 9:41 pm
by fredbox
You might find some useful info in this
pdf from STM.
Re: software i2c?
Posted: Sat Jul 11, 2020 3:10 pm
by dannyf
you may want to consider switching the bus so that at a given point only one device is on the bus.
Much easier than having a gazillion i2c buses.
Re: software i2c?
Posted: Sat Jul 11, 2020 5:18 pm
by fredbox
you may want to consider switching the bus so that at a given point only one device is on the bus.
A TCA9548A module for a couple of dollars looks to be an easy hardware solution. I've never used one, but the description of the part seems to fit the requirement: See this
link.