# Title: RTC 16 Click Board™ ## Description: How Does The RTC 16 Click Board™ Work? The RTC 16 Click Board™ is based on the BU9873, an I2C configurable real-time clock/calendar optimized for low power operations from Rohm Semiconductors. The BU9873 is configured to perform the serial transmission of calendar and time data to the MCU and comes with an integrated interrupt generation function. It also contains a built-in high-precision oscillation adjustment circuit which enables the adjustment of time counts with a digital method and correct deviations in the oscillation frequency of the crystal oscillator. This RTC is also characterized by an automatic leap year recognition until the future 2099 year. The RTC 16 Click Board™ communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting a Fast Mode operation up to 400kHz. An alarm and interrupt function is also available that outputs an interrupt signal to the INT pin of the mikroBUS™ socket when the day of the week, hour, or minute matches with the preset time. An alarm may be selectable between ON and OFF for each day of the week, allowing outputting warning every day or on a specific day indicated by a red LED marked as ALARM. Besides, the RTC 16 Click also has an onboard header labelled CLKOUT, which provides clock pulses of 32kHz. The most common RTC configuration, like this one, is a battery-backed up, which maintains time and continues its work without interruption in the event of a power failure. That's why, in addition to the BU9873, the RTC 16 Click is equipped with a button cell battery holder compatible with the 3000TR battery holder, suitable for 12mm Coin Cell batteries. The RTC 16 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library that contains easy-to-use functions and an example code that can be used, as a reference, for further development. SPECIFICATIONS Type RTC Applications The RTC 16 Click Board™ can be used for various time-keeping applications, including daily alarms, metering applications, and others requiring an accurate RTC for their operation On-board modules BU9873 - CMOS real-time clock that has a built-in interrupt generation function from Rohm Semiconductors Key Features Low power consumption, clock/calendar feature, programmable periodic and alarm with interrupt capability, battery back-up, 32kHz clock output, automatic leap year recognition up to the year 2099, and more Interface I2C Compatibility mikroBUS Click board size M (42.9 x 25.4 mm) Input Voltage 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout of the RTC 16 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 INT Interrupt NC 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 SCL I2C Clock NC 6 MOSI SDA 11 SDA I2C Data Power Supply 3.3V 7 3.3V 5V 10 5V Power Supply Ground GND 8 GND GND 9 GND Ground ONBOARD SETTINGS AND INDICATORS Label Name Default Description LD1 PWR - Power LED Indicator LD2 ALARM - Alarm LED Indicator JP1 VCC SEL Left Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V J1 CLKOUT Unpopulated 32kHz Clock Output Header RTC 16 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Supply Voltage 3.3 - 5 V Clock Output CLKOUT - 32 - kHz Operating Temperature Range -40 +25 +85 °C ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, Clock Timing, ROHM, RTC ## Price range: 11.2 - 11.2 GBP ## Link: https://thedebugstore.com/products/mikroe-5083-rtc-16-click-board-uk ## Compare-at price range: 16.0 - 16.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [ROHM Semiconductor Device Support: Development Boards & Tools](https://thedebugstore.com/a/llms/collections/devices-rohm) - [Clock & Timing Click Boards™](https://thedebugstore.com/a/llms/collections/clock-timing-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Real-Time Clock (RTC) Click Boards™](https://thedebugstore.com/a/llms/collections/rtc-real-time-clock-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-5083, Available: yes, Inventory: 1 ## Metafields - title_tag: MikroE RTC 16 Click Board™ (MIKROE-5083) - description_tag: The RTC 16 Click Board™ is a compact add-on board that accurately keeps the time of a day. This board features the BU9873, a CMOS real-time clock that has a built-in interrupt generation function from Rohm Semiconductors. Available from Debug Store UK. - badge: - widget:

Customer Reviews

Be the first to write a review
0%
(0)
0%
(0)
0%
(0)
0%
(0)
0%
(0)
- subtitle: Real Time Clock with Calendar and Alarm - feature_1: Based on the BU9873, a CMOS real-time clock that has a built-in interrupt generation function from Rohm Semiconductors - feature_2: Low power consumption, clock/calendar feature, programmable periodic and alarm with interrupt capability, battery back-up, 32kHz clock output, automatic leap year recognition up to the year 2099, and more - feature_3: Can be used for various time-keeping applications, including daily alarms, metering applications, and others requiring an accurate RTC for their operation - manufacturer: Mikroelektronika d.o.o. - warranty: 12 months - backorder_label: If no stock shown above, check availability - full_description:

How Does The RTC 16 Click Board™ Work?

