RTC 12 Click Board
RTC 12 Click Board
Key Features:
- Can be used for portable applications, industrial and health-related time metering applications, and others requiring an accurate RTC for their operation.
- Based on the DS1343 - low-current RTC that consumes an extremely low timekeeping current permitting longer life from a backup supply source from Maxim Integrated
- Low power consumption, low timekeeping current of 250nA, RTC counts seconds, minutes, hours, days, dates, months, and years with year compensation valid through 2099, power-fail and switch circuitry, 96B battery-backed NV RAM, and more.
- Uses SPI Bus
The RTC 12 Click Board™ is a compact add-on board that measures the passage of time. This board features the DS1343, a low-current SPI-configurable real-time clock (RTC) from Maxim Integrated. This timekeeping device provides an extremely low standby current permitting longer life from a backup supply source. Its clock/calendar feature provides seconds, minutes, hours, day, date, month, and year information. The date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either 24-hour or 12-hour format with an AM/PM indicator.
The RTC 12 Click Board™ is suitable for portable applications, industrial and health-related time metering applications, and others requiring an accurate RTC for their operation.
Software Support
We provide a library for the RTC 12 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe Github account.
Library Description
This library contains an API for RTC 12 Click driver.
Key Functions
rtc12_cfg_setup
- Config Object Initialization function.rtc12_init
- Initialization function.rtc12_default_cfg
- Click the Default Configuration function.
Example Description
This is an example that demonstrates the use of the RTC 12 Click board™.
The demo application is composed of two sections :
void application_task ( void ) { rtc12_get_time( &rtc12, &time ); Delay_ms( 1 ); rtc12_get_date( &rtc12, &date ); Delay_ms( 1 ); if ( time.sec != new_sec ) { log_printf( &logger, " Date : %.2d-%.2d-%.2drn", ( uint16_t ) date.day, ( uint16_t ) date.month, ( uint16_t ) date.year ); log_printf( &logger, " Time : %.2d:%.2d:%.2drn", ( uint16_t ) time.hours, ( uint16_t ) time.min, ( uint16_t ) time.sec ); log_printf( &logger, "- - - - - - - - - - - -rn" ); new_sec = time.sec; Delay_ms( 1 ); } }
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.Rtc12
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The RTC 12 Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
RTC 12 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.