rtc18 2.0.0.0
|
RTC 18 Click is a compact add-on board that accurately keeps the time of a day. This board features the RV-3032-C7, an I2C-configurable real-time clock module that incorporates an integrated CMOS circuit and an XTAL from Micro Crystal AG. The RV-3032-C7 is a temperature compensated RTC with premium accuracy (0.22 sec/day) and extremely low power consumption, allowing it to be used with a single button cell battery for an extended period. It can measure temperature with a typical accuracy of ±1°C and a resolution of 0.0625°C/step with a programmable alarm on top and bottom temperature limits. It features standard RTC functions with automatic leap year correction, and standard interrupt for Periodic Countdown Timer and Periodic Time Update (seconds, minutes), date/hour/minute alarm, and an external event.
We provide a library for the RTC 18 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 18 Click driver.
rtc18_cfg_setup
Config Object Initialization function. rtc18_init
Initialization function. rtc18_default_cfg
Click Default Configuration function. rtc18_read_time
This function reads the current time values - second, minute and hour. rtc18_read_date
This function reads the current date values - day of week, day, month and year. rtc18_read_temperature
This function reads temperature measurements in Celsius. This example demonstrates the use of RTC 18 click board by reading and displaying the time and date values as well as the temperature measurements in Celsius.
The demo application is composed of two sections :
Initializes the driver and logger and performs the click default configuration which enables the periodic interrupt on seconds count-up, and sets the starting time and date.
Waits for the second count-up interrupt and then reads and displays on the USB UART the current time and date values as well as the temperature measurements in Celsius.
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.