RTC peripheral on STM32F4 has capability to trigger 2 different alarms, Alarm A and Alarm B. Added support for read/write from/to RTC backup registers.Added functions to get days in a month and days in a year.Date&Time are checked before saved for valid input data.Added support to write data in string format,.They can also wake up STM32F4 from any low power mode.Added support to set 2 internal alarms to trigger interrupts.Support for read/write data to/from RTC backup registers.Support to save/get data in binary or BCD format.Get readable time from seconds from 00:00:00.STM32F4/429 Discovery does not have RTC crystal onboard.PC14 and PC15 pins are used for external crystal oscillator.Support Internal or external clock source.I have made a little explanation down, but you will see how to use it in example 2. RTC peripheral has 2 between independent alarm sources which can trigger an interrupt once a week or once a month according to its settings. Library also provide converting time to epoch time (seconds from 00:00:00) and back. ![]() As of version 1.1, you can now also wakeup MCU with alarm interrupt. It has interrupt connected to EXTI lines which allows him to do that. RTC can also wakeup MCU from all powerdown modes. RTC peripheral has also backup register support, which means that when you reset MCU, registers are not reset or if power is off and you have battery connected on Vbat pin, clock is still working. STM32F4xx devices have Real Time Clock (RTC) inside, with support of internal calibrated 32768 Hz oscillator or external (more accurate) 32768 Hz oscillator. It’s been some time when I post last library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |