Hi!
Yesterday I had everything, now nothing… My IIC stopped working, and I cannot find out why.
I made a debug routine which just sends a MIOS_IIC_Start and then a MIOS_IIC_Stop about every second to the IIC bus. Am I right that both SDA and SCL should change from about 5V (after issuing Stop) to about 0V (after issuing start) in that interval?
My SDA changes from 0V (after Start) to 4.8V (after Stop) in the said interval, with nothing attached but the pullup resistors. That seems ok. (4.8 V is the supply voltage of the core, the pullup resistors are connected to 5V, because I use a schottky diode in front of the PIC power supplay for other reasons (in-circuit programming adapter))
MY SCL (also with pullup) changes from 4.8V after Stop (the supply voltage of the PIC) to 5V after Start (the supply voltage of the rest of the board). That seems strange to me, shouldn’t the line be low then? But maybe the pullup resistors play a role, and whether the PICs Pin is draining power or not. But I have no idea…
Do you have any hints for troubleshooting IIC connections? I have an Oscilloscope, but do not really know how to use it for debugging IIC.
I use IIC to drive some PCA9635 LED chips (datasheet attached).
Please remember: The whole configuration worked beautifully without a flaw yesterday, and then suddenly IIC stopped working. Therefore the basic setup should be ok, I just have no idea what I changed.
Any help really appreciated,
ALEXander.
[PCA9635.pdf](< base_url >/applications/core/interface/file/attachment.php?id=4530)
[PCA9635.pdf](< base_url >/applications/core/interface/file/attachment.php?id=5583)