Patent · US Expired

Method and apparatus for handling an interrupt from a real-time clock to increment a program clock

US6981165B2 · kind B2 · utility

2Cited by
7References
20Claims
0Family size

Assignee

Inventor

Key dates

Filing dateSep 3, 2002
Grant dateDec 27, 2005
Priority date
Expiry dateMay 29, 2024

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F1/14
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A method and apparatus for handling an interrupt from a real-time clock to increment a program clock in a computer system while compensating for missed interrupts due to contention on a system bus from a DMA controller or the like. In accordance with the invention, a count is stored representing a cumulative interval of time that has elapsed without a corresponding incrementing of the program clock. In response to an interrupt from the real-time clock, the processor transfers control to an interrupt handling routine, which determines the interval of time that has elapsed since the previous real-time clock interrupt and increments the cumulative interval of time by the actual interval of time that has elapsed since the previous real-time clock interrupt. If the cumulative interval of time is greater than an expected interval of time between real-time clock interrupts, the interrupt handling routine iteratively increments the program clock and decrements the cumulative interval of time to reflect incrementing of the program clock until the cumulative interval of time is less than the expected interval of time between real-time clock interrupts.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.