Let's Make Robots!

clock problem

Problem with I2C mode of 16f877a

I am having problem with I2C mode of 16f877a. I wrote a code for I2C ranging mode of the SRF02 sensors. At first I thought the problem was with the code, but then I debugged the circuit a little; the code is as below: