Jump to content

Control PCA9635 via I2C from MBHP


wackazong

Recommended Posts

Hello,

I would like to control something like 40 PCA9635 (16 Channel LED PWM drivers with I2C interface) from MBHP. I know there is the IIC module, but that one allows only four slaves. My data rate on the I2C bus would be rather low, only a couple of LEDs to change from time to time, so overload should be no issue, I think.

Still, I do not know how to connect the I2C bus to a MBHP core, who will act as the I2C master. I could either use a MBHP core that is already being used for a MIDIBox128, or use a dedicated MBHP core. The adressing needs seven bits, and I do not know how to handle that from MBHP.

What do you think?

Link to comment
Share on other sites

I wanted to know how easy it would be to adapt MIOS to do that.

You dont have to, MIOS is adapted to that.

Use C.

I know there is the IIC module, but that one allows only four slaves.

There is no "IIC module", i guess you're talking about "IIC MIDI module" ?

The theorical IIC slaves number is 128 (or maybe 126).

I guess it's possible to drive 40 of your chips, if the data rate is not too high.

I would like to try and help you, but i dont have such chips.

http://www.nxp.com/acrobat_download/datasheets/PCA9635_5.pdf

Have a look at page 21-22

I did some IIC experiments, look at the user projects for code samples.

I strongly suggest that you use a dedicated core to do it.

Good luck !

Link to comment
Share on other sites

Well, I did look for the datasheets for the PICs and the PCA6935. I know that this is possible, but I wanted to know how easy it would be to adapt MIOS to do that. Sorry if I did not formulate my question very clearly...

No, your question was formed well :) But, I don't know the datasheet for the PCA chip from memory... So I'd need to read it, to know how it works, to give you advice on how to use it with MIOS/MBHP. Think about it ;) Bill has covered it now, anyway :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...