rtc4
2.0.0.0
|
RTC 4 click carries DS2417, a real time clock/calendar with a 1-Wire MicroLAN interface and a programmable interrupt for system output.
We provide a library for the RTC 4 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 4 Click driver.
rtc4_cfg_setup
Config Object Initialization function. rtc4_init
Initialization function. rtc4_get_interrupt
This function checks the interrupt state of the DS2417 Real time clock/calendar. rtc4_set_date_time
This function sets date and time structure along with interrupt interval. rtc4_get_date_time
This function gets RTC4 time and date structure. This example demonstrates the use of the RTC 4 click board.
The demo application is composed of two sections :
Initializes the driver and logger and then sets the starting time to 23:59:50 and date to 31.12.2022.
With the usage of rtc4_get_date_time we get the time and date from the register and display them on the UART Terminal. The counter increments 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.