The RTC 16 Click Board™ is based on the BU9873, an I2C configurable real-time clock/calendar optimized for low power operations from Rohm Semiconductors. The BU9873 is configured to perform the serial transmission of calendar and time data to the MCU and comes with an integrated interrupt generation function. It also contains a built-in high-precision oscillation adjustment circuit which enables the adjustment of time counts with a digital method and correct deviations in the oscillation frequency of the crystal oscillator. This RTC is also characterized by an automatic leap year recognition until the future 2099 year.

RTC 16 Click inner

The RTC 16 Click Board™ communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting a Fast Mode operation up to 400kHz. An alarm and interrupt function is also available that outputs an interrupt signal to the INT pin of the mikroBUS™ socket when the day of the week, hour, or minute matches with the preset time. An alarm may be selectable between ON and OFF for each day of the week, allowing outputting warning every day or on a specific day indicated by a red LED marked as ALARM. Besides, the RTC 16 Click also has an onboard header labelled CLKOUT, which provides clock pulses of 32kHz.

The most common RTC configuration, like this one, is a battery-backed up, which maintains time and continues its work without interruption in the event of a power failure. That's why, in addition to the BU9873, the RTC 16 Click is equipped with a button cell battery holder compatible with the 3000TR battery holder, suitable for 12mm Coin Cell batteries.

The RTC 16 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library that contains easy-to-use functions and an example code that can be used, as a reference, for further development.

SPECIFICATIONS

Type RTC
Applications The RTC 16 Click Board™ can be used for various time-keeping applications, including daily alarms, metering applications, and others requiring an accurate RTC for their operation
On-board modules BU9873 - CMOS real-time clock that has a built-in interrupt generation function from Rohm Semiconductors
Key Features Low power consumption, clock/calendar feature, programmable periodic and alarm with interrupt capability, battery back-up, 32kHz clock output, automatic leap year recognition up to the year 2099, and more
Interface I2C
Compatibility mikroBUS
Click board size M (42.9 x 25.4 mm)
Input Voltage 3.3V or 5V

PINOUT DIAGRAM

This table shows how the pinout of the RTC 16 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).

Notes Pin Mikrobus logo.png Pin Notes
NC 1 AN PWM 16 NC
NC 2 RST INT 15 INT Interrupt
NC 3 CS RX 14 NC
NC 4 SCK TX 13 NC
NC 5 MISO SCL 12 SCL I2C Clock
NC 6 MOSI SDA 11 SDA I2C Data
Power Supply 3.3V 7 3.3V 5V 10 5V Power Supply
Ground GND 8 GND GND 9 GND Ground

ONBOARD SETTINGS AND INDICATORS

Label Name Default Description
LD1 PWR - Power LED Indicator
LD2 ALARM - Alarm LED Indicator
JP1 VCC SEL Left Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V
J1 CLKOUT Unpopulated 32kHz Clock Output Header

RTC 16 CLICK ELECTRICAL SPECIFICATIONS

Description Min Typ Max Unit
Supply Voltage 3.3 - 5 V
Clock Output CLKOUT - 32 - kHz
Operating Temperature Range -40 +25 +85 °C

 

- examples:

We provide a library for the RTC 16 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 The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.

Library Description

This library contains API for the RTC 16 Click Board™ driver.

Key functions

Example Description

This example demonstrates the use of the RTC 16 Click Board™ by reading and displaying the time and date values.

void application_task ( void ) 
 { 
     // Wait for interrupt which is synchronized with second count-up 
     while ( rtc16_get_int_pin ( &rtc16 ) ); 

     rtc16_clear_interrupts ( &rtc16 ); 
     if ( RTC16_OK == rtc16_read_time ( &rtc16, &time ) ) 
     { 
         log_printf( &logger, " Time: %.2u:%.2u:%.2urn",  
                     ( uint16_t ) time.hour, ( uint16_t ) time.minute, ( uint16_t ) time.second ); 
     } 
     if ( RTC16_OK == rtc16_read_date ( &rtc16, &date ) ) 
     { 
         log_printf( &logger, " Date: %s, %.2u.%.2u.20%.2u.rnn",  
                     rtc16_get_day_of_week_name ( date.day_of_week ), 
                     ( uint16_t ) date.day, ( uint16_t ) date.month, ( uint16_t ) date.year ); 
     } 
 }

The full application code, and ready to use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on MikroE Github account.

Other MikroE Libraries used in the example:

Additional Notes and Information

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.

MIKROSDK

The RTC 16 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.

