Lines Matching +full:boot +full:- +full:delay +full:- +full:ms
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
18 The sample first displays the boot banner, board name and
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
45 and the clock will be set to align that time with the time of the boot,
46 which in the output below is 34 ms in the past. The time required to
47 synchronize the clock is 967 ms, and the whole second value of one
48 second past the hour is written at 1000 ms local uptime::
50 Set 2019-07-19 06:00:00.034000000 Fri 200 at 34 ms past: 0
51 Synchronize final: 0 0 in 967 ms
54 Then a synchronization point is read. This takes 894 ms (it must align
55 to an RTC one-second rollover)::
58 Synchronize complete in 894 ms: 0 0
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
78 We're now 2.131 ms into the run, at which point the alarms are read back
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::
82 2131 ms in: get alarms: 0 0
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
91 Sec signaled at 7002 ms, param 0x20000048, delay 1; set 7
95 Counter callback at 17001 ms, id 0, ticks 1563516017, ud 0x20000048
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
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