i want to make Digital clock using 89S51/52.
i have selected components RTC IC-DS1307, 16x2 LCD, 4X4 Matrix Keyboard and micro-controller.
i am not getting any clue how to do coding for RTC and how to integrate RTC with this all above components of this circuit.
yes, there are only two lines like EEPROM-24CXX..
one is SCL-Serial Clock and SDA-Serial Data.
so, is it necessary to use I2C protocol..?
and one more thing simranji, i am confused about how to integrate all this interfacing code in a single one...???
yes, there are only two lines like EEPROM-24CXX..
one is SCL-Serial Clock and SDA-Serial Data.
so, is it necessary to use I2C protocol..?
and one more thing simranji, i am confused about how to integrate all this interfacing code in a single one...???
Thank you Very much MVS SARMAji...
i have already reffered it but i am confused about that how can i embed the code of RTC with my LCD interfacing code in the application.
Thank you Very much MVS SARMAji...
i have already reffered it but i am confused about that how can i embed the code of RTC with my LCD interfacing code in the application.
Your application will have to have 2 main subroutines, one to read the time from the RTC and one to display the data to your LCD. You will also need some subroutine to set the time/date initially.
When I suggested using the search facility earlier, I wasn't trying to be nasty. If you search this site for DS1307 there is about 40 threads with information.
Almost all PIC's have a small area of data EEPROM for non-volatile storage, if your old processor doesn't you may have to add an external EEPROM?.
However, most clock IC's also have EEPROM storage space, doesn't the one you're using? - in fact many clock IC's have internal alarm facilities as well!.
Almost all PIC's have a small area of data EEPROM for non-volatile storage, if your old processor doesn't you may have to add an external EEPROM?.
However, most clock IC's also have EEPROM storage space, doesn't the one you're using? - in fact many clock IC's have internal alarm facilities as well!.
Check the datasheet, only India seems to use those old chips - but like I said, and Eric confirmed, your clock chip includes EEPROM as most do - store the values in there.
Check the datasheet, only India seems to use those old chips - but like I said, and Eric confirmed, your clock chip includes EEPROM as most do - store the values in there.