- attachments: [{"download_file":[{"download_file":"RTC 16 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Rohm Semiconductor BU9873 Real-Time-Clock Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - mpn: MIKROE-5083 - mpn: MIKROE-5083 - custom_label_0: Click Board - google_product_category: Electronics - condition: new - custom_product: false - key_feature_2: Based on the BU9873, a CMOS real-time clock that has a built-in interrupt generation function from Rohm Semiconductors - key_feature_3: Low power consumption, clock/calendar feature, programmable periodic and alarm with interrupt capability, battery back-up, 32kHz clock output, automatic leap year recognition up to the year 2099, and more - key_feature_4: Can be used for various time-keeping applications, including daily alarms, metering applications, and others requiring an accurate RTC for their operation - device_vendor: Rohm Semiconductor - device_type: BU9873NUX-TTR - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: RTC 16 Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241544429757","gid://shopify/Collection/279407165629"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The RTC 16 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"RTC 16 Click Board™","bold":true},{"type":"text","value":" is based on the BU9873, an I2C configurable real-time clock/calendar optimized for low power operations from Rohm Semiconductors. The BU9873 is configured to perform the serial transmission of calendar and time data to the MCU and comes with an integrated interrupt generation function. It also contains a built-in high-precision oscillation adjustment circuit which enables the adjustment of time counts with a digital method and correct deviations in the oscillation frequency of the crystal oscillator. This RTC is also characterized by an automatic leap year recognition until the future 2099 year."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"RTC 16 Click Board™ ","bold":true},{"type":"text","value":"communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting a Fast Mode operation up to 400kHz. An alarm and interrupt function is also available that outputs an interrupt signal to the INT pin of the mikroBUS™ socket when the day of the week, hour, or minute matches with the preset time. An alarm may be selectable between ON and OFF for each day of the week, allowing outputting warning every day or on a specific day indicated by a red LED marked as ALARM. Besides, the RTC 16 Click also has an onboard header labelled CLKOUT, which provides clock pulses of 32kHz."}]},{"type":"paragraph","children":[{"type":"text","value":"The most common RTC configuration, like this one, is a battery-backed up, which maintains time and continues its work without interruption in the event of a power failure. That's why, in addition to the BU9873, the RTC 16 Click is equipped with a button cell battery holder compatible with the 3000TR battery holder, suitable for 12mm Coin Cell batteries."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"RTC 16 Click Board™","bold":true},{"type":"text","value":" can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library that contains easy-to-use functions and an example code that can be used, as a reference, for further development."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nRTC\nApplications\nThe RTC 16 Click Board™ can be used for various time-keeping applications, including daily alarms, metering applications, and others requiring an accurate RTC for their operation\nOn-board modules\nBU9873 - CMOS real-time clock that has a built-in interrupt generation function from Rohm Semiconductors\nKey Features\nLow power consumption, clock/calendar feature, programmable periodic and alarm with interrupt capability, battery back-up, 32kHz clock output, automatic leap year recognition up to the year 2099, and more\nInterface\nI2C\nCompatibility\nmikroBUS\nClick board size\nM (42.9 x 25.4 mm)\nInput Voltage\n3.3V or 5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout of the "},{"type":"text","value":"RTC 16 Click Board™","bold":true},{"type":"text","value":" corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nNC\nNC\n2\nRST\nINT\n15\nINT\nInterrupt\nNC\n3\nCS\nRX\n14\nNC\nNC\n4\nSCK\nTX\n13\nNC\nNC\n5\nMISO\nSCL\n12\nSCL\nI2C Clock\nNC\n6\nMOSI\nSDA\n11\nSDA\nI2C Data\nPower Supply\n3.3V\n7\n3.3V\n5V\n10\n5V\nPower Supply\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nLD1\nPWR\n-\nPower LED Indicator\nLD2\nALARM\n-\nAlarm LED Indicator\nJP1\nVCC SEL\nLeft\nLogic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V\nJ1\nCLKOUT\nUnpopulated\n32kHz Clock Output Header"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"RTC 16 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage\n3.3\n-\n5\nV\nClock Output CLKOUT\n-\n32\n-\nkHz\nOperating Temperature Range\n-40\n+25\n+85\n°C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:

The RTC 16 Click Board™ is a compact add-on board that accurately keeps the time of a day. This board features the BU9873, a CMOS real-time clock with a built-in interrupt generation function from Rohm Semiconductors. The BU9873 provides year, month, day, weekday, hours, minutes, and seconds based on a 32.768kHz quartz crystal. This RTC is connected to the MCU through an I2C interface and configured to serial transmit time and calendar data. It also has an alarm function that outputs an interrupt signal to the MCU when the day of the week, hour, or minute matches the preset time. This Click board™ is suitable for various time-keeping applications, including daily alarms, metering applications, and others requiring an accurate RTC for their operation.

The RTC 16 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.