Topic: STR912F RTC Problem
Hi,
I've downloaded the latest software for the STR912F, and have been able to compile and run several of the ST Micro example programs, including the WIU example that uses interrupts. However, I cannot get the RTC functions to work properly.
The RTC example sets a 10 second alarm, loops waiting for the RTC flag to be set by the alarm, then starts flashing an LED. When I run this program, the flag is set immediately and the LED flashes immediately.
I have my own RTC test program that uses a different feature of the realtime clock to set a 2 Hz periodic alarm. My program sits in a loop looking at the RTC flag, resetting it when it is set and incrementing a counter. The flag is set every time through the loop.
Could there be a bug in the initialization of the RTC functions? Has anyone else tried the RTC example?