RTC

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
ManOfSteel

RTC

Post 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.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re:RTC

Post 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
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.
Post Reply