Hello and welcome to the forum.
Firstly, I might suggest you use the forum search box at the bottom of this page, for a search on "IIC" and "I2C". There are many posts that discuss IIC issues, and some refer to example code. The operation of the IIC module should be quite similar for the various 9S08 devices.
It would appear to me that there are two issues:
- Basic communications issues when using the IIC module within the MCU.
- The specific protocol requirements of the slave device, the DS1307 in your case.
For the second issue, the data sheet for the DS1307 will be your primary reference - previous posts on the forum may not necessarily assist. But you first need to clear up any problems with the basic communications.
Ultimately, if problems remain, you will need to post your non-working IIC code to this forum for specific comment.
Regards,
Mac