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.
RTC
Re:RTC
Hi,
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
The RTC chip can generate interrupts for any of these reasons: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?
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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.