Equivalence of PIT and 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
Slasher

Equivalence of PIT and RTC

Post by Slasher »

Am I only one that thinks that the PIT interrupt has the same nature as the Periodic interrupt of the RTC?
I was going to move my delay timing from the PIT to the RTC Periodic interrupt and use the PIT solely for Task switching.
Also instead of reading the CMOS Clock and Date info on every PIT interrupt I'm going to Use the Update Interrupt in the RTC which fire everytime it updates the time i.e once every 1/1024 sec.
I'm trying to increase interrupt response time.
How do you guys combine the RTC and PIT?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Equivalence of PIT and RTC

Post by Pype.Clicker »

one of the difference you might encounter is the priority level. While PIT irqs virtually precedes everything else, the RTC interrupt may be deferred until keyboard, mouse, hard disk, network, etc. irqs have been processed. I'm not sure, but it will probably mean that you could be less confident about how much time elapsed since the timer event occured and the moment where your code is executed ...
Post Reply