software i2c?

Post here all questions related to LibMaple core if you can't find a relevant section!
Post Reply
navanod
Posts: 15
Joined: Thu Jun 11, 2020 3:27 pm

software i2c?

Post 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?
User avatar
fpiSTM
Posts: 1745
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: software i2c?

Post by fpiSTM »

I've move this topic in libmaple core section as softWire is only available in this core.
navanod
Posts: 15
Joined: Thu Jun 11, 2020 3:27 pm

Re: software i2c?

Post 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.... :idea: ?
User avatar
fpiSTM
Posts: 1745
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: software i2c?

Post by fpiSTM »

Well you can connect several I2c device on the same I2C instance...
navanod
Posts: 15
Joined: Thu Jun 11, 2020 3:27 pm

Re: software i2c?

Post by navanod »

these particular i2c devices dont have a changeable address..its the as5600.
fredbox
Posts: 125
Joined: Thu Dec 19, 2019 3:05 am
Answers: 2

Re: software i2c?

Post by fredbox »

You might find some useful info in this pdf from STM.
dannyf
Posts: 447
Joined: Sat Jul 04, 2020 7:46 pm

Re: software i2c?

Post 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.
fredbox
Posts: 125
Joined: Thu Dec 19, 2019 3:05 am
Answers: 2

Re: software i2c?

Post 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.
Post Reply

Return to “General discussion”