![]() ![]() More information are in the DS1307 RTC datasheet.ĭS1307 RTC driver (library) for CCS C compiler: ![]() The DS1307 uses an external 32.768KHz crystal and there is no need to add any resistors or capacitors with it. With this battery the DS1307 keeps time running even if the main power source is off. The following image shows the DS1307 pin configurations:Īnd the following image shows a typical operating circuit for the DS1307 RTC:Ī 3V battery can be connected between VBAT and GND which can be used as a backup supply input. This small chip can count seconds, minutes, hours, day of the week, day of month, month and year with leap-year up to year 2100. The DS1307 is an 8-pin integrated circuit that uses I2C protocol to communicate with master device (microprocessor, microcontroller …). The compiler used in this example is CCS C. This topic shows how to easily interface the DS1307 real time clock chip with PIC16F877A microcontroller where time and date are displayed on 16×2 LCD screen. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |