Real-Time Clock and Calendar (RTCC) available on PIC32MX devices
Hardware modules and their operation. Some of the main features of this module are listed below:
• Time: hours, minutes and seconds
• 24 hour format (military time)
• Ability to resolve half-second durations
• Provides calendar: week, day, month and year
• Configurable alarm intervals of 0.5 seconds, 1 second, 10 seconds, 1 minute, 10 minutes, 1 hour, 1 day, 1 week, 1 month or 1 year
• Alarm repeats using a down counter
• Infinitely repeatable alarm: chime
• Year range: 2000 to 2099
• Leap year correction
• BCD format to reduce firmware overhead
• Optimized for long battery life
• Fractional second synchronization
• User can use the auto-tune function to calibrate the clock crystal frequency
• Calibration range: ±0.66 seconds error per month
• Calibrates up to 260 ppm of crystal error
• Requirement: External 32.768 kHz clock crystal (there is no crystal on the board, you need to solder it in, and the capacitor needs to be larger, as described below)
• Alarm pulse or seconds clock output on RTCC pin
This module provides real-time clock and calendar functions. RTCC is designed for applications that need to maintain accurate time for a long time without or with
Minimal CPU intervention is required. The module is optimized for low power use to extend battery life while tracking time. The RTCC module features a 100-year clock and calendar with automatic leap year detection. The clock range is from 00:00:00 (midnight) January 1, 2000 to 23:59:59 December 31, 2099. Hours are provided in 24-hour (military time) format. The clock provides one-second time granularity, with half-second time intervals visible to the user.
As shown in the picture, I use a ceramic capacitor of 20pF soldered at both ends of C14. 20pF added to the original 12, that is, 30pF, can cause vibration.
The function we implement is that the serial port prints the current time every second, and LED1 flashes.
The following library functions are used:
RtccInit(); Clock initialization
RtccSetTimeDate(tm.l, dt.l);Set time
RtccGetTime(); Get time
Previous article:Wulin teaches you how to use PIC32 (VIII) I2C EEPROM 24LC256
Next article:Wulin teaches you how to use PIC32 (Part 9) I2C DAC MCP4725
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- MicroPython driver porting for STTS751
- Please recommend a PAL video signal equalization chip or amplifier chip
- [RVB2601 creative application development] SVM40 UART communication implementation
- EEWORLD University ----TI Precision Laboratory - Isolation
- Fighting back against India? It is said that Huawei will lay off 70% of its employees in India...
- New courses are online at the beginning of the school year! Learn the latest TI training courses and win gifts
- This week's highlights
- When encountering refurbished chips again, how to identify new and old chips?
- Brushless motor MOS
- [Routine experience of Flathead RVB2601 development board] Part 1: Download the example program successfully, sharing experience!