This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STR9 RTC interrupt generation interval

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.

Parents
  • David,
    Hell, no big deal. This is just an implementation detail of ST's library. The processor requires you to clear interrupt flags manually, each interrupt source has its own bit that is set by hardware and must be cleared by software. Look for similar functions bearing a similar name for TIM, UART etc etc. glad I could help.
    There is funny twist to this story: My MCBSTR9 will not generate an interrupt, but the simulator does. Keil claim that the board is ok, and my attempt to measure the signal were not too successful because of high impedence so I do not know if it really works on the target... :)

Reply
  • David,
    Hell, no big deal. This is just an implementation detail of ST's library. The processor requires you to clear interrupt flags manually, each interrupt source has its own bit that is set by hardware and must be cleared by software. Look for similar functions bearing a similar name for TIM, UART etc etc. glad I could help.
    There is funny twist to this story: My MCBSTR9 will not generate an interrupt, but the simulator does. Keil claim that the board is ok, and my attempt to measure the signal were not too successful because of high impedence so I do not know if it really works on the target... :)

Children
No data