# Title: RTC 9 Click Board™ ## Description: How Does The RTC 9 Click Board™Work? The RTC 9 Click Board™ is based on the M41T82, an extreme low power real-time clock/calendar (RTC) module from ST Microelectronics. Thanks to its high integration level, this module provides high time accuracy, factory calibrated to ±5 ppm even after two reflows, with a very low count of external components required. It has a full RTC function, offering programmable counters, alarms, and an interrupt engine with selectable event reporting sources. The operational parameters are stored within the internal user SRAM memory, which is battery-backed, thus allowing their persistence in the event of the complete power failure. M41T82 features a built-in 32.768 kHz oscillator. However, the RTC 9 Click Board™ has an external oscillator too, in order to achieve the best accuracy possible. Eight bytes of the register map are used for the clock/calendar function and are configured in binary-coded decimal (BCD) format. An additional 17 bytes of the register map provide status/control of the two alarms, watchdog, 8-bit counter, and square wave functions. An additional seven bytes are made available as user SRAM. M41T82 supports the I2C communication interface, which is also used on the RTC 9 Click Board™ for communicating with the main microcontroller through the mikroBUS socket. Functions available to the user include a non-volatile, time-of-day clock/calendar, two alarm interrupts, watchdog timer, programmable 8-bit counter, and square wave outputs. The eight clock address locations contain the century, year, month, date, day, hour, minute, second, and tenths/hundredths of a second in 24-hour BCD format. Corrections for 28, 29 (leap year), 30, and 31 day months are made automatically. The RTC 9 Click Board™ is designed to be operated with both 3.3V and 5V logic levels that can be selected via VCC SEL jumper. This allows for both 3.3V and 5V capable MCUs to use the I2C communication lines properly. SPECIFICATIONS Type RTC Applications The RTC 9 Click Board™ is a perfect solution for the development of the IoT, wearable and portable devices, logging devices, industrial and health-related time metering applications, and all the other applications that require an accurate time-base for various purposes. On-board modules M41T82, real-time clock (RTC) with battery switchover, from ST Microelectronics. Key Features Factory-calibrated accuracy of ±5 ppm typically, automatic switchover and reset output circuitry, programmable alarm with interrupt function, 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 on the RTC 9 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 Reset RST 2 RST INT 15 NC 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 JP1 VCC SEL Left Power Supply Voltage Selection 3V3/5V, left position 3v3, right position 5v RTC 9 CLICK ELECTRICAL SPECIFICATIONS Description Min Typ Max Unit Supply Voltage (for R version) 2.70 3.3 5.5 V Supply Current - 365 - nA Accuracy - 5 - ppm Operating Temperature Range -40 - 85 °C ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, Clock Timing, MikroE, RTC ## Price range: 9.8 - 9.8 GBP ## Link: https://thedebugstore.com/products/mikroe-4121-rtc-9-click-board-uk ## Compare-at price range: 14.0 - 14.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) - [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) - [Google Shopping - invalid product](https://thedebugstore.com/a/llms/collections/google-shopping-valid-products) - [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-4121, Available: yes, Inventory: 1 ## Metafields - full_description:
The RTC 9 Click Board™ is based on the M41T82, an extreme low power real-time clock/calendar (RTC) module from ST Microelectronics. Thanks to its high integration level, this module provides high time accuracy, factory calibrated to ±5 ppm even after two reflows, with a very low count of external components required. It has a full RTC function, offering programmable counters, alarms, and an interrupt engine with selectable event reporting sources. The operational parameters are stored within the internal user SRAM memory, which is battery-backed, thus allowing their persistence in the event of the complete power failure.

