TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (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 (137033 times)
  2. FAT32 Library (70166 times)
  3. Network Ethernet Library (56035 times)
  4. USB Device Library (46357 times)
  5. Network WiFi Library (41973 times)
  6. FT800 Library (41302 times)
  7. GSM click (29079 times)
  8. mikroSDK (26519 times)
  9. PID Library (26452 times)
  10. microSD click (25449 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 9 click

Rating:

5

Author: MIKROE

Last Updated: 2020-07-23

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: RTC

Downloaded: 1775 times

Not followed.

License: MIT license  

RTC 9 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. This board features the M41T82, real-time clock (RTC) with battery switchover, from ST Microelectronics.

No Abuse Reported

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

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

Do you want to report abuse regarding "RTC 9 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 9 Click

RTC 9 Click

Native view of the RTC 9 Click board.

View full image
RTC 9 Click

RTC 9 Click

Front and back view of the RTC 9 Click board.

View full image

Library Description

The library contains basic functions for working with RTC 9 click. The user is enabled to adjust and read the time and date. it also has the ability to set alarms.

Key functions:

  • void rtc9_set_time( uint8_t hour, uint8_t min, uint8_t sec ) - Set new time - 24 hour format.
  • void rtc9_set_date ( uint8_t day, uint8_t day_of_week, uint8_t month, uint8_t year ) - Set new date.
  • void rtc9_wakeup ( void ) - Wake-up process.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes the I2C module and all necessary gpio pins.
  • Application Initialization - Starts waking the chip and sets the start time and date.
  • Application Task - It reads current time and date and logs to usb uart every 1000 ms.
void application_init ( )
{
    rtc9_i2c_driver_init
    ( 
        ( rtc9_obj_t )&_MIKROBUS1_GPIO, 
        ( rtc9_obj_t )&_MIKROBUS1_I2C, 
        RTC9_SLAVE_ADDRESS
    );
    Delay_ms( 500 );

    rtc9_wakeup( );

    rtc9_set_time( 12, 15, 45 );
    rtc9_set_date ( 20, RTC9_DAY_FRIDAY, RTC9_MONTH_MARCH, 20 );
}

void application_task ( )
{
    time_process( );
    date_process( );
    mikrobus_logWrite( "----------------------------------------", _LOG_LINE );
    Delay_ms( 1000 );
}

Additional Functions :

  • time_process ( ) - Reads and displays current time
  • date_process ( ) - Reads and displays current date

Other mikroE Libraries used in the example:

  • I2C
  • UART

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

Current Limit 9 click

0

Current Limit 9 Click is a compact add-on board representing a current-limiting solution for your application. This board features the NPS4053, a load switch with a precision adjustable current limit from Nexperia. It is a 5.5V, 55mΩ load switch that allows precise adjustment of the current limit in a range of 110mA up to 2.5A while preserving the constant current during the current limiting.

[Learn More]

Accel 15 click

0

Accel 15 Click is a compact add-on board that contains a longevity acceleration sensor. This board features the BMA490L, a high-performance 16-bit digital triaxial acceleration sensor with extended availability of up to ten years from Bosch Sensortech. It allows selectable full-scale acceleration measurements in ranges of ±2g, ±4g, ±8g, and ±16g in three axes with a configurable host interface that supports both I2C and SPI serial communication and with intelligent on-chip motion-triggered interrupt features. Intelligent signal processing and evaluation in the accelerometer ASIC enables advanced gesture recognition for numerous industrial IoT applications where low power consumption is vital. This Click board™ is suitable for home appliances, power tools, and other industrial products whose lifetime is essential.

[Learn More]

Smart DOF click

5

SmartDOF click features a highly advanced integrated system-in-package (SiP) solution with three different sensors on-chip: triaxial accelerometer, magnetometer, and triaxial gyroscope are all integrated on a same die, along with the powerful 32-bit ARM® Cortex®-M0+ MCU.

[Learn More]