

This usually results with the clock being off by around five or so minutes per month. The main difference between the DS3231 and DS1370 is the accuracy of time-keeping.ĭS1307 comes with an external 32kHz crystal for time-keeping whose oscillation frequency is easily affected by external temperature. It’s highly immune to the external temperature changes. To avoid such slight drifts in crystal, DS3231 is driven by a 32kHz temperature compensated crystal oscillator (TCXO). This change in frequency can be negligible but it surely adds up. But the problem with these crystals is that external temperature can affect their oscillation frequency. Most RTC modules come with an external 32kHz crystal for time-keeping. Temperature Compensated Crystal Oscillator(TCXO) This can further be used as an interrupt due to alarm condition in many time-based applications. The other cool feature of this board comes with SQW pin, which outputs a nice square wave at either 1Hz, 4kHz, 8kHz or 32kHz and can be handled programmatically. It also provides two programmable time-of-day alarms.

The clock operates in either the 24-hour or 12-hour format with an AM/PM indicator.

The date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year (valid up to 2100). The chip maintains seconds, minutes, hours, day, date, month, and year information.