M41T82 features a built-in 32.768 kHz oscillator. However, the RTC 9 Click Board™ has an external oscillator too, in order to achieve the best accuracy possible. Eight bytes of the register map are used for the clock/calendar function and are configured in binary-coded decimal (BCD) format. An additional 17 bytes of the register map provide status/control of the two alarms, watchdog, 8-bit counter, and square wave functions. An additional seven bytes are made available as user SRAM. M41T82 supports the I2C communication interface, which is also used on the RTC 9 Click Board™ for communicating with the main microcontroller through the mikroBUS socket.
Functions available to the user include a non-volatile, time-of-day clock/calendar, two alarm interrupts, watchdog timer, programmable 8-bit counter, and square wave outputs. The eight clock address locations contain the century, year, month, date, day, hour, minute, second, and tenths/hundredths of a second in 24-hour BCD format. Corrections for 28, 29 (leap year), 30, and 31 day months are made automatically.
The RTC 9 Click Board™ is designed to be operated with both 3.3V and 5V logic levels that can be selected via VCC SEL jumper. This allows for both 3.3V and 5V capable MCUs to use the I2C communication lines properly.
| Type | RTC |
| Applications | The RTC 9 Click Board™ is a perfect solution for the development of the IoT, wearable and portable devices, logging devices, industrial and health-related time metering applications, and all the other applications that require an accurate time-base for various purposes. |
| On-board modules | M41T82, real-time clock (RTC) with battery switchover, from ST Microelectronics. |
| Key Features | Factory-calibrated accuracy of ±5 ppm typically, automatic switchover and reset output circuitry, programmable alarm with interrupt function, and more |
| Interface | I2C |
| Compatibility | mikroBUS |
| Click board size | M (42.9 x 25.4 mm) |
| Input Voltage | 3.3V or 5V |
This table shows how the pinout on the RTC 9 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 | ||
| Reset | RST | 2 | RST | INT | 15 | NC | |
| 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 |
| Label | Name | Default | Description |
|---|---|---|---|
| LD1 | PWR | - | Power LED Indicator |
| JP1 | VCC SEL | Left | Power Supply Voltage Selection 3V3/5V, left position 3v3, right position 5v |
| Description | Min | Typ | Max | Unit |
|---|---|---|---|---|
| Supply Voltage (for R version) | 2.70 | 3.3 | 5.5 | V |
| Supply Current | - | 365 | - | nA |
| Accuracy | - | 5 | - | ppm |
| Operating Temperature Range | -40 | - | 85 | °C |
We provide a library for the RTC 9 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The library contains basic functions for working with the RTC 9 Click Board™. The user is enabled to adjust and read the time and date. it also has the ability to set alarms.
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.The application is composed of three sections :
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 :
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
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.
The RTC 9 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 9 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"ST Microelectronics M41T82 Real-Time Clock Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-4121 - google_product_category: Electronics - custom_label_0: Click Board - key_feature_2: The RTC 9 click is a perfect solution for the development of the IoT, wearable and portable devices, logging devices, industrial and health-related time metering applications, and all the other applications that require an accurate time-base for various purposes. - key_feature_3: Based on the M41T82, real-time clock (RTC) with battery switchover, from ST Microelectronics. - key_feature_4: Factory-calibrated accuracy of ±5 ppm typically, automatic switchover and reset output circuitry, programmable alarm with interrupt function, and more - key_feature_5: Uses the I2C Bus - device_vendor: STMicroelectronics - device_type: M41T82RM6F - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: RTC 9 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 9 Click Board™Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"RTC 9 Click Board™","bold":true},{"type":"text","value":" is based on the M41T82, an extreme low power real-time clock/calendar (RTC) module from ST Microelectronics. Thanks to its high integration level, this module provides high time accuracy, factory calibrated to ±5 ppm even after two reflows, with a very low count of external components required. It has a full RTC function, offering programmable counters, alarms, and an interrupt engine with selectable event reporting sources. The operational parameters are stored within the internal user SRAM memory, which is battery-backed, thus allowing their persistence in the event of the complete power failure."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"M41T82 features a built-in 32.768 kHz oscillator. However, the "},{"type":"text","value":"RTC 9 Click Board™","bold":true},{"type":"text","value":" has an external oscillator too, in order to achieve the best accuracy possible. Eight bytes of the register map are used for the clock/calendar function and are configured in binary-coded decimal (BCD) format. An additional 17 bytes of the register map provide status/control of the two alarms, watchdog, 8-bit counter, and square wave functions. An additional seven bytes are made available as user SRAM. M41T82 supports the I2C communication interface, which is also used on the "},{"type":"text","value":"RTC 9 Click Board™","bold":true},{"type":"text","value":" for communicating with the main microcontroller through the mikroBUS socket."}]},{"type":"paragraph","children":[{"type":"text","value":"Functions available to the user include a non-volatile, time-of-day clock/calendar, two alarm interrupts, watchdog timer, programmable 8-bit counter, and square wave outputs. The eight clock address locations contain the century, year, month, date, day, hour, minute, second, and tenths/hundredths of a second in 24-hour BCD format. Corrections for 28, 29 (leap year), 30, and 31 day months are made automatically."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"RTC 9 Click Board™","bold":true},{"type":"text","value":" is designed to be operated with both 3.3V and 5V logic levels that can be selected via VCC SEL jumper. This allows for both 3.3V and 5V capable MCUs to use the I2C communication lines properly."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nRTC\nApplications\nThe RTC 9 Click Board™ is a perfect solution for the development of the IoT, wearable and portable devices, logging devices, industrial and health-related time metering applications, and all the other applications that require an accurate time-base for various purposes.\nOn-board modules\nM41T82, real-time clock (RTC) with battery switchover, from ST Microelectronics.\nKey Features\nFactory-calibrated accuracy of ±5 ppm typically, automatic switchover and reset output circuitry, programmable alarm with interrupt function, 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 on the "},{"type":"text","value":"RTC 9 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\nReset\nRST\n2\nRST\nINT\n15\nNC\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\n Description\nLD1\nPWR\n-\nPower LED Indicator\nJP1\nVCC SEL\nLeft\nPower Supply Voltage Selection 3V3/5V, left position 3v3, right position 5v"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"RTC 9 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage (for R version)\n2.70\n3.3\n5.5\nV\nSupply Current\n-\n365\n-\nnA\nAccuracy\n-\n5\n-\nppm\nOperating Temperature Range\n-40\n-\n85\n°C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The RTC 9 Click Board™ is a real-time clock module that 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. It features factory-calibrated accuracy of ±5 ppm typically, automatic switchover and reset output circuitry, programmable alarm with interrupt function, and more.
All these features make RTC 9 Click Board™ an excellent choice for manufacturers for applications such as portable applications, logging devices, wearables, medical equipment, and similar.