cancel
Showing results for 
Search instead for 
Did you mean: 

RTC

ss882
Associate II
Posted on August 18, 2012 at 01:26

Hello everyone..,

I am new to Embedded programming. I wanted to generate 2mins delay. I already want to use two timers in PWM input and Input capture mode simultaneously.

Can I use RTC to generate 2mins delay?

Thanking in advance,

2 REPLIES 2
Posted on August 18, 2012 at 04:45

On the STM32F1 you could certainly advance the RTC Alarm by 2 minutes, and keep repeating that. Hours or days could work on a similar principle.

You could mark time with the RTC interrupt, or SysTick interrupt.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ss882
Associate II
Posted on August 21, 2012 at 17:23

Thanks Clive1..

will try changing the alarm time in the stdPeriph lib RTC example.