Hi Sood:

Just thought I might ask the obvious... your PIC is running at 4MHz or less, correct? DS1307 has the standard clock frequency and may not run above 4MHz.

Try making the I2C clock line bipolar by DEFINE I2C_SCLOUT 1.

You need to allow some time for the write to I2C completion - 10msec may be enough.

For initialization of a virgin DS1307 take a look at Ms. Neuman's discussion at http://www.picbasic.co.uk/forum/show...ght=non-eeprom

-warrier