The end of the month date is automatically adjusted for months with less than 31 days, including corrections for leap year. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information. Address and data are transferred serially via the 2-wire bi-directional bus. The DS1307 Serial Real Time Clock is a low-power, full BCD clock/calendar plus 56 bytes of nonvolatile SRAM. The DS1307 in this example is connected directly to two of the I/O ports on a DS5000 microcontroller and the 2-wire handshaking is handled by low-level drivers, which are discussed in this application note. The DS1307 Serial Real Time Clock, which incorporates a 2-wire serial interface, can be controlled using an 8051-compatible microcontroller. This application note provides information on how to interface a DS1307 real-time clock (RTC) to a microcontroller and provides some example code for accessing the part.
0 Comments
Leave a Reply. |