Skip to content

Commit 1384818

Browse files
dipakgmxkartben
authored andcommitted
boards: shields: add Mikroe RTC 18 Click shield
Add MikroElektronika RTC 18 Click shield support. Signed-off-by: Dipak Shetty <[email protected]>
1 parent 15d398d commit 1384818

File tree

5 files changed

+82
-0
lines changed

5 files changed

+82
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Dipak Shetty
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_MIKROE_RTC_18_CLICK
5+
def_bool $(shields_list_contains,mikroe_rtc_18_click)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.. _mikroe_rtc_18_click_shield:
2+
3+
MikroElektronika RTC 18 Click
4+
#############################
5+
6+
Overview
7+
********
8+
9+
RTC 18 Click shield is built around the Micro Crystal **RV-3032-C7** temperature-compensated
10+
real-time clock (RTC) module.
11+
The module offers I²C communication, integrated timekeeping with leap year support, alarm and
12+
interrupt features, and a battery backup switchover circuit.
13+
14+
The RTC is designed for high accuracy (≈ ±0.22 s/day) and extremely low power consumption, allowing
15+
it to retain time using a small backup battery when main supply is removed.
16+
17+
More information about the shield can be found at
18+
`Mikroe RTC 18 click`_.
19+
20+
.. figure:: rtc_18_click.webp
21+
:align: center
22+
:alt: MikroElektronika RTC 18 Click
23+
24+
MikroElektronika RTC 18 Click (Credit: MikroElektronika d.o.o.)
25+
26+
Requirements
27+
************
28+
29+
The shield uses a mikroBUS interface. The target board must define
30+
a ``mikrobus_i2c`` and ``mikrobus_header`` node labels
31+
(see :ref:`shields` for more details).
32+
33+
Programming
34+
***********
35+
36+
.. zephyr-app-commands::
37+
:zephyr-app: samples/drivers/rtc/
38+
:board: <board>
39+
:shield: mikroe_rtc_18_click
40+
:goals: build flash
41+
42+
References
43+
**********
44+
45+
.. target-notes::
46+
47+
.. _Mikroe RTC 18 click:
48+
https://www.mikroe.com/rtc-18-click
22.3 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025 Dipak Shetty
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
rtc = &rv3032c_mikroe_rtc_18_click;
9+
};
10+
};
11+
12+
&mikrobus_i2c {
13+
status = "okay";
14+
15+
rv3032c_mikroe_rtc_18_click: rv3032c@51 {
16+
status = "okay";
17+
compatible = "microcrystal,rv3032";
18+
reg = <0x51>;
19+
backup-switch-mode = "disabled";
20+
clkout-frequency = <0>;
21+
int-gpios = <&mikrobus_header 7 GPIO_ACTIVE_LOW>;
22+
};
23+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: mikroe_rtc_18_click
3+
full_name: RTC 18 Click
4+
vendor: mikroe
5+
supported_features:
6+
- rtc

0 commit comments

Comments
 (0)