DS3232M RTC demo program. Tested on the K64F (this example) and the KL25Z, but should work on any platform by changing the SDA and SCL pins. USB serial baud rate is 230400, tested on TeraTerm. Demo includes setting the DS3232's time, turning on and off the 32KHz and 1Hz outputs and accessing the DS3232's temperature. Also included are DS3232 user RAM access tests and user RAM CRC data calculations. Since user RAM is battery backed up, CRC routines are included to insure that the data stored in user RAM is intact.
Dependencies: ds3232m mbed mbed-rtos
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
4:df12939cba66 | 2016-03-11 | loopsva | Updated support for v6 of ds3232m library |
3:f0eb506d4add | 2014-12-25 | loopsva | Using updated, non-RTOS ds3232m library only. No other changes made. |
2:958004aa28a4 | 2014-12-23 | loopsva | Added checks in main() to test for user RAM access errors. |
1:c891c3930f4e | 2014-12-19 | loopsva | Additional example commands to save and restore text strings in DS3232 user RAM, display user RAM CRC16 data, RTOS hooks. The RTOS can be enabled by un-commenting line #define "rtos.h". Tested on K64F (this example) and the KL25Z, with and w/o RTOS |
0:8d18e427a06b | 2014-12-08 | loopsva | DS3232M RTC demo program |