Mikroelektronika d.o.o.
RTC 21 Click Board
RTC 21 Click Board
Couldn't load pickup availability
Key Features:
- Low power consumption, programmable square-wave output, high-speed I2C interface, clock/calendar counter, 24-hour format, 56 bytes RAM, automatic lepa year compensation, automatic backup switchover, and more
- Based on the PT7C4311 - real-time clock (RTC) from Diodes Incorporated
- Can be used for various time-keeping applications, including daily alarms, metering applications, and others requiring an accurate RTC for their operation
- mikroBUS: I2C Interface
Introducing the RTC 21 Click Board™ - Your Compact and Accurate Time-Keeping Solution
Looking for a reliable way to keep track of time? The RTC 21 Click Board™ is here to help! This compact add-on board is designed to accurately keep the time of the day and provide you with a range of valuable features to enhance your experience.
Advanced Features for Accurate Time-Keeping
The RTC 21 Click Board™ features the PT7C4311, an I2C-configurable real-time clock module from Diodes Incorporated. With time and calendar functions, you can easily access information such as hour, minute, second, day, date, month, year, and century. Plus, the board operates in a 24-hour format indicator, has automatic leap year compensation, and low power consumption, making it an ideal solution for various time-keeping applications.
Simplify Your Software Development
The RTC 21 Click Board™ is fully supported by a mikroSDK compliant library, which includes functions that simplify software development. With the Click board™ coming as a fully tested product, you can be sure that it's ready to be used on a system equipped with the mikroBUS™ socket, making it an easy and hassle-free solution for your time-keeping needs.
Get Your RTC 21 Click Board™ Today
Don't settle for anything less than the best when it comes to keeping track of time. Order your RTC 21 Click Board™ today and experience the accuracy and reliability you need for your daily alarms, metering applications, and other time-sensitive operations.
![Mikroelektronika d.o.o. MIKROE-5541 RTC 21 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-rtc-21-click-board-39612843163871.jpg?v=1685078390&width=1445)
![Mikroelektronika d.o.o. MIKROE-5541 RTC 21 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-rtc-21-click-board-39612843393247.jpg?v=1685078398&width=1445)
![Mikroelektronika d.o.o. MIKROE-5541 RTC 21 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-rtc-21-click-board-39612843524319.jpg?v=1685078563&width=1445)
![Mikroelektronika d.o.o. MIKROE-5541 RTC 21 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-rtc-21-click-board-39612843458783.jpg?v=1685078383&width=1445)
![Mikroelektronika d.o.o. MIKROE-5541 RTC 21 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-rtc-21-click-board-39612843262175.jpg?v=1685078396&width=1445)
![Mikroelektronika d.o.o. MIKROE-5541 RTC 21 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-rtc-21-click-board-39612843196639.jpg?v=1685078393&width=1445)
![Mikroelektronika d.o.o. MIKROE-5541 RTC 21 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-rtc-21-click-board-39612843327711.jpg?v=1685078404&width=1445)
![Mikroelektronika d.o.o. MIKROE-5541 RTC 21 Click Board™ - The Debug Store UK](http://thedebugstore.com/cdn/shop/products/mikroelektronika-d-o-o-click-board-rtc-21-click-board-39612843426015.jpg?v=1685078386&width=1445)
How Does The RTC 21 Click Board™ Work?
The RTC 21 Click Board™ is based on the PT7C4311, an ultra-low power, real-time clock (RTC) time-keeping device from Diodes Incorporated. The PT7C4311 is configured to transmit calendar and time data to the MCU (24-hour format) based on a 32.768kHz quartz crystal and comes with 56 bytes of general-purpose RAM. It reads and writes clock/calendar data from and to the MCU in units ranging from seconds to the last two digits of the calendar year, providing seconds, minutes, hours, dates, days, months, year, and century information. The end-of-the-month date is automatically adjusted for months with fewer than 31 days, including corrections for the leap year until 2100.
The RTC 21 Click Board™ communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting a Fast Mode operation up to 400kHz. It also incorporates one open-drain output labelled as FT, which can be used as a frequency test signal (512Hz square-wave password for frequency test purposes) or as a register-configurable output DC level when square-wave is disabled. The PT7C4311 also includes an automatic backup switchover circuit allowing it to be used with a single-button cell battery for an extended period.
The RTC 21 Click Board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | RTC |
Applications | Can be used for various time-keeping applications, including daily alarms, metering applications, and others requiring an accurate RTC for their operation |
On-board modules | PT7C4311 - real-time clock (RTC) from Diodes Incorporated |
Key Features | Low power consumption, programmable square-wave output, high-speed I2C interface, clock/calendar counter, 24-hour format, 56 bytes RAM, automatic lepa year compensation, automatic backup switchover, and more |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout of the RTC 21 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | ![]() |
Pin | Notes | |||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | FT | Frequency Test/DC Level | |
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
RTC 21 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Memory Size | - | - | 56 | bytes |
Date Format | YY-MM-DD | |||
Time Format | HH:MM:SS (24 hr) |
Software Support
Software Support
We provide a library for the RTC 21 Click Board™ as well as a demo application (example), developed using MikroE compilers. The demo can run on all the main MikroE development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Library Description
This library contains API for the RTC 21 Click Board™ driver.
Key functions
-
rtc21_set_time
This function sets the starting time values - second, minute and hour. -
rtc21_set_date
This function sets the starting date values - day of week, day, month and year. -
rtc21_read_time
This function reads the current time values - second, minute and hour.
Example Description
This example demonstrates the use of the RTC 21 Click Board™ by reading and displaying the time and date values.
void application_task ( void )
{
if ( RTC21_OK == rtc21_read_time ( &rtc21, &time ) )
{
log_printf( &logger, " Time: %.2u:%.2u:%.2urn",
( uint16_t ) time.hour, ( uint16_t ) time.minute, ( uint16_t ) time.second );
}
if ( RTC21_OK == rtc21_read_date ( &rtc21, &date ) )
{
log_printf( &logger, " Date: %s, %.2u.%.2u.20%.2u.rn",
rtc21_get_day_of_week_name ( date.day_of_week ),
( uint16_t ) date.day, ( uint16_t ) date.month, ( uint16_t ) date.year );
}
Delay_ms ( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.RTC21
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. A UART terminal is available in all MikroE compilers.
MIKROSDK
The RTC 21 Click Board™ is supported with mikroSDK - MikroE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from LibStock and installed for the compiler you are using.
RTC 21 Click Board
Frequently Asked Questions
Ask a Question-
What kind of applications is the RTC 21 Click Board™ suitable for?
The RTC 21 Click Board™ is suitable for a variety of time-sensitive applications, including daily alarms, metering applications, and other time-sensitive operations.
-
How can the RTC 21 Click Board™ simplify software development?
The RTC 21 Click Board™ is fully supported by a mikroSDK compliant library, which includes functions that simplify software development. With the Click board™ coming as a fully tested product, you can be sure that it's ready to be used on a system equipped with the mikroBUS™ socket, making it an easy and hassle-free solution for your time-keeping needs.
-
What functions does the RTC 21 Click Board™ offer?
The RTC 21 Click Board™ offers a range of functions to accurately keep the time of the day, including hour, minute, second, day, date, month, year, and century. It operates in a 24-hour format indicator, has automatic leap year compensation, and low power consumption.
-
What is the RTC 21 Click Board™?
The RTC 21 Click Board™ is an add-on board that helps keep track of time. It features the PT7C4311, an I2C-configurable real-time clock module from Diodes Incorporated, which provides time and calendar functions, making it an ideal solution for various time-keeping applications.