Page 1 of 1

RTC

Posted: Mon Jul 19, 2004 1:39 am
by ManOfSteel
Hello,
I saw in a file about the RTC that some "registers" serve as alarm (for hours, minutes and seconds). As far as I understood, these alarms cause interrupts. What kind of interrupts are they and how can they be intercepted?
Thanks for any help.

Re:RTC

Posted: Mon Jul 19, 2004 2:10 am
by Brendan
Hi,
ManOfSteel wrote: I saw in a file about the RTC that some "registers" serve as alarm (for hours, minutes and seconds). As far as I understood, these alarms cause interrupts. What kind of interrupts are they and how can they be intercepted?
The RTC chip can generate interrupts for any of these reasons:
Periodic Interrupt (like PIT)
Alarm Interrupt
Update Interrupt (when seconds change)

Whenever one of these interrupt sources are triggered the RTC generates an IRQ 0x08. The IRQ handler has to read from RTC REGISTER C to clear the IRQ/s, and act on any of them that have occured.


Cheers,

Brendan