sir, i want to do project on i2c P89C51RD2 (PHILIPS UC)which doen't contain I2C controller. how to implement i2c on that. pls send codes for that
Yes, I meant that you could use PIO pins such as those on port 1 as the clock and data lines for the I2C interface. Software will have to toggle the two pins appropriately to make it look like an I2C transaction to the other device(s). I suggested that you might want the Philips I2C spec simply so that you'd be sure how to program your emulated I2C interface. I wasn't even thinking of the physical connection, but rather the logical waveforms that need to appear on those two pins.