rtc19 2.1.0.0
|
RTC 19 Click is a compact add-on board that measures the passage of real-time. This board features the MAX31334, an I2C-configurable real-time clock with an integrated power switch from Analog Devices. The MAX31334 provides information like seconds, minutes, hours, days, months, years, and dates based on a 32.768kHz quartz crystal through an I2C serial interface to transmit time and calendar data to the MCU. It also has an alarm function that outputs an interrupt signal to the MCU when the day of the week, hour, or minute matches with the pre-set time, as well as a programmable square-wave output, event detection input with timestamping, and backup supply.
We provide a library for the RTC 19 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 19 Click driver.
rtc19_cfg_setup
Config Object Initialization function. rtc19_init
Initialization function. rtc19_default_cfg
Click Default Configuration function. rtc19_set_time
This function sets the starting time values - second, minute and hour. rtc19_read_time
This function reads the current time values - second, minute and hour. rtc19_read_date
This function reads the current date values - day of week, day, month and year. This example demonstrates the use of RTC 19 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 performs the click default configuration which resets the device and sets the timer interrupt to 1 Hz. After that, it sets the starting time and date.
Waits for a timer countdown interrupt (1 Hz) and then reads and displays on the USB UART the current time and date values.
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.