Carte à clic RTC 18
Carte à clic RTC 18
Key Features:
- Basé sur le RV-3032-C7 - module horloge/calendrier en temps réel optimisé pour les opérations à faible consommation d'énergie de Micro Crystal AG
- Faible consommation d'énergie, compensation de température, haute précision, fonction horloge/calendrier, batterie de secours, interruption programmable et sortie d'horloge, reconnaissance automatique des années bissextiles jusqu'en 2099, et plus encore
- Peut être utilisé pour diverses applications de chronométrage, y compris les alarmes quotidiennes, les applications de comptage et d'autres nécessitant un RTC précis pour leur fonctionnement
La carte RTC 18 Click Board™ est une carte complémentaire compacte qui indique avec précision l'heure d'une journée. Cette carte comprend le RV-3032-C7, un module d'horloge en temps réel configurable I2C qui intègre un circuit CMOS intégré et un XTAL de Micro Crystal AG. Le RV-3032-C7 est une RTC à compensation de température avec une précision de premier ordre (0,22 s/jour) et une consommation d'énergie extrêmement faible, ce qui lui permet d'être utilisée avec une seule pile bouton pendant une période prolongée. Elle peut mesurer la température avec une précision typique de ±1°C et une résolution de 0,0625°C/pas avec une alarme programmable sur les limites de température supérieure et inférieure. Elle dispose de fonctions RTC standard avec correction automatique des années bissextiles et interruption standard pour le compte à rebours périodique et la mise à jour périodique de l'heure (secondes, minutes), l'alarme date/heure/minute et un événement externe. Ce Click board™ convient à diverses applications de chronométrage, notamment les alarmes quotidiennes, les applications de comptage et autres nécessitant un RTC précis pour leur fonctionnement.
La carte RTC 18 Click Board™ est supportée par une bibliothèque compatible mikroSDK, qui comprend des fonctions qui simplifient le développement logiciel. Cette carte Click Board™ est un produit entièrement testé, prêt à être utilisé sur un système équipé du socket mikroBUS™.
How Does The RTC 18 Click Board™ Work?
The RTC 18 Click Board™ is based on the RV-3032-C7, a highly accurate real-time clock/calendar module optimized for low power operations from Micro Crystal AG. The RV-3032-C7 comes with a built-in 32.768kHz "Tuning Fork" crystal oscillator and HF oscillator and has counters for hundredths of seconds, seconds, minutes, hours, date, month, year, and weekday. Its temperature compensation circuitry is factory calibrated and results in the highest time accuracy of ±2.5ppm over the entire temperature range from -40 to +85°C, with an additional non-volatile aging offset correction.
The RTC 18 Click Board™ also comes with an integrated digital thermometer for actual internal temperature measurement in °C with a typical accuracy of ±1°C, resolution of 0.0625°C/step, and a programmable alarm on top and bottom temperature limits. Alongside all these features, it also supports an automatic leap year correction. The calendar year will automatically be identified as a leap year when its last two digits are a multiple of 4. Consequently, leap years up to the year 2099 can automatically be recognized.
This 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. It also incorporates an alarm circuitry configured to generate an interrupt signal for Periodic Countdown Timer and Periodic Time Update (seconds, minutes), date/hour/minute alarm, and an external event registered with the CS pin on the mikroBUS™ socket. An alarm (interrupt) signal routed to the INT pin of the mikroBUS™ socket allows outputting warning every day or on a specific day visually indicated by a red LED marked as ALARM.
The RV-3032-C7 also includes an automatic backup switchover circuit allowing it to be used with a single button cell battery for an extended period. The activation of this feature can be made by positioning SMD jumpers labelled as BATT SEL in an appropriate position marked as OFF or ON. Besides an automatic backup switchover circuit, it also has a trickle charger with a charge pump providing full RTC functions with programmable counters, alarm, selectable interrupt, and programmable clock output functions for frequencies from 1Hz to 52MHz available on an onboard header labelled CLKO.
Te RTC 18 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 containing easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | RTC |
Applications | 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 | RV-3032-C7 - real-time clock/calendar module optimized for low power operations from Micro Crystal AG |
Key Features | Low power consumption, temperature compensated, high accuracy, clock/calendar feature, battery back-up, programmable interrupt and 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 18 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 | |
External Event Interrupt | EVI | 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 |
JP2 | BATT SEL | Left | Backup Supply Voltage Selection OFF/ON: Left position OFF, Right position ON |
J1 | CLKO | Unpopulated | Programmable Clock Output Header |
RTC 18 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
RTC Accuracy | - | 0.22 | - | sec/day |
Temperature Accuracy | - | ±1 | - | °C |
Resolution | - | 0.0625 | - | °C/step |
Clock Output CLKO | 1 | - | 52 | MHz |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the RTC 18 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 18 Click Board™ driver.
Key functions
-
rtc18_read_time
This function reads the current time values - second, minute and hour. -
rtc18_read_date
This function reads the current date values - day of week, day, month and year. -
rtc18_read_temperature
This function reads temperature measurements in Celsius.
Example Description
This example demonstrates the use of the RTC 18 Click Board™ by reading and displaying the time and date values as well as the temperature measurements in Celsius.
void application_task ( void )
{
float temperature;
// Wait for a second count-up interrupt
while ( rtc18_get_int_pin ( &rtc18 ) );
Delay_ms ( 10 );
rtc18_clear_periodic_interrupt ( &rtc18 );
if ( RTC18_OK == rtc18_read_time ( &rtc18, &time ) )
{
log_printf( &logger, " Time: %.2u:%.2u:%.2urn",
( uint16_t ) time.hour, ( uint16_t ) time.minute, ( uint16_t ) time.second );
}
if ( RTC18_OK == rtc18_read_date ( &rtc18, &date ) )
{
log_printf( &logger, " Date: %s, %.2u.%.2u.20%.2u.rn",
rtc18_get_day_of_week_name ( date.day_of_week ),
( uint16_t ) date.day, ( uint16_t ) date.month, ( uint16_t ) date.year );
}
if ( RTC18_OK == rtc18_read_temperature ( &rtc18, &temperature ) )
{
log_printf( &logger, " Temperature: %.2f Crnn", temperature );
}
}
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.RTC18
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, 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 18 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.
Carte à clic RTC 18
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.