Hello everyone,

I am expermenting with a PIC 16F877 in trying to make a clock with a Dallas Semi DS1307 and a serial LCD. I am having some strange problems. I have the clock and data ports connected to the PIC at portA.0 and port A.1. I have a square wave output from the RTC that is working properly so the chip is oscillating. As a test, I am writing a value to the RTC Ram and then trying to read it back again and displaying it. The problem is that I cannot seem to write and read back values. I have used a simple conversion routine to convert the BCD values to ascii for display and have test this routine and it works fine. I was wondering if there was something about port A that causes it to not work well as an I2C bus. Both data and clock lines have pull up resistors and the battery input on the RTC is grounded. I am using PB Pro compiler. The code is really straight forward using PBP. Any ideas would be really appreciated.

Thanks

Tim