-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ds3231: add Maxim DS3231 real time clock example captures
Submitted-By: ascuber <[email protected]>
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
------------------------------------------------------------------------------- | ||
Maxim Integrated DS3231 RTC | ||
------------------------------------------------------------------------------- | ||
|
||
Details: | ||
- DS3231 datasheet: https://datasheets.maximintegrated.com/en/ds/DS3231.pdf | ||
|
||
|
||
Logic analyzer setup | ||
-------------------- | ||
|
||
The logic analyzer used was Geeetech Mini Board Cypress FX2(LP) eval board | ||
with fx2lafw firmware (at 4MHz): | ||
|
||
Probe DS3231 pin | ||
------------------------- | ||
0 SCL | ||
1 SDA | ||
|
||
|
||
ds3231_ex1.sr | ||
---------------------- | ||
|
||
The file provides reading/writing of time keeping registers as well as | ||
control, control/status and temperature registers of the RTC chip, which | ||
was setup to 24-hours mode: | ||
|
||
- Read Control register | ||
- Write Control register - disable alarms | ||
- Read Control/Status register | ||
- Write Control/Status register - clear alarm's flags | ||
- Write Alarm 1 registers - set Alarm 1 at every 1st date | ||
- Write Alarm 2 registers - set Alarm 2 at every minute | ||
- Read date/time | ||
- Read temperature (MSB) | ||
|
||
|
||
ds3231_ex2.sr | ||
---------------------- | ||
|
||
The file provides reading/writing of time keeping registers as well as | ||
control/status and temperature registers of the RTC chip, which was setup | ||
to 24-hours mode and after Alarm 2 occured: | ||
|
||
- Read Control/Status register | ||
- Write Control/Status register - clear alarm flag | ||
- Read date/time | ||
- Read temperature (MSB) |
Binary file not shown.
Binary file not shown.