For my project I'm using an RV-8564-C2 RTC module. In the datasheet I see that alarm registers up to a month. How do I work it out if I want an alarm after for example 40 days or 2 months?
How to achieve an RTC alarm more than one month?
895 Views Asked by Ghani AtThere are 2 best solutions below
kkrambo
On
My interpretation of the datasheet is that you cannot set an alarm for more than a month in advance. You can set an alarm for a specific day of the month (or day of the week) and a specific time of day, but not a specific month. If want to set an alarm for a specific month then I guess you'll have to check for the month in software. For example, set the day of the month alarm so that the RTC alarms every month on the desired day and time. Then the software handler for the alarm should check the month. If the software handler determines that it is not the correct month yet then it should ignore the alarm (or, if necessary, reset RTC alarm so that it occurs again next month). If it is the correct month then the software handler should promote the alarm to the application.
Related Questions in TIMER
- NSTimer won't start (Swift)
- Using a timer to alter the alpha for object for a few seconds?
- timer in Jframe restart
- javaFX : How to periodically load information from db and show it on a Label?
- Calculating average and percentiles from a histogram map?
- Changing background of button every second
- Issues with long running Handlers, Timers, and Tasks?
- Android Studio: Where to place onClickListener in Master/Detail Flow, to start a CountDown Timer on Button Click
- Timer countdown formatting problems
- Countdown timer goes into negative number (00:00:00)
- Javascript timer - You generated the link "X seconds ago"
- How to resume a timer?
- Android- executing commands while countdown timer is running
- Backgroundworker to stop work after specified time
- Using AS3 Timer & distriqt Notification ANE To Send Notifications While In Sleep Mode
Related Questions in EMBEDDED
- PHP don't use temp file for upload
- Sparkfun SC16IS750 does not work on Raspberry Pi
- Reserve memory space in m_text memory region of FLASH on embedded target
- SAE J1939 Standards Collection -- How much is necessary?
- How to call multiple slaves for Spi data transmission?
- Deployment over GPRS to embedded devices
- Changing just one byte in SD card sector
- Comparion of values won't work without delay
- Better to pass struct, or pointer to struct?
- STM32F4 Handling peripheral error while making a DMA Transfer (RX)
- USB programming, transfer file from iOS device to Embedded os device?
- using Diab, dcc 5.9.4 to compile a windows executable
- does b64_pton() work if input contains special characters? I am using it in C code
- u-boot select boot partition based on GPIO state
- Why is a write to a memory-mapped peripheral register not actioned (LPC43xx)?
Related Questions in MICROCONTROLLER
- HOW to connect my UPS with my android device
- What is the difference between USB host VS USB OTG support when it comes to Microcontrollers?
- STM32F4 Handling peripheral error while making a DMA Transfer (RX)
- USB Full Speed polling interval
- Which is better? int8_t vs int32_t in 32 bits MCU
- Detecting EEPROM data and address bus short circuit
- Incrementing an int in a C code for microcontroller only moves the LSB
- Using SD card as external storage for Beaglebone Black
- arm-none-eabi-ld: section .ARM.exidx overlaps section .data
- FT801 chip id error on Arduino
- lpc17xx frequency detection of square wave using polling
- How to debug C program on microcontroller
- Char array of array values to pointer array
- Embedded software program block, I2C?
- Reset vector not working though RCHW is loaded with start address in MPC5777M?
Related Questions in STM32
- STM32F303VC : device not found
- Very few write cycles in stm32f4
- Put a bootloader program at the bottom of the FLASH memory
- STM32 USB HID reports
- STM32 flashing disabled after flashing a code without R/W protection
- How can I align stack to the end of SRAM?
- STM32 I-CODE and D-CODE buses
- how to use arm-none-eabi-gcc compile STM32 program
- Write a custom bootloader with the STM32L1 series in C
- What are the steps to setup an RTOS application on STM32 using Linux and Makefiles instead of using Windows based IDEs?
- Loosing some bytes on USART transmission with STM32L1XX
- my bootloader doesn't boot my new program on stm32
- Using printf causes error
- Estimating available RAM left with safety margin in C (STM32F4)
- Flashing image to STM3220g-EVAL board using Trace 32
Related Questions in REAL-TIME-CLOCK
- How to achieve an RTC alarm more than one month?
- DST doesn't work on an Embedded linux distribution (without network connection)
- Arduino TimeAlarms are not working sometimes
- MSP430 Real time clock (RTC_B) doesn't work. Cannot write date/time registers
- How the set RTC as wake up source and set a specific time on all the days using sys file system
- Accessing RTC I2C chip connecting to FPGA through GPIO
- Using a real time clock (RTC) on Arduino data logging shield
- How to engineer a power-loss safe RTC time switch?
- How do I make sure the Arduino only run this line of code once even after reset?
- Is there an Arduino library that can take in a DD/MM/YYYY date and tell me what day of the week it is?
- Converting a 24-Hour clock with Images to 12-Hour clock with AM and PM with Day and Date
- The Last Tick Animation of the Arms of the Virtual Clock
- How to get and set RTC time(hwtime) from android native service?
- Stm8l mcu RTC calibration problem using RTC_SmoothCalibConfig()
- How do I set the system clock in Rust?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The device RV-8564-C2 only supports maximum of 5 bits number of days for an alarm.
The device you're are working with only supports 8 bit timer. However, if you choose one with 16 bit timer (e.g. RV-3029-C2) you could use the timer to be able to set an alarm approx 45 days in the future.