Lines Matching +full:output +full:- +full:clk +full:- +full:en
1 .. zephyr:code-sample:: ds3231
3 :relevant-api: counter_interface
5 Interact with a DS3231 real-time clock using the counter API and dedicated driver API.
10 The `DS3231`_ temperature-compensated real-time clock is a
11 high-precision (2 ppm) battery backed clock that maintains civil time
15 Annotated Example Output
20 DS3231 has recorded a loss-of-oscillator::
22 ***** Booting Zephyr OS build zephyr-v1.14.0-2409-g322d53aedaa0 *****
37 Now 1563512509: 2019-07-19 05:01:49 Fri 200
46 which in the output below is 34 ms in the past. The time required to
50 Set 2019-07-19 06:00:00.034000000 Fri 200 at 34 ms past: 0
55 to an RTC one-second rollover)::
62 The alarm configuration is read from non-volatile memory and displayed.
70 representation displayed. The second-resolution alarm is configured to
71 fire at that time on the current day-of-week. The minute-resolution
74 Min Sec base time: 2019-07-19 06:00:07 Fri 200
75 Set sec alarm 90 at 1563516007 ~ 2019-07-19 06:00:07 Fri 200: 5
76 Set min alarm flags f at 1563516007 ~ 2019-07-19 06:00:07 Fri 200: 7
79 and displayed. Alarms do not include date but can include day-of-week
80 or day-of-month; the date is selected to preserve that information::
83 Sec alarm flags 10 at 252914407 ~ 1978-01-06 06:00:07 Fri 006
84 Min alarm flags e at 252374400 ~ 1977-12-31 00:00:00 Sat 365
86 The second-resolution alarm was signalled, and processed by the
97 From here on the sample sleeps except when the minute-resolution alarm
99 nanosecond-resolution offset in seconds between the RTC time and the
101 error between local and RTC time measured in parts-per-million::
103 2019-07-19 06:01:00 Fri 200: adj 0.002000000, uptime 0:01:00.002, clk err 34 ppm
104 2019-07-19 06:02:00 Fri 200: adj 0.003000000, uptime 0:02:00.004, clk err 25 ppm
105 2019-07-19 06:03:00 Fri 200: adj 0.005000000, uptime 0:03:00.005, clk err 28 ppm
106 2019-07-19 06:04:00 Fri 200: adj 0.006000000, uptime 0:04:00.007, clk err 25 ppm
107 2019-07-19 06:05:00 Fri 200: adj 0.008000000, uptime 0:05:00.008, clk err 26 ppm
109 The output shows that the Zephyr system clock is running about 25 ppm
122 .. zephyr-app-commands::
123 :zephyr-app: samples/drivers/counter/maxim_ds3231
124 :board: particle-xenon
130 .. zephyr-app-commands::
131 :zephyr-app: samples/drivers/counter/maxim_ds3231
138 .. zephyr-app-commands::
139 :zephyr-app: samples/drivers/counter/maxim_ds3231
146 .. zephyr-app-commands::
147 :zephyr-app: samples/drivers/counter/maxim_ds3231
153 https://www.maximintegrated.com/en/products/analog/real-time-clocks/DS3231.html