ARM Technical Support Knowledge Articles

RTC INTERRUPT REQUEST FLAG REMAINS SET IN SIMULATOR

Applies to: C166 C Compiler

Answer


Information in this article applies to:


QUESTION

I'm using the ST10F269 Real-Time Clock (RTC). The manual states that an interrupt request flag is set by hardware whenever a service request from the respective source occurs. It is cleared automatically upon entry into the interrupt service routine or upon a PEC service.

However, this does not seem to be the case in the uVision simulator. Is there an error in the simulator?

ANSWER

No. There is no error in the simulator.

The RTC is implemented as an X-Peripheral. RTC interrupts in the ST10F269 are connected indirectly to the Interrupt Controller as an alternate source for the External interrupts. Using EXISEL, you may select the source for the External Interrupt (Port2, an Alternate Source like the RTX, or Both combined through AND/OR).

Therefore, when an RTC interrupt occurs, it sets an External interrupt flag which is then automatically cleared upon entry into the interrupt service routine. The RTC flag which caused this interrupt is not cleared automatically. This is by design. If the External Interrupt is selected as RTC Interrupt OR'ed with Port2, you would be unable to distinguish which caused the interrupt if the RTC flag were to be cleared by the hardware.

MORE INFORMATION

Article last edited on: 2005-07-22 16:36:13

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential