Method of automatically adjusting interrupt frequency
AssigneeChung-Shan Institute of Science and Technology
InventorYeun-Renn Ting
Life of this patent
Estimating the term…
Abstract
This invention provides a method of automatically adjusting interrupt frequency. The following steps are provided. First, a computer system is provided with an operating system able to deliver a plurality of interrupts with a first interrupt frequency. A counter is used to count a number of occurrences of the interrupt until the number reaches a predetermined number, and then the counter is reset to zero. The predetermined number is divided by the first interrupt frequency to obtain a product, and calculate an error between the product and an actual period of time elapsed for the predetermined number of interrupts is calculated. Lastly, the invention detects whether the error exceeds a predetermined range and adjusting the first interrupt frequency to limit the error within said predetermined range.
Claims5
A method of automatically adjusting interrupt interval, comprising
- (a) providing a computer system with an operating system able to deliver a plurality of interrupts with a first interrupt frequency;
- (b) providing a counter used to count a number of occurrences of said interrupts until said number reaches a predetermined number, and then resetting said counter to zero;
- (c) dividing said predetermined number by said first interrupt frequency to obtain a product, and calculating an error between said product and an actual period of time elapsed for said predetermined number of interrupts to occur;
- (d) detecting whether said error exceeds a predetermined range;
- (e) adjusting said first interrupt frequency for limiting said error within said predetermined range.
Dependencies are inferred from the claim text.