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.
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…
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
Well, ok, there you have it. I think I will manage, I just hope the I2C Bus really supports that many devices, and that it is not too sensitive to the pwm going on all around it.
OK obviously I thought that was funnier than you did ;D
It really does Interference should not be a problem, but I’d probably put it on a PCB to be sure… There’ve been threads about termination lately too, that could be of interest.