Please help me at C code for reading time from DS1407 on I2C bus.I am able to R/W data to an EEPROM on the same bus.But when i read the time i get 0xffff for hrs,mins and secs even after initializing the RTC chip.
Maxim have an application note specifically about Interfacing the DS1307 with an 8051-Compatible Microcontroller - have you read it?
"I am able to R/W data to an EEPROM on the same bus"
Can you read the RTC if you remove the EEPROM?
Of course i have gone through the note and i did not find any difference in communication protocol between EEPROM and RTC except EEPROM operates in 16 bit addressing mode whereas 8bit in case DS1307.
And more ever i have tried it by removing the EEPROM from the same bus. still am unable. please help me out..
thanks