rtc8
2.0.0.0
|
RTC 8 click is a real time clock module which has an extremely low power consumption, allowing it to be used with a single button cell battery, for an extended period of time.
We provide a library for the Rtc8 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Rtc8 Click driver.
rtc8_cfg_setup
Config Object Initialization function. rtc8_init
Initialization function. rtc8_default_cfg
Click Default Configuration function. rtc8_set_time
Set new time - 24 hour format rtc8_set_date
Set new date rtx8_get_time_and_date
Get RTC data ( Time and Data ) Demo application shows the operation of RTC 8 clicks.
The demo application is composed of two sections :
Configuring clicks and log objects. Settings the click in the default configuration. Sets new: Time, Date, UNIX time and alarm data.
Read current Time, Date and UNIX time and checks if the alarm is active.
Comment out the lines for setting date and time if you would like the module to keep counting time after a reset or shut down.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.