Hello,Here is my I2C master slave code for PIC18f4550.
The problem with the code is not understandable by me.I checked the data on CRO.The master is sending the data constantly.But the problem is that the slave isn't raising interrupt at all.
Is there some mistake in addressing or some other mistake in coding?
I need a C-language code for the same if anyone has successfully implemented it.....
I haven't checked every line of code, but in the slave, you shouldn't make the SDA line an output. SDA is bi-directional, and when "high" it should be an input (= idle state as well). I would recommend looking at the lines with an oscilloscope to see what is actually getting sent.