TOP Contributors

  1. MIKROE (2745 codes)
  2. Alcides Ramos (371 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (138914 times)
  2. FAT32 Library (71500 times)
  3. Network Ethernet Library (56914 times)
  4. USB Device Library (47269 times)
  5. Network WiFi Library (42993 times)
  6. FT800 Library (42282 times)
  7. GSM click (29724 times)
  8. mikroSDK (27668 times)
  9. PID Library (26828 times)
  10. microSD click (26087 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

RTC 11 click

Rating:

5

Author: MIKROE

Last Updated: 2020-10-27

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: RTC

Downloaded: 1713 times

Not followed.

License: MIT license  

RTC 11 Click is a compact add-on board that contains a real-time clock IC designed to maximize battery life and reduce overall battery requirements in wearable applications. This board features the AB0815, an ultra-low-power coupled with a highly sophisticated feature set the real-time clock from Abracon LLC.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "RTC 11 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "RTC 11 click" changes.

Do you want to report abuse regarding "RTC 11 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

RTC 11 Click

RTC 11 Click

Native view of the RTC 11 Click board.

View full image
RTC 11 Click

RTC 11 Click

Front and back view of the RTC 11 Click board.

View full image

Library Description

The library covers all the necessary functions that enables the usage of the RTC 11 Click board. User can set or read time, date, day of the week, alarm, change settings, or use generic read and write functions.

Key functions:

  • void rtc11_set_time ( uint8_t t_hrs, uint8_t t_min, uint8_t t_sec ); - Function is used to set system time.
  • void rtc11_get_time ( uint8_t *t_hrs, uint8_t *t_min, uint8_t *t_sec ); - Function is used to get current system time.
  • void rtc11_get_date ( uint8_t *w_day, uint8_t *d_day, uint8_t *d_mon, uint8_t *d_yrs ); - Function is used to get system date.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes GPIO, SPI and LOG structures, sets INT and PWM pins as input, and AN, RST and CS pins as output, and start to write log.
  • Application Initialization - Initalizes SPI, performs software reset, sets system time and date, and starts clocking system.
  • Application Task - Demonstrates use of RTC 11 click board by reading and displaying time and date via USART terminal.
void application_task ( )
{
    rtc11_get_time ( &t_hrs, &t_min, &t_sec );
    Delay_ms( 10 );
    rtc11_get_date ( &w_day, &d_day, &d_mon, &d_yrs );
    Delay_ms( 10 );
    if ( sec_flag != t_sec )
    {
        mikrobus_logWrite( " Time: ", _LOG_TEXT );
        ByteToStr( t_hrs, log_txt );
        ltrim( log_txt );
        mikrobus_logWrite( log_txt, _LOG_TEXT );
        mikrobus_logWrite( ":", _LOG_TEXT );
        ByteToStr( t_min, log_txt );
        ltrim( log_txt );
        mikrobus_logWrite( log_txt, _LOG_TEXT );
        mikrobus_logWrite( ":", _LOG_TEXT );
        ByteToStr( t_sec, log_txt );
        ltrim( log_txt );
        mikrobus_logWrite( log_txt, _LOG_TEXT );
        mikrobus_logWrite( "", _LOG_LINE );
        mikrobus_logWrite( " Date: ", _LOG_TEXT );
        disp_day_of_the_week( w_day );
        mikrobus_logWrite( "/", _LOG_TEXT );
        ByteToStr( d_day, log_txt );
        ltrim( log_txt );
        mikrobus_logWrite( log_txt, _LOG_TEXT );
        mikrobus_logWrite( "/", _LOG_TEXT );
        ByteToStr( d_mon, log_txt );
        ltrim( log_txt );
        mikrobus_logWrite( log_txt, _LOG_TEXT );
        mikrobus_logWrite( "/", _LOG_TEXT );
        ByteToStr( d_yrs, log_txt );
        ltrim( log_txt );
        mikrobus_logWrite( "20", _LOG_TEXT );
        mikrobus_logWrite( log_txt, _LOG_TEXT );
        mikrobus_logWrite( "/", _LOG_TEXT );
        mikrobus_logWrite( "", _LOG_LINE );
    }
    sec_flag =  t_sec;
}


Additional Function :

  • void disp_day_of_the_week ( uint8_t w_day ) - Writes the day of the week on USART terminal.

Other mikroE Libraries used in the example:

  • SPI
  • UART
  • Conversions

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

Comparator click

5

Comparator click can be used with a single or dual power supply. If a single power supply is used, the offset voltage can be as low as 2.0 mV, with a range from 2.0 VDC to 36 VDC. For dual supplies, the range is from ±1.0 VDC to ±18 VDC. The resulting output is compatible with TTL, DTL, ECL, MOS and CMOS logic systems.

[Learn More]

Clock Gen click

0

Clock Gen Click offers an ideal replacement for crystals, crystal oscillators, VCXOs, phase-locked loops (PLLs), and fanout buffers in cost-sensitive applications. This click features the Si5351A from Silicon Labs, an I2C configurable clock generator based on a PLL + high resolution MultiSynth fractional divider architecture which can generate any frequency up to 200 MHz on each of its outputs with 0 ppm error.

[Learn More]

GPS click - L10 - Examples

0

Simple example which demonstrates usage of the GPS Click board with QUECTEL GPS module.
It displays a map of the world on the TFT and shows the location of the GPS module on it.
Also it displays current coordinates of GPS receiver.

[Learn More]