Hello, I am not able to persuade my RTC to generate periodic interrupts more frequent than 2Hz (that works just fine). In theory, the device should support 2, 16, 128 and 1024 Hz. When I run my program on the simulator, and I select any frequency above 2 Hz, the setting jumps back to "reserved". Did you ever encounter this problem? I still haven't tested this on the target - only the simulator.
"My MCBSTR9 will not generate an interrupt, but the simulator does."
For me, with my original code, I configured the RTC to generate a 2Hz interrupt.
All worked OK with the simulator.
With the dev board, I would get one 500ms tick that worked fine then at the next 500ms tick I would get continuous interrupts for 500ms, then it would go back to a good 500ms, then bad again etc.
From the way I read the STR9 reference manual, all I had to do to clear the RTC interrupt was read the SR register.
Anyways, as I mentioned, your code snippet works a treat on the dev board - So I'm a lot happier and can move onto the next challenge!
Cheers once again,
David.