rtc21 2.1.0.0
|
RTC 21 Click is a compact add-on board that accurately keeps the time of the day. This board features the PT7C4311, an I2C-configurable real-time clock module with programmable square-wave output from Diodes Incorporated. The PT7C4311 includes time and calendar functions providing various information such as 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, allowing it to be used with a single button cell battery for an extended period.
We provide a library for the RTC 21 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for RTC 21 Click driver.
rtc21_cfg_setup
Config Object Initialization function. rtc21_init
Initialization function. 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. This example demonstrates the use of RTC 21 click board by reading and displaying the time and date values.
The demo application is composed of two sections :
Initializes the driver and logger and then sets the starting time and date.
Reads and displays on the USB UART the current time and date values once per second.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, 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. UART terminal is available in all MikroElektronika compilers.